Skip to content

Commit

Permalink
Add ComfoCool state and condensor temperature sensors mappings (#28)
Browse files Browse the repository at this point in the history
* Add ComfoCool state and condensor sensors mapping

* Add doc info about Comfocool state
  • Loading branch information
szibis authored May 4, 2024
1 parent a07a4b9 commit 0aac175
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions aiocomfoconnect/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@
SENSOR_TEMPERATURE_SUPPLY = 221
SENSOR_UNIT_AIRFLOW = 224
SENSOR_UNIT_TEMPERATURE = 208
SENSOR_COMFOCOOL_STATE = 784
SENSOR_COMFOCOOL_CONDENSOR_TEMP = 802

UNIT_WATT = "W"
UNIT_KWH = "kWh"
Expand Down Expand Up @@ -179,7 +181,7 @@ class Sensor:
SENSOR_COMFOFOND_TEMP_GROUND: Sensor("ComfoFond Ground Temperature", None, 417, PdoType.TYPE_CN_INT16, lambda x: x / 10),
SENSOR_COMFOFOND_GHE_STATE: Sensor("ComfoFond GHE State Percentage", None, 418, PdoType.TYPE_CN_UINT8),
SENSOR_COMFOFOND_GHE_PRESENT: Sensor("ComfoFond GHE Present", None, 419, PdoType.TYPE_CN_BOOL, bool),
784: Sensor("sensor_784", None, 784, PdoType.TYPE_CN_UINT8),
SENSOR_COMFOCOOL_STATE: Sensor("ComfoCool State", None, 784, PdoType.TYPE_CN_UINT8),
785: Sensor("sensor_785", None, 785, PdoType.TYPE_CN_BOOL),
802: Sensor("sensor_802", None, 802, PdoType.TYPE_CN_INT16, lambda x: x / 10),
SENSOR_COMFOCOOL_CONDENSOR_TEMP: Sensor("ComfoCool Condensor Temperature", None, 802, PdoType.TYPE_CN_INT16, lambda x: x / 10),
}
2 changes: 1 addition & 1 deletion docs/PROTOCOL-PDO.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Numbers are stored in little endian format.
| 522 | CN_INT16 | | |
| 523 | CN_INT16 | | |
| 524 | CN_UINT8 | | |
| 784 | CN_UINT8 | | 0=off, 1=on (0) |
| 784 | CN_UINT8 | ComfoCool State | 0=off, 1=on (0) |
| 785 | CN_BOOL | ?? ComfoCoolCompressor State | 0 |
| 801 | CN_INT16 | ?? T10ROOMTEMPERATURE | 0.0 |
| 802 | CN_INT16 | ComfoCool Condensor Temperature | 0.0 |
Expand Down

0 comments on commit 0aac175

Please sign in to comment.