Skip to content

Commit

Permalink
feat: add top water temp
Browse files Browse the repository at this point in the history
  • Loading branch information
wernerfred committed Apr 20, 2022
1 parent 2bc6ec2 commit ed7c21b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ The following metrics are exposed:
| `nilan_cts700_indoor_temp_wanted `| `20260` | Wanted room temperature | Celsius | `Gauge` |
| `nilan_cts700_bypass_state` | `21773` | Bypass damper | | `Gauge` |
| `nilan_cts700_water_temp_bottom` | `20522` | T12 bottom temperature in DHW water tank | Celsius | `Gauge` |
| `nilan_cts700_water_temp_top` | `20520` | T11 top temperature in DHW water tank | Celsius | `Gauge` |
| `nilan_cts700_water_temp_wanted` | `20460` | Hot water set point | Celsius | `Gauge` |
| `nilan_cts700_humidity_average` | `20164` | Average Humidity | Percent | `Gauge` |

Expand Down
1 change: 1 addition & 0 deletions app/cts700_modbus.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"indoor_temp_wanted": [20260, 0.1],
"bypass_state": [21773, 1],
"water_temp_bottom": [20522, 0.11],
"water_temp_top": [20520, 0.11],
"water_temp_wanted": [20460, 0.11],
"humidity_average": [20164, 1],
}
Expand Down
3 changes: 3 additions & 0 deletions app/prom_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
gIndoorTempWanted = Gauge('nilan_cts700_indoor_temp_wanted', 'Indoor temperature wanted', ['scale'])
gBypassState = Gauge('nilan_cts700_bypass_state', 'Bypass state')
gWaterTempBottom = Gauge('nilan_cts700_water_temp_bottom', 'Water temperature bottom', ['scale'])
gWaterTempTop = Gauge('nilan_cts700_water_temp_top', 'Water temperature top', ['scale'])
gWaterTempWanted = Gauge('nilan_cts700_water_temp_wanted', 'Water temperature wanted', ['scale'])
gHumidityAverage = Gauge('nilan_cts700_humidity_average', 'Humidity average')

Expand All @@ -22,6 +23,7 @@
gOutdoorTemp.labels('°C')
gIndoorTempWanted.labels('°C')
gWaterTempBottom.labels('°C')
gWaterTempTop.labels('°C')
gWaterTempWanted.labels('°C')


Expand All @@ -33,6 +35,7 @@ def setMetrics():
gIndoorTempWanted.labels('°C').set(values['indoor_temp_wanted'])
gBypassState.set(values['bypass_state'])
gWaterTempBottom.labels('°C').set(values['water_temp_bottom'])
gWaterTempTop.labels('°C').set(values['water_temp_top'])
gWaterTempWanted.labels('°C').set(values['water_temp_wanted'])
gHumidityAverage.set(values['humidity_average'])
except:
Expand Down

0 comments on commit ed7c21b

Please sign in to comment.