Skip to content

Commit ba5058a

Browse files
Add ComfoFond sensors (#24)
1 parent d2ea385 commit ba5058a

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

aiocomfoconnect/sensors.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from .util import calculate_airflow_constraints
99

1010
# Sensors
11+
SENSOR_AIRFLOW_CONSTRAINTS = 230
1112
SENSOR_ANALOG_INPUT_1 = 369
1213
SENSOR_ANALOG_INPUT_2 = 370
1314
SENSOR_ANALOG_INPUT_3 = 371
@@ -22,6 +23,10 @@
2223
SENSOR_BYPASS_OVERRIDE = 338
2324
SENSOR_BYPASS_STATE = 227
2425
SENSOR_CHANGING_FILTERS = 18
26+
SENSOR_COMFOFOND_GHE_PRESENT = 419
27+
SENSOR_COMFOFOND_GHE_STATE = 418
28+
SENSOR_COMFOFOND_TEMP_GROUND = 417
29+
SENSOR_COMFOFOND_TEMP_OUTDOOR = 416
2530
SENSOR_COMFORTCONTROL_MODE = 225
2631
SENSOR_DAYS_TO_REPLACE_FILTER = 192
2732
SENSOR_DEVICE_STATE = 16
@@ -69,7 +74,6 @@
6974
SENSOR_TEMPERATURE_SUPPLY = 221
7075
SENSOR_UNIT_AIRFLOW = 224
7176
SENSOR_UNIT_TEMPERATURE = 208
72-
SENSOR_AIRFLOW_CONSTRAINTS = 230
7377

7478
UNIT_WATT = "W"
7579
UNIT_KWH = "kWh"
@@ -171,10 +175,10 @@ class Sensor:
171175
400: Sensor("sensor_400", None, 400, PdoType.TYPE_CN_INT16, lambda x: x / 10),
172176
401: Sensor("sensor_401", None, 401, PdoType.TYPE_CN_UINT8),
173177
402: Sensor("sensor_402", None, 402, PdoType.TYPE_CN_BOOL, bool),
174-
416: Sensor("sensor_416", None, 416, PdoType.TYPE_CN_INT16, lambda x: x / 10),
175-
417: Sensor("sensor_417", None, 417, PdoType.TYPE_CN_INT16, lambda x: x / 10),
176-
418: Sensor("sensor_418", None, 418, PdoType.TYPE_CN_UINT8),
177-
419: Sensor("sensor_419", None, 419, PdoType.TYPE_CN_BOOL, bool),
178+
SENSOR_COMFOFOND_TEMP_OUTDOOR: Sensor("ComfoFond Outdoor Air Temperature", None, 416, PdoType.TYPE_CN_INT16, lambda x: x / 10),
179+
SENSOR_COMFOFOND_TEMP_GROUND: Sensor("ComfoFond Ground Temperature", None, 417, PdoType.TYPE_CN_INT16, lambda x: x / 10),
180+
SENSOR_COMFOFOND_GHE_STATE: Sensor("ComfoFond GHE State Percentage", None, 418, PdoType.TYPE_CN_UINT8),
181+
SENSOR_COMFOFOND_GHE_PRESENT: Sensor("ComfoFond GHE Present", None, 419, PdoType.TYPE_CN_BOOL, bool),
178182
784: Sensor("sensor_784", None, 784, PdoType.TYPE_CN_UINT8),
179183
785: Sensor("sensor_785", None, 785, PdoType.TYPE_CN_BOOL),
180184
802: Sensor("sensor_802", None, 802, PdoType.TYPE_CN_INT16, lambda x: x / 10),

docs/PROTOCOL-PDO.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ Numbers are stored in little endian format.
119119
| 400 | CN_INT16 | | 0.0 |
120120
| 401 | CN_UINT8 | | 0 |
121121
| 402 | CN_BOOL | ?? PostHeaterPresent | 0 |
122-
| 416 | CN_INT16 | ?? Outdoor air temperature | -40.0 |
123-
| 417 | CN_INT16 | ?? GHE Ground temperature | 10.0 |
124-
| 418 | CN_UINT8 | ?? GHE State | 0 |
125-
| 419 | CN_BOOL | ?? GHE Present | 0=absent, 1=present |
122+
| 416 | CN_INT16 | ComfoFond Outdoor Air Temperature | -40.0 |
123+
| 417 | CN_INT16 | ComfoFond Ground Temperature | 10.0 |
124+
| 418 | CN_UINT8 | ComfoFond GHE State Percentage | 0 |
125+
| 419 | CN_BOOL | ComfoFond GHE Present | 0=absent, 1=present |
126126
| 513 | CN_UINT16 | | |
127127
| 514 | CN_UINT16 | | |
128128
| 515 | CN_UINT16 | | |

0 commit comments

Comments
 (0)