💡 Sensor Light - Motion Sensor - Door Sensor - Sun Elevation - LUX Value - Scenes - Time - Light Control - Device Tracker - Night Lights

I’m trying to configure the following behavior:

  • A motion sensor activates a lamp, for some on-time. Repeated triggers will keep the light on.
  • The motion sensor only activates the sensor during night
  • A switch can be used to manually switch the lamp on (for some maximum time) and off again
    • Manual operation should always work (day and night)
    • When manually switching the lights off, the motion trigger behavior shall be enabled again automatically.
    • When a motion trigger has activated the lamp, the manual switch can be used to turn it off, even if the on-time hasn’t elapsed yet.

Not sure if it’s relevant, but I’m using an Ikea Rodret switch for manual operation, where the on/off presses are turned into a single switch helper by IKEA RODRET + SOMRIG + TRADFRI Remotes - ZHA/Z2M - Control anything.

I’m struggiling to configure the sensor light blueprint for the bypass behavior:

  • If I enable “1 - Enable the Bypass - Turn lights ON” and select the switch helper, then manual operation works but I’m not able to switch the lamp off when it was activated by motion
  • If I enable both 1 and “2 - Enable the Bypass - Turn lights OFF” and select the switch helper for both 1 & 2 (is this even allowed?), then manual operation works and I’m able to switch the lamp off, but I first have to turn it on again manually even when it was already activated by motion → bad WAF…

@Blacky I’m sure this must be possible with your awesome blueprint somehow, but I just don’t get it…