Hello to all !
I have 4 pir sensors made by me with esp32. They work on MQTT and I designed them in such a way that the pir sensor is reseting the the esp32 from deep-sleep. When the sensor is rebooting, is sending over MQTT : movement message, temperature, humidity and battery level. I also made 4 automations which are sending a notification on my phone when there is movement in a room. The problem is that after restarting Home Automation all pir sensors are false triggered, they show movement and I also receive notifications from all automations. The same thing is also happening when I make some changes in the automations ( for example the name) and after that I press the Save button. All sensors are false triggered by that change in the automation…I also tried to deactivate the retain in the mqtt.publish but is doing the same . Does anyone know what can be the problem ?!