-
-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Context / Problem:
The ComfoAir integration defines error codes in [aiocomfoconnect/const.py](https://github.com/michaelarnauts/aiocomfoconnect/blob/master/aiocomfoconnect/const.py) such as EXT_PRESSURE_SUP. These errors are currently only logged in Home Assistant logs.
Example log entry:
Supply air pressure too high. Check air outlets, ducts and filters for pollution and obstructions. Check valve settings. (EXT_PRESSURE_SUP ERROR)
On the ComfoSwitch device, a red LED indicates that something is wrong, but in the integration I cannot detect or see these errors. My current sensor.comfoairq_airflow_constraint (state=NoiseGuard) does not reflect these error states.
I am not sure whether this should be considered a bug or a feature request, but (in my opinion) currently there is no way to react to these errors or display them on dashboards in Home Assistant.
Proposed solution / Request:
One possibility could be to expose these errors as a dedicated sensor, e.g.:
sensor.comfoairq_statusorsensor.comfoairq_errorstatecould indicate the error code (EXT_PRESSURE_SUP,EXT_PRESSURE_EX, etc.)attributescould include the detailed description of the error, e.g.,"Supply air pressure too high. Check air outlets, ducts and filters for pollution and obstructions. Check valve settings."
This would allow:
- Displaying errors on Home Assistant dashboards
- Triggering automations based on error states
Questions / Request for guidance:
- Is there currently any workaround to expose these errors in Home Assistant?
- Would it make sense to create a new sensor for this, or should the existing
sensor.comfoairq_airflow_constraintbe extended? - Perhaps this is actually a bug and these errors should be part of the airflow_constraint sensor?