Perfect! You’re my hero of the day! Or month even!
Using it with my Aqara T1 motion sensor and IKEA LED in the kitchen. Just wondering though: do you have a motion sensor that doesn’t suffer from the 2 minute ‘cooldown’ timer? I’d like to have it turn off the light after 30 seconds or 1 minute, but it’s capped at 2 minutes minimum, the motion sensor doesn’t register any motion within 2 minutes after registering something.
I have only used this with my Philips Hue sensor, which I actually don’t know the ‘cooldown’ on. I know that I’ve seen someone hacking there way around that, resetting the sensor after a set amount of time if you want to have it be faster than 2 minutes. Can’t remember where though, sorry…
I tried this with a Hue Motion Sensor connected through the ZHA with a conbeeII. When we connect this way the only entity with the Motion class actually is toggled by a hidden switch in the battery area on the sensor. I was able to change the blueprint to instead look for an occupancy sensor and all works well. Im not sure if you can specify more then one class to be allowed for that field but it might be helpful to some if both motion and occupancy entities could be selected.
I have 5 Hue motion sensors, the cooldown / timeout is only 10 seconds via Z2M. Almost quite perfect, I think with the Aqara hack you can get it down to 5 seconds but I really like using the high end Hue products in my house.