Add illuminance sensor for Shelly gen2 devices (#93559)
This commit is contained in:
parent
f5358d3863
commit
eb058a3d41
3 changed files with 19 additions and 0 deletions
|
@ -584,6 +584,14 @@ RPC_SENSORS: Final = {
|
|||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
entity_registry_enabled_default=False,
|
||||
),
|
||||
"illuminance": RpcSensorDescription(
|
||||
key="illuminance",
|
||||
sub_key="lux",
|
||||
name="Illuminance",
|
||||
native_unit_of_measurement=LIGHT_LUX,
|
||||
device_class=SensorDeviceClass.ILLUMINANCE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
),
|
||||
"temperature": RpcSensorDescription(
|
||||
key="switch",
|
||||
sub_key="temperature",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue