Tradfri Motion sensor with KAKU Christmas Tree
Posted: Monday 12 December 2022 12:27
I have a Tradfri Motion sensor (PIR)
And I have the Christmas tree lights behind a KAKU controlled socket. Currently that is a manual on/off switch that works just fine.
What I am trying to achieve is to enable the PIR for the tree (since being in the room is hard to plan with just timers)
So the goal would be:
1. Master switch to force it switched off/on regardless of motion
2. Tradfri motion sensor to trigger the lights and switch it on.
3. Keep the lights on for X minutes (open for suggestions) after motion detection.
4. As long there is a motion detected within the X minutes we keep the lights on.
5. When the room has no activity anymore for more than X minutes - Switch tree off.
Would someone have an example script that I could use and amend? I am ok reading scripts, but building from scratch is a different story.
Thanks for any input/direction.
And I have the Christmas tree lights behind a KAKU controlled socket. Currently that is a manual on/off switch that works just fine.
What I am trying to achieve is to enable the PIR for the tree (since being in the room is hard to plan with just timers)
So the goal would be:
1. Master switch to force it switched off/on regardless of motion
2. Tradfri motion sensor to trigger the lights and switch it on.
3. Keep the lights on for X minutes (open for suggestions) after motion detection.
4. As long there is a motion detected within the X minutes we keep the lights on.
5. When the room has no activity anymore for more than X minutes - Switch tree off.
Would someone have an example script that I could use and amend? I am ok reading scripts, but building from scratch is a different story.
Thanks for any input/direction.