Question about Delaylight Reactor video # 006

My English is not that good, but I am trying to write it down!

@rigpapa: I enjoy using REACTOR. To learn it, I also use the videos on YouTube. Video #006 I want to make it by myself so I make a screenshot, but I do not understand the following points:

  • Device [Delaylight SIM RS (# 71)] uses the variable “startstate”. I cannot find this on my device in the conditions tab. What kind of device is this?
  • The group Delay Off Man uses “(match case) for at least 30 secs”. I also cannot find this option in the reactor.

Perhaps you can explain step by step how this reactor is structured.

I am using Reactor V3.5

Creating the variable is here in the video: Reactor for Vera #006 - Emulating DelayLight in Reactor - YouTube

The “for at least” is a condition option. An example of accessing the condition options is shown here: Reactor for Vera #003 - Simple Motion controlled Light v2 - YouTube

Also documented here: Condition Options - Reactor

thanks for the reply. when i have time i will try

My English is not that good, but I will try to identify my problem

I want to build video # 006 with my Vera. I want to use video # 006 in my garage. I have a motion sensor and one switch.

I will ask you step by step what it is not clear to me to build video # 006.

Step 1:
In your video # 006, the device status called “DelayLight Sim RS (# 71)” has a status variable called “StartState”. I cannot find a device with the StartState status variable. What kind of device is this? Is this a switch?

The StartDate variable is to be created on the Expressions tab. Just create a variable with that name there, but leave the expression field blank. The Activities will use this expression-less variable to save values it needs to save and restore the state of the light.

Somthing like this?

That looks right for the variable. At the time the video was made, there was no “Expression Variable” condition, so it would not be in the example, and I’m not sure why you’ve added it. It could interfere with the reliable operation of the logic presented in the video.

My Reactor Sensor is ready. The following is the result.

When there is motion in the garage; light goes on
After no movement is detected or manually turned off; light goes out
When manual light is turned on; light goes on
When manual light is turned off; light goes off

I used a fibaro motions sensor. I do not use the option “Condition must be sustained” because the motion sensor has a delay by it self.

Thanks for inspiration!

I am inspired by video # 006. I also want to use this in another room.

I have 2 door in the scullery. When I open one of the doors, the light must go on for 1 minutes. After 1 minutes light must go off. When the door closes and opened again within the 1 minutes, the timer (sustained timer) must be reset and start again counting with 1 minutes. How can I reset the sustained timer ?

The sustained timer resets when the related test goes false.

I tried to get it done, but it doesn’t work.

Maybe you can help me.

  • When door 1 opens: light goes on
  • If door 1 closes: the light stays on for 1 minute and then goes off.
  • If door 1 is opened within 1 minute (light is on), the sustained timer must be reset and start again counting 1 minutes.

I sent Logic Summary by mail

Root group - NUL

  • Group “Door Open” - OR
    • Device State, Door 1 Sensor, Tripped is TRUE
    • If you have more than one door, additional tests of same type here
  • Group “Doors Closed” - AND + option: sustained for 60 seconds
    • Group State “Door Open” is FALSE

Activities:
Door Open is TRUE: Turn on the light
Doors Closed is TRUE: Turn off the light

The “sustained for” timing resets automatically when the underlying test (the group state, in this case–a door is opened) goes false.

Many thanks! You helped me on my way again.
For those who want to rebuild the RS. The following RS has become the final one.

Root group - NUL

  • Group: Auto On - AND
    • Expression Variable: StartState equals “”
    • Group: Door Open - OR
      • Door 1 Status is TRUE
      • Door 2 Status is TRUE
      • Door 3 Status is TRUE
  • Group: Manual On - AND
    • Expression Variable: StartState equals “”
    • Light Status changes from “0” to “1”
  • Group : Delay Off - OR
    • Group: Delay Off Auto - AND
      • Expression Variable: StartState equals “Auto”
      • Light Status is TRUE
      • Group State: (self) Door Open is FALSE
  • *Group: Delay Off Man - AND + option: sustained for 60 seconds
    • Expression Variable: StartState equals “Man”
    • Light Status is TRUE
  • Group: Garage light OFF
    • Light Status is FALSE

Expressions/Variables
StartState=

Activities
Auto On is TRUE : Set Variable : StartState=Auto
Door Open is TRUE: Turn on the light
Manual On is TRUE: Set Variable : StartState=Man
Delay Off Auto is TRUE: Turn off the light
Garage light OFF is TRUE : Set Variable : StartState=””

1 Like

Well done!