mirror of
https://github.com/home-assistant/core.git
synced 2026-02-15 07:36:16 +00:00
Add illuminance sensor for Shelly Plug US Gen4 (#150681)
This commit is contained in:
@@ -43,6 +43,9 @@
|
||||
},
|
||||
"valve_status": {
|
||||
"default": "mdi:valve"
|
||||
},
|
||||
"illuminance_level": {
|
||||
"default": "mdi:brightness-5"
|
||||
}
|
||||
},
|
||||
"switch": {
|
||||
|
||||
@@ -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"],
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -193,6 +193,13 @@
|
||||
"opened": "Opened",
|
||||
"opening": "[%key:common::state::opening%]"
|
||||
}
|
||||
},
|
||||
"illuminance_level": {
|
||||
"state": {
|
||||
"dark": "Dark",
|
||||
"twilight": "Twilight",
|
||||
"bright": "Bright"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user