Skip to content

Commit

Permalink
Add example for Shelly H&T sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
pdostal committed Jan 21, 2024
1 parent 47658bb commit aef661e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions examples/shelly_ht.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Sample MQTT messages from Shelly H&T processed by this configuration file:
# $ mosquitto_sub -h 127.0.0.1 -t 'shellies/+/sensor/+' -v -u bob -P happylittleclouds
#
# shellies/shellyht-CC2D76/sensor/temperature 24.75
# shellies/shellyht-CC2D76/sensor/humidity 43.5
# shellies/shellyht-CC2D76/sensor/battery 100
# shellies/shellyht-CC2D76/sensor/ext_power false
# shellies/shellyht-CC2D76/sensor/error 0
# shellies/shellyht-CC2D76/sensor/act_reasons ["sensor"]

mqtt:
server: tcp:https://127.0.0.1:1883
user: bob
password: happylittleclouds
topic_path: shellies/+/sensor/+
device_id_regex: "shellies/(?P<deviceid>.*)/sensor/.*"
metric_per_topic_config:
metric_name_regex: "shellies/(?P<deviceid>.*)/sensor/(?P<metricname>.*)"
qos: 0
cache:
timeout: 24h
metrics:
- prom_name: temperature
mqtt_name: temperature
type: gauge
const_labels:
sensor_type: shelly
- prom_name: humidity
mqtt_name: humidity
type: gauge
const_labels:
sensor_type: shelly
- prom_name: battery
mqtt_name: battery
type: gauge
const_labels:
sensor_type: shelly

0 comments on commit aef661e

Please sign in to comment.