diff --git a/README.md b/README.md index 73daa70..62b34ab 100644 --- a/README.md +++ b/README.md @@ -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` | diff --git a/app/cts700_modbus.py b/app/cts700_modbus.py index 0f10ce7..f80ed43 100644 --- a/app/cts700_modbus.py +++ b/app/cts700_modbus.py @@ -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], } diff --git a/app/prom_export.py b/app/prom_export.py index 05780e0..b2960b8 100644 --- a/app/prom_export.py +++ b/app/prom_export.py @@ -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') @@ -22,6 +23,7 @@ gOutdoorTemp.labels('°C') gIndoorTempWanted.labels('°C') gWaterTempBottom.labels('°C') +gWaterTempTop.labels('°C') gWaterTempWanted.labels('°C') @@ -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: