Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ComfoFond sensors #24

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions aiocomfoconnect/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from .util import calculate_airflow_constraints

# Sensors
SENSOR_AIRFLOW_CONSTRAINTS = 230
SENSOR_ANALOG_INPUT_1 = 369
SENSOR_ANALOG_INPUT_2 = 370
SENSOR_ANALOG_INPUT_3 = 371
Expand All @@ -22,6 +23,10 @@
SENSOR_BYPASS_OVERRIDE = 338
SENSOR_BYPASS_STATE = 227
SENSOR_CHANGING_FILTERS = 18
SENSOR_COMFOFOND_GHE_PRESENT = 419
SENSOR_COMFOFOND_GHE_STATE = 418
SENSOR_COMFOFOND_TEMP_GROUND = 417
SENSOR_COMFOFOND_TEMP_OUTDOOR = 416
SENSOR_COMFORTCONTROL_MODE = 225
SENSOR_DAYS_TO_REPLACE_FILTER = 192
SENSOR_DEVICE_STATE = 16
Expand Down Expand Up @@ -69,7 +74,6 @@
SENSOR_TEMPERATURE_SUPPLY = 221
SENSOR_UNIT_AIRFLOW = 224
SENSOR_UNIT_TEMPERATURE = 208
SENSOR_AIRFLOW_CONSTRAINTS = 230

UNIT_WATT = "W"
UNIT_KWH = "kWh"
Expand Down Expand Up @@ -171,10 +175,10 @@ class Sensor:
400: Sensor("sensor_400", None, 400, PdoType.TYPE_CN_INT16, lambda x: x / 10),
401: Sensor("sensor_401", None, 401, PdoType.TYPE_CN_UINT8),
402: Sensor("sensor_402", None, 402, PdoType.TYPE_CN_BOOL, bool),
416: Sensor("sensor_416", None, 416, PdoType.TYPE_CN_INT16, lambda x: x / 10),
417: Sensor("sensor_417", None, 417, PdoType.TYPE_CN_INT16, lambda x: x / 10),
418: Sensor("sensor_418", None, 418, PdoType.TYPE_CN_UINT8),
419: Sensor("sensor_419", None, 419, PdoType.TYPE_CN_BOOL, bool),
SENSOR_COMFOFOND_TEMP_OUTDOOR: Sensor("ComfoFond Outdoor Air Temperature", None, 416, PdoType.TYPE_CN_INT16, lambda x: x / 10),
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),
785: Sensor("sensor_785", None, 785, PdoType.TYPE_CN_BOOL),
802: Sensor("sensor_802", None, 802, PdoType.TYPE_CN_INT16, lambda x: x / 10),
Expand Down
8 changes: 4 additions & 4 deletions docs/PROTOCOL-PDO.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ Numbers are stored in little endian format.
| 400 | CN_INT16 | | 0.0 |
| 401 | CN_UINT8 | | 0 |
| 402 | CN_BOOL | ?? PostHeaterPresent | 0 |
| 416 | CN_INT16 | ?? Outdoor air temperature | -40.0 |
| 417 | CN_INT16 | ?? GHE Ground temperature | 10.0 |
| 418 | CN_UINT8 | ?? GHE State | 0 |
| 419 | CN_BOOL | ?? GHE Present | 0=absent, 1=present |
| 416 | CN_INT16 | ComfoFond Outdoor Air Temperature | -40.0 |
| 417 | CN_INT16 | ComfoFond Ground Temperature | 10.0 |
| 418 | CN_UINT8 | ComfoFond GHE State Percentage | 0 |
| 419 | CN_BOOL | ComfoFond GHE Present | 0=absent, 1=present |
| 513 | CN_UINT16 | | |
| 514 | CN_UINT16 | | |
| 515 | CN_UINT16 | | |
Expand Down
Loading