Hi!
I am just starting with Home Assistant and as a first step I try to set up an Ikea Vallhorn motion sensor and an Ikea Tradfri light bulb. I got both of them paired and set up two automations, one turning the light on and one turning it off. What I do not understand is how to set the duration the light stays on. I see the following settings:
The light has a on/off transition time which currently is set to 5 (unit of measure not disclosed).
The motion sensor has an activation time set to 32 seconds.
The on-automation (done with a blueprint) has a wait time of 95 seconds.
What actually happens is that the light goes on, stays on for roughly 20 seconds and then turns off.
Thank you for providing your setup! The questions I have are:
In the “wait for trigger” section you have a “for: 4 minutes”. What does that do exactly? Does it wait for four minutes and then checks if occupancy has been cleared? Or does it wait for 4 minutes after occupancy has been cleared and then turns the light off?
In the same section you have a “timeout:” set to “minutes: 30”. What does that to? Does it turn off the lamp latest after 30 minutes of not receiving a “type: not_occupied” event?
And in the third section for “light.turn_off” you have data:transition: 60. What does that do?
the 4 minutes is after the occupancy clears so basically the light stays on for the combination for the innate occupancy delay clearing and the 4 minute wait delay.
the 30 second entry is for a disabled occupancy check on a near by motion sensor (hallway outside laundry) so it can be ignored.
occupancy > light on > however long occupancy is maintained > occupancy cleared for 4 minutes > turn off lights
the timeout is an option in ‘wait for trigger’ function, so that if for some reason the occupancy never clears, the ‘wait for’ section will continue and shut off the lights. its an optional failsafe for triggers that may run indefinitely.
the light off transition fades out the lights over 60 seconds, so if for some reason one is standing still in the laundry for ~4 minutes, the light will start dimming instead of just going instantly dark.