diff --git a/homeassistant/components/tuya/light.py b/homeassistant/components/tuya/light.py index 40d0fd73f0e..d94308ebd33 100644 --- a/homeassistant/components/tuya/light.py +++ b/homeassistant/components/tuya/light.py @@ -261,20 +261,6 @@ LIGHTS: dict[str, tuple[TuyaLightEntityDescription, ...]] = { entity_category=EntityCategory.CONFIG, ), ), - # Smart Camera - Low power consumption camera - # Undocumented, see https://github.com/home-assistant/core/issues/132844 - "dghsxj": ( - TuyaLightEntityDescription( - key=DPCode.FLOODLIGHT_SWITCH, - brightness=DPCode.FLOODLIGHT_LIGHTNESS, - name="Floodlight", - ), - TuyaLightEntityDescription( - key=DPCode.BASIC_INDICATOR, - name="Indicator light", - entity_category=EntityCategory.CONFIG, - ), - ), # Smart Gardening system # https://developer.tuya.com/en/docs/iot/categorysz?id=Kaiuz4e6h7up0 "sz": ( @@ -406,6 +392,10 @@ LIGHTS["cz"] = LIGHTS["kg"] # https://developer.tuya.com/en/docs/iot/s?id=K9gf7o5prgf7s LIGHTS["pc"] = LIGHTS["kg"] +# Smart Camera - Low power consumption camera (duplicate of `sp`) +# Undocumented, see https://github.com/home-assistant/core/issues/132844 +LIGHTS["dghsxj"] = LIGHTS["sp"] + # Dimmer (duplicate of `tgq`) # https://developer.tuya.com/en/docs/iot/tgq?id=Kaof8ke9il4k4 LIGHTS["tdq"] = LIGHTS["tgq"] diff --git a/homeassistant/components/tuya/number.py b/homeassistant/components/tuya/number.py index ce1f434bcdd..d4fe7836daa 100644 --- a/homeassistant/components/tuya/number.py +++ b/homeassistant/components/tuya/number.py @@ -174,15 +174,6 @@ NUMBERS: dict[str, tuple[NumberEntityDescription, ...]] = { entity_category=EntityCategory.CONFIG, ), ), - # Smart Camera - Low power consumption camera - # Undocumented, see https://github.com/home-assistant/core/issues/132844 - "dghsxj": ( - NumberEntityDescription( - key=DPCode.BASIC_DEVICE_VOLUME, - translation_key="volume", - entity_category=EntityCategory.CONFIG, - ), - ), # Dimmer Switch # https://developer.tuya.com/en/docs/iot/categorytgkg?id=Kaiuz0ktx7m0o "tgkg": ( @@ -314,6 +305,10 @@ NUMBERS: dict[str, tuple[NumberEntityDescription, ...]] = { ), } +# Smart Camera - Low power consumption camera (duplicate of `sp`) +# Undocumented, see https://github.com/home-assistant/core/issues/132844 +NUMBERS["dghsxj"] = NUMBERS["sp"] + async def async_setup_entry( hass: HomeAssistant, diff --git a/homeassistant/components/tuya/select.py b/homeassistant/components/tuya/select.py index 0ae49cd127e..553191b7d45 100644 --- a/homeassistant/components/tuya/select.py +++ b/homeassistant/components/tuya/select.py @@ -128,40 +128,6 @@ SELECTS: dict[str, tuple[SelectEntityDescription, ...]] = { translation_key="motion_sensitivity", ), ), - # Smart Camera - Low power consumption camera - # Undocumented, see https://github.com/home-assistant/core/issues/132844 - "dghsxj": ( - SelectEntityDescription( - key=DPCode.IPC_WORK_MODE, - entity_category=EntityCategory.CONFIG, - translation_key="ipc_work_mode", - ), - SelectEntityDescription( - key=DPCode.DECIBEL_SENSITIVITY, - entity_category=EntityCategory.CONFIG, - translation_key="decibel_sensitivity", - ), - SelectEntityDescription( - key=DPCode.RECORD_MODE, - entity_category=EntityCategory.CONFIG, - translation_key="record_mode", - ), - SelectEntityDescription( - key=DPCode.BASIC_NIGHTVISION, - entity_category=EntityCategory.CONFIG, - translation_key="basic_nightvision", - ), - SelectEntityDescription( - key=DPCode.BASIC_ANTI_FLICKER, - entity_category=EntityCategory.CONFIG, - translation_key="basic_anti_flicker", - ), - SelectEntityDescription( - key=DPCode.MOTION_SENSITIVITY, - entity_category=EntityCategory.CONFIG, - translation_key="motion_sensitivity", - ), - ), # IoT Switch? # Note: Undocumented "tdq": ( @@ -360,6 +326,10 @@ SELECTS["cz"] = SELECTS["kg"] # https://developer.tuya.com/en/docs/iot/s?id=K9gf7o5prgf7s SELECTS["pc"] = SELECTS["kg"] +# Smart Camera - Low power consumption camera (duplicate of `sp`) +# Undocumented, see https://github.com/home-assistant/core/issues/132844 +SELECTS["dghsxj"] = SELECTS["sp"] + async def async_setup_entry( hass: HomeAssistant, diff --git a/homeassistant/components/tuya/sensor.py b/homeassistant/components/tuya/sensor.py index 76825e9c814..073202bed94 100644 --- a/homeassistant/components/tuya/sensor.py +++ b/homeassistant/components/tuya/sensor.py @@ -632,29 +632,6 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = { state_class=SensorStateClass.MEASUREMENT, ), ), - # Smart Camera - Low power consumption camera - # Undocumented, see https://github.com/home-assistant/core/issues/132844 - "dghsxj": ( - TuyaSensorEntityDescription( - key=DPCode.SENSOR_TEMPERATURE, - translation_key="temperature", - device_class=SensorDeviceClass.TEMPERATURE, - state_class=SensorStateClass.MEASUREMENT, - ), - TuyaSensorEntityDescription( - key=DPCode.SENSOR_HUMIDITY, - translation_key="humidity", - device_class=SensorDeviceClass.HUMIDITY, - state_class=SensorStateClass.MEASUREMENT, - ), - TuyaSensorEntityDescription( - key=DPCode.WIRELESS_ELECTRICITY, - translation_key="battery", - device_class=SensorDeviceClass.BATTERY, - entity_category=EntityCategory.DIAGNOSTIC, - state_class=SensorStateClass.MEASUREMENT, - ), - ), # Fingerbot "szjqr": BATTERY_SENSORS, # Solar Light @@ -1243,6 +1220,10 @@ SENSORS["cz"] = SENSORS["kg"] # https://developer.tuya.com/en/docs/iot/s?id=K9gf7o5prgf7s SENSORS["pc"] = SENSORS["kg"] +# Smart Camera - Low power consumption camera (duplicate of `sp`) +# Undocumented, see https://github.com/home-assistant/core/issues/132844 +SENSORS["dghsxj"] = SENSORS["sp"] + async def async_setup_entry( hass: HomeAssistant, diff --git a/homeassistant/components/tuya/siren.py b/homeassistant/components/tuya/siren.py index 9c60f7bcaac..039442dafe5 100644 --- a/homeassistant/components/tuya/siren.py +++ b/homeassistant/components/tuya/siren.py @@ -44,13 +44,6 @@ SIRENS: dict[str, tuple[SirenEntityDescription, ...]] = { key=DPCode.SIREN_SWITCH, ), ), - # Smart Camera - Low power consumption camera - # Undocumented, see https://github.com/home-assistant/core/issues/132844 - "dghsxj": ( - SirenEntityDescription( - key=DPCode.SIREN_SWITCH, - ), - ), # CO2 Detector # https://developer.tuya.com/en/docs/iot/categoryco2bj?id=Kaiuz3wes7yuy "co2bj": ( @@ -61,6 +54,10 @@ SIRENS: dict[str, tuple[SirenEntityDescription, ...]] = { ), } +# Smart Camera - Low power consumption camera (duplicate of `sp`) +# Undocumented, see https://github.com/home-assistant/core/issues/132844 +SIRENS["dghsxj"] = SIRENS["sp"] + async def async_setup_entry( hass: HomeAssistant, diff --git a/homeassistant/components/tuya/switch.py b/homeassistant/components/tuya/switch.py index 519a9e83606..76d8b481a90 100644 --- a/homeassistant/components/tuya/switch.py +++ b/homeassistant/components/tuya/switch.py @@ -509,65 +509,6 @@ SWITCHES: dict[str, tuple[SwitchEntityDescription, ...]] = { entity_category=EntityCategory.CONFIG, ), ), - # Smart Camera - Low power consumption camera - # Undocumented, see https://github.com/home-assistant/core/issues/132844 - "dghsxj": ( - SwitchEntityDescription( - key=DPCode.WIRELESS_BATTERYLOCK, - translation_key="battery_lock", - entity_category=EntityCategory.CONFIG, - ), - SwitchEntityDescription( - key=DPCode.CRY_DETECTION_SWITCH, - translation_key="cry_detection", - entity_category=EntityCategory.CONFIG, - ), - SwitchEntityDescription( - key=DPCode.DECIBEL_SWITCH, - translation_key="sound_detection", - entity_category=EntityCategory.CONFIG, - ), - SwitchEntityDescription( - key=DPCode.RECORD_SWITCH, - translation_key="video_recording", - entity_category=EntityCategory.CONFIG, - ), - SwitchEntityDescription( - key=DPCode.MOTION_RECORD, - translation_key="motion_recording", - entity_category=EntityCategory.CONFIG, - ), - SwitchEntityDescription( - key=DPCode.BASIC_PRIVATE, - translation_key="privacy_mode", - entity_category=EntityCategory.CONFIG, - ), - SwitchEntityDescription( - key=DPCode.BASIC_FLIP, - translation_key="flip", - entity_category=EntityCategory.CONFIG, - ), - SwitchEntityDescription( - key=DPCode.BASIC_OSD, - translation_key="time_watermark", - entity_category=EntityCategory.CONFIG, - ), - SwitchEntityDescription( - key=DPCode.BASIC_WDR, - translation_key="wide_dynamic_range", - entity_category=EntityCategory.CONFIG, - ), - SwitchEntityDescription( - key=DPCode.MOTION_TRACKING, - translation_key="motion_tracking", - entity_category=EntityCategory.CONFIG, - ), - SwitchEntityDescription( - key=DPCode.MOTION_SWITCH, - translation_key="motion_alarm", - entity_category=EntityCategory.CONFIG, - ), - ), # Smart Gardening system # https://developer.tuya.com/en/docs/iot/categorysz?id=Kaiuz4e6h7up0 "sz": ( @@ -785,6 +726,10 @@ SWITCHES: dict[str, tuple[SwitchEntityDescription, ...]] = { # https://developer.tuya.com/en/docs/iot/s?id=K9gf7o5prgf7s SWITCHES["cz"] = SWITCHES["pc"] +# Smart Camera - Low power consumption camera (duplicate of `sp`) +# Undocumented, see https://github.com/home-assistant/core/issues/132844 +SWITCHES["dghsxj"] = SWITCHES["sp"] + async def async_setup_entry( hass: HomeAssistant,