Hello guys,
I know that there are many topics on templating subjects and believe me I went through a lot of them!
I have in my configuration.yaml an MQTT sensor:
mqtt:
sensor:
# TXsoil sensors
- name: "sms_txsoil1"
state_topic: "sms_wf1_out_tx-o-txsoil1"
value_template: '{{ value_json.Humidity }}'
unit_of_measurement: '%'
The string sent by this sensor is:
{"B":94,"W":1,"Humidity":8,"Date":20220909,"Time":1900,"Name":TXsoil1,"Device":TXsoil,"H":"CE6408"}%
My goal would be to extract âHumidityâ as entity and the rest of the values as attributes of this entity.
At the moment the only thing that I got with the code in the configuration.yaml is:
"unkwnown"
Since I was not even able to extract one value from the json string I stop there start searching for solutions and as I said couldnât find anythng meaningful.
Can anybody help?
thanks
Luca