Hi all,
I receive the following JSON on the MQTT Broker:
How can I map the data values to a sensor (in the configuration.yaml)?
E.g.
sensor.sensor2_type3 = 21.03
sensor.sensor2_type1 = 42.06
Thank you very much for your support
Hi all,
I receive the following JSON on the MQTT Broker:
How can I map the data values to a sensor (in the configuration.yaml)?
E.g.
sensor.sensor2_type3 = 21.03
sensor.sensor2_type1 = 42.06
Thank you very much for your support
sensor.sensor2_type3
value_template: "{{ value_json[0].data }}"
sensor.sensor2_type1
value_template: "{{ value_json[1].data }}"
Hi tom_I
Great. You made my day!
I tried value_json.[0].data and more, but not this option.
Merci & KR
Livio