Scheduler / astro and time restriction

Peter shared this question 9 years ago
Answered

Hello Everybody


i would like your help to create one of my rule.


here what i am looking for:

Turn on a light in my living room when it is dark in the room and until 10:45pm


initially my rule works perfectly with the Scheduler sensor ( start at 6:45PM) for a specific days

light turn ON

wait 17100 sec

light turn OFF


now with spring and summer, it will be not dark in the living room at 6:45PM

so i had an idea to use the "astro" feature and try to add an constraint => turn off at 10:45


in my screenshot attached I "think" to have created a correct rule but it does not work.


so to summarize

when the sunrise is starting and so dark in the living room

then

turn on the light until 10:45PM

and turn off the light at 10:45


can you please help, assist me?

Thank you in advance

Replies (8)

photo
1

Hello,


I use it for the same purpose. First you forgot the repeat tick, because you want this to do every day!? Tick every day in the second screen you want the rule to apply.

Second the offset -1 means one minute before sunrise? Makes not much sense.

Third: I use for everything an extra rule. One for light on at i.e. 6 o'clock. One for light off at sunrise. One for light on at sunset when it is getting dark and one for light off at 23:00h. Works perfectly for me.


Andreas

photo
1

Thank you Andreas for your answer and advise.


i am little sad because i thought that it will be possible to create all conditions in one rule :-(

photo
1

Peter,


sure you can put all in one rule. My suggestion was how I do it. There a lot of ways to Rome......

photo
1

You are right Andreas lot of ways to Rome.


any other advices to create these astro/turn on and Turn off in the specific time in rule?

photo
1

So as i did not receive an answer except from Andreas, I have shared my return experience


with Andreas advices, I have modified the "schedule" sensor (see screenshot 1)

=> astro + "simple" action => works fine

but my 2nd constraint is not implemented (turn off anyway at 10:45 PM)


I have added a this condition using "join" and "if" (see screenshot 2)

=> astro + join + if => it is not working

in fact it seems that the rule did not continue the "Join" and "if" steps and turn off after 17100 sec


so i have decided to change my logic and create a new rule

=> "when" always happens + "if" with "schedule" action + "if" with time condition to turn off (see screenshot 3)

=> result not yet received I am waiting tonight result


if you have some advices i am ready to take them ;-)


thank you

photo
1

Dear Peter,


to shut off make an other astro with a fixed time which shuts off the lamp. Much more easy and very reliable.


Andreas

photo
1

Hello Andreas


I did then changes, following your advise but it did not tunr OFF as expected at 10:50PM (see screenshot)

23f5f91e6818f74d851d079cbdf29ac4


i did not see how much difficult it is to create a "Simple" rule like that :(

of course as you said Andreas i can create another rule to turn OFF but it will be more "proper" to use only 1 rule.


any other idea?


cheers

photo
2

I so not use an extra logic for starting the rule. I Start with the astro. Make two rules.....

Leave a Comment
 
Attach a file