Probably a dumb question, but I couldn’t find anything here or on search engines about my exact problem. I have an Aqara FP1E presence detector installed in a room and I want to switch on a smart plug when presence is detected but the automation that turns it on seems to turn it off after a few seconds even though presence is still detected according to the FP1E.
My expectation was that it only turns the plug on, not off.
You are using a device trigger. I personally do not know how they act but apparently it triggers when present and again when present is not there?
¯\(ツ)/¯
I suggest using an entity trigger for this.
Thanks a lot for the help here. It was the Hue switch that has its own opinion on when to turn on and off. Replaced it with an Osram Zigbee plug and now everything works. Hooray!