Skip to content

Commit 0aac175

Browse files
authored
Add ComfoCool state and condensor temperature sensors mappings (#28)
* Add ComfoCool state and condensor sensors mapping * Add doc info about Comfocool state
1 parent a07a4b9 commit 0aac175

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

aiocomfoconnect/sensors.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@
7474
SENSOR_TEMPERATURE_SUPPLY = 221
7575
SENSOR_UNIT_AIRFLOW = 224
7676
SENSOR_UNIT_TEMPERATURE = 208
77+
SENSOR_COMFOCOOL_STATE = 784
78+
SENSOR_COMFOCOOL_CONDENSOR_TEMP = 802
7779

7880
UNIT_WATT = "W"
7981
UNIT_KWH = "kWh"
@@ -179,7 +181,7 @@ class Sensor:
179181
SENSOR_COMFOFOND_TEMP_GROUND: Sensor("ComfoFond Ground Temperature", None, 417, PdoType.TYPE_CN_INT16, lambda x: x / 10),
180182
SENSOR_COMFOFOND_GHE_STATE: Sensor("ComfoFond GHE State Percentage", None, 418, PdoType.TYPE_CN_UINT8),
181183
SENSOR_COMFOFOND_GHE_PRESENT: Sensor("ComfoFond GHE Present", None, 419, PdoType.TYPE_CN_BOOL, bool),
182-
784: Sensor("sensor_784", None, 784, PdoType.TYPE_CN_UINT8),
184+
SENSOR_COMFOCOOL_STATE: Sensor("ComfoCool State", None, 784, PdoType.TYPE_CN_UINT8),
183185
785: Sensor("sensor_785", None, 785, PdoType.TYPE_CN_BOOL),
184-
802: Sensor("sensor_802", None, 802, PdoType.TYPE_CN_INT16, lambda x: x / 10),
186+
SENSOR_COMFOCOOL_CONDENSOR_TEMP: Sensor("ComfoCool Condensor Temperature", None, 802, PdoType.TYPE_CN_INT16, lambda x: x / 10),
185187
}

docs/PROTOCOL-PDO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Numbers are stored in little endian format.
145145
| 522 | CN_INT16 | | |
146146
| 523 | CN_INT16 | | |
147147
| 524 | CN_UINT8 | | |
148-
| 784 | CN_UINT8 | | 0=off, 1=on (0) |
148+
| 784 | CN_UINT8 | ComfoCool State | 0=off, 1=on (0) |
149149
| 785 | CN_BOOL | ?? ComfoCoolCompressor State | 0 |
150150
| 801 | CN_INT16 | ?? T10ROOMTEMPERATURE | 0.0 |
151151
| 802 | CN_INT16 | ComfoCool Condensor Temperature | 0.0 |

0 commit comments

Comments
 (0)