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.
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.
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.
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 ?
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=””