Skip to content

Commit

Permalink
chore: Add temperature sensor to demo config
Browse files Browse the repository at this point in the history
  • Loading branch information
jschirrmacher committed Dec 2, 2023
1 parent 9c6bf3e commit 5a3f845
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
31 changes: 24 additions & 7 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5a3f845

Please sign in to comment.