Hello, I have googled by bits off and tried many mqtt configs. I’m trying to get some data from a mqtt json event displayed in a graph.
the mqtt configs are in a separate file
The main config file def.
mqtt:
sensor: !include_dir_merge_list configurations/mqtt
and the file in the above directory
- name: "Particale Sensor: 10"
state_topic: "home/pi25/particle_sensor/status"
unit_of_measurement: ""
unique_id: "mqtt_particled_10"
value_template: "{{ value_json.10 }}"
- name: "Particale Sensor: 2.5"
state_topic: "home/pi25/particle_sensor/status"
unit_of_measurement: ""
unique_id: "mqtt_particled_2_5"
value_template: "{{ value_json.2.5 }}"
No errors in the log file.
the proof of the data
The output, or lack of it
FYI
The data is also going off to mqtt->telegraf->influx->grafana all ok.