diff --git a/homeassistant/components/tuya/button.py b/homeassistant/components/tuya/button.py index 3d9c5148f20d..2e7432b780dc 100644 --- a/homeassistant/components/tuya/button.py +++ b/homeassistant/components/tuya/button.py @@ -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, diff --git a/homeassistant/components/tuya/camera.py b/homeassistant/components/tuya/camera.py index 277fa2b17cd4..8fb80e0ebce9 100644 --- a/homeassistant/components/tuya/camera.py +++ b/homeassistant/components/tuya/camera.py @@ -24,6 +24,7 @@ from .entity import TuyaEntity CAMERAS: dict[DeviceCategory, CameraEntityDescription] = { DeviceCategory.DGHSXJ: CameraEntityDescription(key=""), + DeviceCategory.KSDJML: CameraEntityDescription(key=""), DeviceCategory.SP: CameraEntityDescription(key=""), } diff --git a/homeassistant/components/tuya/const.py b/homeassistant/components/tuya/const.py index 72d94b28e445..ef110334173a 100644 --- a/homeassistant/components/tuya/const.py +++ b/homeassistant/components/tuya/const.py @@ -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 diff --git a/homeassistant/components/tuya/event.py b/homeassistant/components/tuya/event.py index b863f9db1761..e9d83f33ee3a 100644 --- a/homeassistant/components/tuya/event.py +++ b/homeassistant/components/tuya/event.py @@ -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, diff --git a/homeassistant/components/tuya/light.py b/homeassistant/components/tuya/light.py index 49525b980fc2..59b008ea7a18 100644 --- a/homeassistant/components/tuya/light.py +++ b/homeassistant/components/tuya/light.py @@ -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] diff --git a/homeassistant/components/tuya/number.py b/homeassistant/components/tuya/number.py index e16e4a622dc8..b7abc27b4f65 100644 --- a/homeassistant/components/tuya/number.py +++ b/homeassistant/components/tuya/number.py @@ -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, diff --git a/homeassistant/components/tuya/select.py b/homeassistant/components/tuya/select.py index 43cb4a509eeb..f39bf4931938 100644 --- a/homeassistant/components/tuya/select.py +++ b/homeassistant/components/tuya/select.py @@ -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] diff --git a/homeassistant/components/tuya/sensor.py b/homeassistant/components/tuya/sensor.py index acb06214cf94..c4c581a227ca 100644 --- a/homeassistant/components/tuya/sensor.py +++ b/homeassistant/components/tuya/sensor.py @@ -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] diff --git a/homeassistant/components/tuya/siren.py b/homeassistant/components/tuya/siren.py index e43f4d56fa31..368885aaaee3 100644 --- a/homeassistant/components/tuya/siren.py +++ b/homeassistant/components/tuya/siren.py @@ -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, diff --git a/homeassistant/components/tuya/switch.py b/homeassistant/components/tuya/switch.py index 4c6e0ec3b4fe..9dcb11b7aa7d 100644 --- a/homeassistant/components/tuya/switch.py +++ b/homeassistant/components/tuya/switch.py @@ -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,