You may have already explained this elsewhere, but why, on entry, do you want to use the swutch to turn on the light? Is the presence detection not working fast enough? And on exit is the reason for the use of the switch to reduce the 'run on' time?
The new lighting engine allows other objects to change automation modes
Karam
The new lighting engine allows other objects to change automation modes
Karam
Comment