kpetremann / mqtt-exporter

Simple generic MQTT Prometheus exporter for IoT working out of the box
https://hub.docker.com/r/kpetrem/mqtt-exporter
MIT License
108 stars 30 forks source link

More generic single value support and add tests #18

Closed kpetremann closed 2 years ago

kpetremann commented 2 years ago

Add support to default Tasmota MQTT message format (related to #17).

As it is similar to Shelly's format, this PR aims also to make it more generic and detect if the payload is a single value. If so, it will assume that the topic format is: <prefix>/<name>/[.*/]<sensor>

Add some functional tests.

kpetremann commented 2 years ago

Todo before merging