Shelly: minor improvements (#43138)
This commit is contained in:
parent
c620fa344e
commit
31502e960a
2 changed files with 10 additions and 6 deletions
|
@ -124,6 +124,7 @@ SENSORS = {
|
|||
name="Gas Concentration",
|
||||
unit=CONCENTRATION_PARTS_PER_MILLION,
|
||||
value=lambda value: value,
|
||||
icon="mdi:gauge",
|
||||
# "sensorOp" is "normal" when the Shelly Gas is working properly and taking measurements.
|
||||
available=lambda block: block.sensorOp == "normal",
|
||||
),
|
||||
|
@ -144,7 +145,7 @@ SENSORS = {
|
|||
unit=LIGHT_LUX,
|
||||
device_class=sensor.DEVICE_CLASS_ILLUMINANCE,
|
||||
),
|
||||
("sensor", "tilt"): BlockAttributeDescription(name="tilt", unit=DEGREE),
|
||||
("sensor", "tilt"): BlockAttributeDescription(name="Tilt", unit=DEGREE),
|
||||
("relay", "totalWorkTime"): BlockAttributeDescription(
|
||||
name="Lamp life",
|
||||
unit=PERCENTAGE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue