I am a brand new user in home-assistant, but have years in other domotica solutions.
I want to send every minute the state of a sensor to my mosquitto mqtt host. Below is only one of the many sensor values I want to send (but you have to start with the first).
From the development I manually do:
service: mqtt.publish
data:
topic: homeassistant/woonkamer/heating
payload_template: '{{ states(''sensor.woonkamer_heating'') }}'
That works great.
But I want to do it automatically every minute to be able to create nice graphs:
In automations.yaml I have:
trigger:
platform: time
minutes: '/60'
seconds: 00
action:
- service: mqtt.publish
data:
topic: homeassistant/woonkamer/heating
payload_template: '{{ states(''sensor.woonkamer_heating'') }}'
But I do get an error that my configuration in automations.yaml is not correct.