Hello,
I have read some threads here on the community forums, but I still struggle to determine the cause of my mishaps.
I am simply trying to publish current temperature from my aqara sensor every 20 seconds to an mqtt topic.
until now, my config looks like this:
I pasted this into dev tools - template and I know for sure the line with payload_template will output the current temperature. But I get an error on the next line when pasting this into automations.yaml and I do not know why.
I really have veeeery low knowledge in programming, abd I need some help
where:
the trigger is: every 20 seconds.
action is: it publishes to the topic opentherm-thermostat/current-temperature/set the value of the sensor sensor.0x00158d000465809a_temperature.