diff --git a/homeassistant/components/shelly/icons.json b/homeassistant/components/shelly/icons.json index 08b269a73c5..6760400a1f7 100644 --- a/homeassistant/components/shelly/icons.json +++ b/homeassistant/components/shelly/icons.json @@ -43,6 +43,9 @@ }, "valve_status": { "default": "mdi:valve" + }, + "illuminance_level": { + "default": "mdi:brightness-5" } }, "switch": { diff --git a/homeassistant/components/shelly/sensor.py b/homeassistant/components/shelly/sensor.py index b5cbeb3da5f..bd94ea0c33e 100644 --- a/homeassistant/components/shelly/sensor.py +++ b/homeassistant/components/shelly/sensor.py @@ -1421,6 +1421,14 @@ RPC_SENSORS: Final = { entity_category=EntityCategory.DIAGNOSTIC, entity_class=RpcBluTrvSensor, ), + "illuminance_illumination": RpcSensorDescription( + key="illuminance", + sub_key="illumination", + name="Illuminance Level", + translation_key="illuminance_level", + device_class=SensorDeviceClass.ENUM, + options=["dark", "twilight", "bright"], + ), } diff --git a/homeassistant/components/shelly/strings.json b/homeassistant/components/shelly/strings.json index e1f817ba1a8..0c1d7051275 100644 --- a/homeassistant/components/shelly/strings.json +++ b/homeassistant/components/shelly/strings.json @@ -193,6 +193,13 @@ "opened": "Opened", "opening": "[%key:common::state::opening%]" } + }, + "illuminance_level": { + "state": { + "dark": "Dark", + "twilight": "Twilight", + "bright": "Bright" + } } } },