This node automatically switches lights on or off depending on presence. A presence signal (true
) on IN
sets S
to SVAL
(true
of a profile number greater 0
). S
is reset to false
or 0
after On time
. An input of true
on ON
sets S
to SVAL
regardless of other inputs. ON
is automatically reset after Always on time
. When this happens, RES
is set to true and S
is set depending on IN
and On time
. An input of true
on OFF
sets S
to false
or 0
regardless of other inputs. OFF
is automatically reset after Always off time
. When this happens, RES
is set to true and S
is set depending on IN
and On time
. Setting Always on time
or Always off time
to 0
, disables the timer so the lights will stay on or off until ON
or OFF
are set to false
. Setting EN
to false
disables processing of IN
for example during daytime. IN2
also sets S
to true
but an input of false
to IN2
immediately sets S
to false
or 0
and resets the On time
timer. TG
toggles s
setting it to SVAL
and starting the timer when it is false
, 0
or TG
is different than SVAL
. It is immediately set to false
or 0
and the timer reset when it is true
or greater 0
(except a different value than SVAL
is input). In addition to boolean inputs, TG
works with profile (scene) numbers. 0
is recognized as the on/off profile toggling the last input profile number greater than 0. Any other number switches to that profile and also sets SVAL
.
Note: The inputs are rate limited to one input per second by default (settable through Rate limiter delay
) to avoid too fast outputs.
On time
, Always on time
and Always off time
can also be set dynamically by setting $message['onTime']
, $message['alwaysOnTime']
or $message['alwaysOffTime']
. This only works when these settings are unset or set to 0
on the configuration page.