From 5a3f845bdc34d745a136a037fb4f8b224f44a723 Mon Sep 17 00:00:00 2001 From: Joachim Schirrmacher Date: Sat, 2 Dec 2023 05:10:25 +0100 Subject: [PATCH] chore: Add temperature sensor to demo config --- README.md | 2 +- config.yaml | 31 ++++++++++++++++++++++++------- 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 480ac41..ed40b0a 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ I use a [Mosquitto](https://mosquitto.org/) message broker, [Prometheus](https:/ ![Architecture diagram](./architecture.drawio.png) -In the meantime, I've added a gas meter sensor, which also uses a ESP8266, but a reed relay to measure the turns of the meter's wheel. So I expanded the tool to be more configurable which MQTT topics to subscribe and to which Prometheus metrics to publish the data. +In the meantime, I've added a gas meter sensor, which also uses a ESP8266, but a reed relay to measure the turns of the meter's wheel. So I expanded the tool to be more configurable which MQTT topics to subscribe and to which Prometheus metrics to publish the data. Also, I've added a HY001 temperature sensor which measures the outside temperature. ## Configuration diff --git a/config.yaml b/config.yaml index cc01073..09bdf2e 100644 --- a/config.yaml +++ b/config.yaml @@ -23,12 +23,29 @@ metrics: meter: STROM.Meter_number - name: gas_meter_voltage - description: The relay's voltage + description: The relay's voltage [V] type: gauge - topic: /gas-counter + topic: tele/gas_meter/SENSOR path: voltage - - name: gas_meter_total - description: measured amount of gas (m^3 gas) - type: count - topic: /gas-counter - path: total + - name: gas_meter_counter + description: measured amount of gas [1/100 m^3] + type: counter + topic: tele/gas_meter/SENSOR + path: counter + + - name: gas_meter_wifi_fails + description: Number of failed wifi connections + type: counter + topic: tele/gas_meter/SENSOR + path: fails.wifi + - name: gas_meter_mqtt_fails + description: Number of failed connections to MQTT server + type: counter + topic: tele/gas_meter/SENSOR + path: fails.mqtt + + - name: outside_temperature + description: The current outside temperature [°C] + type: gauge + topic: tele/gas_meter/SENSOR + path: temperature