Hello
I have some sensors connected via Homekit. I can see the values in Lovelace frontend.
I want to send the temperature value every x minutes on my MQTT server.
I’m unable to recover the sensor value to publish it, could you help me to discover what I made wrong ?
yes I use an Automation
with trigger - Time model envery /5 minutes
with action :
data:
payload_template: ‘{{ states.sensor.nameofmysensor.state }}’
topic: myMQTTtopic
service: mqtt.publish