Dimmer enters to 2 different light levels based on Day or Night time when triggered by an armed Motion sensor

Patrick,

Appreciate your help setting a Reactor so that a Dimmer enters to 2 different light levels based on Day or Night time when triggered by an armed Motion sensor.

Use Case:
I have a Dimmable Light and a Motion Sensor.
I have a Reactor expression saved called current level so that I can return to the previous level when the motion has stopped or timed out. This is working but I’d like to add more logic -

  1. During daylight hours I would like to set the Dimmer to 100% and then return to previous level.
  2. During the night I would like to set the Dimmer to 50% and then return to previous level.

What would the logic look like?

Conditions:

  • Root group - NUL operator
    • Group “Daytime” - AND operator
      • Date/Time between HH:MM and HH:MM <-- set your DAYTIME hours here
    • Group “Daytime Motion” – AND + option “delay reset” for light minimum “on” time (seconds)
      • Group State condition (this ReactorSensor) group “Daytime” “is TRUE”
      • Device State motion sensor “ArmedTripped” is TRUE
    • Group “Night Motion” – AND + option “delay reset” for light minimum “on” time (seconds)
      • Group State condition (this ReactorSensor) group “Daytime” “is FALSE”
      • Device State motion sensor “ArmedTripped” is TRUE

Variables:
currentlevel – a getstate() condition for your light’s LoadLevelStatus
savedlevelno expression at all–leave it blank

Activities:

  • “Daytime Motion is TRUE”
    • Device Action (this ReactorSensor) “SetVariable” variable “savedlevel” value {currentlevel}
    • Device Action light SetLoadLevelTarget value 100
  • “Daytime Motion is FALSE”
    • Device Action light SetLoadLevelTarget value {savedlevel}
  • “Night Motion is TRUE”
    • Device Action (this ReactorSensor) “SetVariable” variable “savedlevel” value {currentlevel}
    • Device Action light SetLoadLevelTarget value 50
  • “Night Motion is FALSE”
    • Device Action light SetLoadLevelTarget value {savedlevel}

© 2019 Vera Control Ltd., All Rights Reserved. Terms of Use | Privacy Policy