Add Tuya ksdjml video peephole camera category (#182145)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Simone Rescio
2026-09-14 06:56:51 +02:00
committed by GitHub
co-authored by Cursor
parent 3873569bec
commit 60aad9235f
10 changed files with 30 additions and 0 deletions
+3
View File
@@ -78,6 +78,9 @@ BUTTONS: dict[DeviceCategory, tuple[ButtonEntityDescription, ...]] = {
),
}
# Video peephole camera / video intercom doorbell (duplicate of `sp`)
BUTTONS[DeviceCategory.KSDJML] = BUTTONS[DeviceCategory.SP]
async def async_setup_entry(
hass: HomeAssistant,
+1
View File
@@ -24,6 +24,7 @@ from .entity import TuyaEntity
CAMERAS: dict[DeviceCategory, CameraEntityDescription] = {
DeviceCategory.DGHSXJ: CameraEntityDescription(key=""),
DeviceCategory.KSDJML: CameraEntityDescription(key=""),
DeviceCategory.SP: CameraEntityDescription(key=""),
}
+5
View File
@@ -509,6 +509,11 @@ class DeviceCategory(StrEnum):
See https://github.com/orgs/home-assistant/discussions/329
"""
KSDJML = "ksdjml"
"""Video peephole camera / video intercom doorbell (undocumented)
see https://github.com/home-assistant/core/issues/182051
"""
MBD = "mbd"
"""Unknown light product
+3
View File
@@ -112,6 +112,9 @@ EVENTS: dict[DeviceCategory, tuple[TuyaEventEntityDescription, ...]] = {
),
}
# Video peephole camera / video intercom doorbell (duplicate of `sp`)
EVENTS[DeviceCategory.KSDJML] = EVENTS[DeviceCategory.SP]
async def async_setup_entry(
hass: HomeAssistant,
+3
View File
@@ -374,6 +374,9 @@ LIGHTS[DeviceCategory.PC] = LIGHTS[DeviceCategory.KG]
# Smart Camera - Low power consumption camera (duplicate of `sp`)
LIGHTS[DeviceCategory.DGHSXJ] = LIGHTS[DeviceCategory.SP]
# Video peephole camera / video intercom doorbell (duplicate of `sp`)
LIGHTS[DeviceCategory.KSDJML] = LIGHTS[DeviceCategory.SP]
# Dimmer (duplicate of `tgq`)
LIGHTS[DeviceCategory.TDQ] = LIGHTS[DeviceCategory.TGQ]
+3
View File
@@ -516,6 +516,9 @@ NUMBERS: dict[DeviceCategory, tuple[NumberEntityDescription, ...]] = {
# Smart Camera - Low power consumption camera (duplicate of `sp`)
NUMBERS[DeviceCategory.DGHSXJ] = NUMBERS[DeviceCategory.SP]
# Video peephole camera / video intercom doorbell (duplicate of `sp`)
NUMBERS[DeviceCategory.KSDJML] = NUMBERS[DeviceCategory.SP]
async def async_setup_entry(
hass: HomeAssistant,
+3
View File
@@ -378,6 +378,9 @@ SELECTS[DeviceCategory.CZ] = SELECTS[DeviceCategory.KG]
# Smart Camera - Low power consumption camera (duplicate of `sp`)
SELECTS[DeviceCategory.DGHSXJ] = SELECTS[DeviceCategory.SP]
# Video peephole camera / video intercom doorbell (duplicate of `sp`)
SELECTS[DeviceCategory.KSDJML] = SELECTS[DeviceCategory.SP]
# Power Socket (duplicate of `kg`)
SELECTS[DeviceCategory.PC] = SELECTS[DeviceCategory.KG]
+3
View File
@@ -1869,6 +1869,9 @@ SENSORS: dict[DeviceCategory, tuple[TuyaSensorEntityDescription, ...]] = {
# Smart Camera - Low power consumption camera (duplicate of `sp`)
SENSORS[DeviceCategory.DGHSXJ] = SENSORS[DeviceCategory.SP]
# Video peephole camera / video intercom doorbell (duplicate of `sp`)
SENSORS[DeviceCategory.KSDJML] = SENSORS[DeviceCategory.SP]
# Power Socket (duplicate of `kg`)
SENSORS[DeviceCategory.PC] = SENSORS[DeviceCategory.KG]
+3
View File
@@ -53,6 +53,9 @@ SIRENS: dict[DeviceCategory, tuple[SirenEntityDescription, ...]] = {
# Smart Camera - Low power consumption camera (duplicate of `sp`)
SIRENS[DeviceCategory.DGHSXJ] = SIRENS[DeviceCategory.SP]
# Video peephole camera / video intercom doorbell (duplicate of `sp`)
SIRENS[DeviceCategory.KSDJML] = SIRENS[DeviceCategory.SP]
async def async_setup_entry(
hass: HomeAssistant,
+3
View File
@@ -933,6 +933,9 @@ SWITCHES[DeviceCategory.CZ] = SWITCHES[DeviceCategory.PC]
# Smart Camera - Low power consumption camera (duplicate of `sp`)
SWITCHES[DeviceCategory.DGHSXJ] = SWITCHES[DeviceCategory.SP]
# Video peephole camera / video intercom doorbell (duplicate of `sp`)
SWITCHES[DeviceCategory.KSDJML] = SWITCHES[DeviceCategory.SP]
async def async_setup_entry(
hass: HomeAssistant,