Add translatable states to smoke detector in SmartThings (#139365)
parent
92268f894a
commit
468208502f
|
@ -684,6 +684,8 @@ CAPABILITY_TO_SENSORS: dict[
|
||||||
SmartThingsSensorEntityDescription(
|
SmartThingsSensorEntityDescription(
|
||||||
key=Attribute.SMOKE,
|
key=Attribute.SMOKE,
|
||||||
translation_key="smoke_detector",
|
translation_key="smoke_detector",
|
||||||
|
options=["detected", "clear", "tested"],
|
||||||
|
device_class=SensorDeviceClass.ENUM,
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -284,7 +284,12 @@
|
||||||
"name": "Link quality"
|
"name": "Link quality"
|
||||||
},
|
},
|
||||||
"smoke_detector": {
|
"smoke_detector": {
|
||||||
"name": "Smoke detector"
|
"name": "Smoke detector",
|
||||||
|
"state": {
|
||||||
|
"detected": "[%key:component::smartthings::entity::sensor::carbon_monoxide_detector::state::detected%]",
|
||||||
|
"clear": "[%key:component::smartthings::entity::sensor::carbon_monoxide_detector::state::clear%]",
|
||||||
|
"tested": "[%key:component::smartthings::entity::sensor::carbon_monoxide_detector::state::tested%]"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"thermostat_cooling_setpoint": {
|
"thermostat_cooling_setpoint": {
|
||||||
"name": "Cooling set point"
|
"name": "Cooling set point"
|
||||||
|
|
Loading…
Reference in New Issue