I have an automation which is triggered everytime there is a message in a specific MQTT topic:
trigger:
- platform: mqtt
topic: /light/out
The problem is, each time HA restart or automations are reloaded it’s getting triggered even though there is no new message…
I found absolutely no way to get an automation working with only new messages.
The device who is publishing the messages is an ESP8266. The exact C++ line is:
Thank you so much I deleted everything and now it works flawless I always thought the retained messages are simply getting overwritten… But they are there practically forever until you delete them manually.