This object is in archive! 

switching light on only during dusk

Darkwing shared this question 8 years ago
Answered

Hi,


I have a LWRF door switch, a LWRF lightbulb and a LWRF dusk to dawn sensor. I want to accomplish the following:


When it is dusk, and I open the door, the light should come on. When it is dawn and I open the door, it should stay off.


When the light is on and I close the door, it should go off.


I made the following rules.


3d634539b5a22a70a2c9bbe7c3a572fb


Above rule does not work properly, the light comes on regardless whether it is dusk or dawn.


44bc726656a6e9a1399c2d7ec321086a


To switch the light off, I made above rule, this works. Though, below rule also works, what is the difference?


84cb319fa193ed8699c97d5ea3ccd316


Thanks for the help.


Regards

DJ

Replies (4)

photo
2

DJ,


The difference between Rule 4 and 5 is the fact that 4 only runs when the door sensor sends the "closed" state to the controller and 5 runs every time the door sensor sends the "closed" or "open" state, your "IF" statement is what makes the functionality of turning of the light. In previous case is the "when" statement. I find the second approach more reliable than the first one, specially when using multisensors that can give you other status updates like "motion", "no motion", "temperature" or other like "luminosity" status reports. For your first question try something like the picture attached and see if it works for you, I have a similar application using a motion/luminosity sensor and the RGBW bulb. The bulb only comes goes to 100% intensity if the three following conditions are true, motion sensor detected motion, luminosity is below 50 lux and the RGBW is completely off (this last condition prevents this rule from overriding an scene with luminosity less than 100). Hope this helps.

photo
1

Made a new rule taking your example as starting point. It now works as intended!!


Thanks a lot!

photo
photo
1

What is the dusk to dawn sensor? It looks like a virtual switch you have created, but from what?


Also i would do as Alberto recommended. Use the when door state "any" then an If door state"open" and Dusk trigger.

photo
1

What is the dusk to dawn sensor? It looks like a virtual switch you have created, but from what?


Also i would do as Alberto recommended. Use the when door state "any" then an If door state"open" and Dusk trigger.

photo
1

It is an actual dusk to dawn sensor:


http://www.vesternet.com/lightwaverf-dusk-to-dawn-sensor


Works great.

photo
1

Interesting. But couldn't you just use either the Virtual Weatherstation to trigger a virtual switch, or use a light sensor to do the same?

photo
1

Hello Adrian,


the Rule in attachment triggers a Virtual switch at sunrise. Alternately you can also add an offset to this time e.g. +5 will trigger a Virtual switch 5 min after the sunrise and -5 will trigger it 5 min before sunrise

photo
1

probably a light sensor would work, but this dusk to dawn sensor I already had from my LWRF era before switching to zwave, so thought might as well re-use it.


regarding virtual switches/devices............ I am not really keen on these, seem not very reliable, don't think they work without internet connection either?

photo
1

The virtual switches are very reliable. if you are referring to the virtual weatherstation, well this is dependent on your internet connection. Basically I would just create a virtual switch that is triggered by a light sensor. And just to be sure it is actually getting dark, or light, put in a wait command and check the luminance value again, then trigger the switch.

photo
Leave a Comment
 
Attach a file