I have a question,
what have i to do to get the data from a mqtt set like this (see pic) to an database overview (graph) in the sensor in Home Assistant. I don’t understand the syntax correctly.
why are the data not send to the overview?
I have a question,
what have i to do to get the data from a mqtt set like this (see pic) to an database overview (graph) in the sensor in Home Assistant. I don’t understand the syntax correctly.
why are the data not send to the overview?
here the code in the configuration.yaml
I’m pretty new to HA and to MQTT, but it seems you are using the wrong topic. If you want the JSON, you need the topic “gaszaehler/main/json”, not “value”. If you want the value itself, then the topic is correct, but you need to remove the “value_template”.
Here’s my configuration for AI-on-the-edge-MQTT:
sensor:
- name: "Wasserzähler MQTT"
state_topic: "wasserzaehler/main/value"
With this sensor I get the value of the meter itself.