sunset/sunrise scheduler not working

Björn shared this thanks 1 month ago

trying to activate lights based on sunrise/sunset from weather station.

the rules should activate a sensor, which will activate the light on/off rule.

Lights should go on at 05.30 and off around sunrise. In the same way on at sunset an off at 23.45.

However the sensors will not activate. I have also tried replacing the sensors with variables, with the same result.

The start time has been set in the future when saving.

What could be wrong in these rules?


Rules attached

Comments (13)

photo
1

Set the start time to the past

photo
1

af8a0888d76556741678355dbf8823e2

photo
1

Bjorn,

This is how I handle my daylight detector, after implementing this then you just need to use this sensor to trigger your rules or evaluate it within rules.

If the schedulers are not working try deleting the rule, sync, refresh and create the schedulers from scratch. DO NOT COPY schedulers from rule to rule.

Hope this helps.

photo
1

Hi

Tried setting start time to the past, but scheduler would still not run.

Now i removed, synced and made new ones (copied yours Alberto in case there was some other issue with my rules)

Guess I will have to wait for sunrise and see if it works.

Thanks for your support, i'll get back to you when I know more.

photo
1

Sunset was one hour ago, and "day" sensor has not been activated, so still not working

edit:

Lights should work when day is inactive, which means they should always be on during the time specified in my light rules. Checking the history, day has never been activated

photo
1

Change the weather station to another station.

photo
1

Attila, why? Is it a known bug? I'm struggling with similar problem, rule engine doesn't evaluate sunrise/sunset attribute correctly. I see correct values in weather widget. I will write more, but need to do some tests. Problem is, that i cannot store the sunrise value in any virtual device, to see if it is set.

photo
1

Well. What if it is not updating as it ahould. There is a http call you can do to update the weather info.

photo
1

which http call? this one ? (update=true doesn't update the values)

https://my.zipato.com:443/zipato-web/v2/meteo/attributes/values?update=true 
returned values are ok, the problem will be the if clause, which starts:

when movement:

/b27ILCc7bu27AAAAAElFTkSuQmCCAA==

(light should not be turned on during the day)

..and it is turned on at every movement

photo
1

Tried changing the weather station to another one, without any luck.

I can see sunrise and sunset values being updated regularly for both the old and the new station.

Feels like I'm missing some detail here, as this should not be an issue

photo
1

The schedulers are no good. This might be a zipato limitation, but never inlcude both time and astro in one scheduler. Now that you have I would advice to create 4 brand new schedulers for testing

  • 1 for time based sunrise (for example 8am)
  • 1 for time based sunset (for example 20:00)
  • 1 for astro based sunrise
  • 1 for astro based sunset.

Tehn create rules to include these schedulers (but only 1 scheduler per rule).

Then test which one is working correctly. All of them should work.

photo
1

Mine haven't worked for months, but I added new rules based on time only. And now its working! Using firmware 1.3.13 and using 433 units.

734a37974f62c13cf31f02dbdaf739637a700b334fd4e59c4dee9063cf3b3795