Set options for carbon monoxide detector sensor in SmartThings (#139346)

This commit is contained in:
Joost Lekkerkerker 2025-02-26 16:05:59 +01:00 committed by GitHub
parent 9be8fd4eac
commit e403bee95b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -166,6 +166,8 @@ CAPABILITY_TO_SENSORS: dict[
SmartThingsSensorEntityDescription( SmartThingsSensorEntityDescription(
key=Attribute.CARBON_MONOXIDE, key=Attribute.CARBON_MONOXIDE,
translation_key="carbon_monoxide_detector", translation_key="carbon_monoxide_detector",
options=["detected", "clear", "tested"],
device_class=SensorDeviceClass.ENUM,
) )
] ]
}, },

View File

@ -61,7 +61,12 @@
"name": "Body weight" "name": "Body weight"
}, },
"carbon_monoxide_detector": { "carbon_monoxide_detector": {
"name": "Carbon monoxide detector" "name": "Carbon monoxide detector",
"state": {
"detected": "Detected",
"clear": "Clear",
"tested": "Tested"
}
}, },
"dishwasher_machine_state": { "dishwasher_machine_state": {
"name": "Machine state" "name": "Machine state"