Closed monkmad closed 4 months ago
Could you grab the device capabilities for your device? I know what the issue is, but it'd nice to verify. The problem is that the integration currently treats both "carbon monoxide" and "carbon monoxide level" as measurements, but the non-level attribute should probably be a binary sensor.
Sure; here you go. Looks like it is an ENUM with three values (clear, tested, detected)
[
{
"capabilities": [
"Refresh",
"Battery",
{
"attributes": [
{
"name": "battery",
"currentValue": "100",
"dataType": "NUMBER",
"values": null
}
]
},
"TamperAlert",
{
"attributes": [
{
"name": "tamper",
"currentValue": "clear",
"dataType": "ENUM",
"values": [
"clear",
"detected"
]
}
]
},
"SmokeDetector",
{
"attributes": [
{
"name": "smoke",
"currentValue": "clear",
"dataType": "ENUM",
"values": [
"clear",
"tested",
"detected"
]
}
]
},
"CarbonMonoxideDetector",
{
"attributes": [
{
"name": "carbonMonoxide",
"currentValue": "clear",
"dataType": "ENUM",
"values": [
"detected",
"tested",
"clear"
]
}
]
},
"TemperatureMeasurement",
{
"attributes": [
{
"name": "temperature",
"currentValue": "72.50",
"dataType": "NUMBER",
"values": null
}
]
},
"Sensor"
]
}
]
This should be fixed in v0.9.25.
Thanks again for the super fast turnaround! This seems to have eliminated the issue; I don't see the error in the logs anymore.
Closing the issue as it is fixed in v0.9.25
Describe the bug
I have a CO/Smoke sensor which reports the status of "Carbon Monoxide" and "Smoke" as "clear" instead of 0 (zero). This results in an error since Home Assistant expects a numeric value. I'm not sure if this is related to how the HACS-hubitat integration first setup the sensor, or if it is a HomeAssistant feature (bug)
To Reproduce
Screenshots/Logs
Environment