Add illuminance sensor for Shelly gen2 devices (#93559)

This commit is contained in:
Maciej Bieniek 2023-05-25 21:10:44 +00:00 committed by GitHub
parent f5358d3863
commit eb058a3d41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 0 deletions

View file

@ -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",