Of course I want to learn, a lot!!
Currently I am not even an amateur about HA…
Yes I read the warning note, but I tried to use states(‘sensor.temperature’) instead of states.sensor.temperature.state but then I got the following error when configuring the automation via the GUI:
Message malformed: template value should be a string for dictionary value @ data[‘action’][0][‘data’]
The message that I try and get the error is the following:
service: notify.exporttxt
data:
message: '{{states('sensor.bme280_temperature_3'}}'
whereas this message it actually works:
service: notify.exporttxt
data:
message: '{{states.sensor.bme280_temperature_3}}'
That is the reason why I could not follow the warning note recommendation.