This object is in archive! 

sunrise time and sunset time in the weather station

Nicolas Celli shared this question 8 years ago
Need Answer

Hello,


I have made the following rules :


If I put my alarm on (not a zwave one) Then depeding on the hour of the day (day or night) I close all my roller shutter or only some of them. To make this condition I try to use the weather station and the sunset and sunrise information.

But it is not working and always go on the Else statement even if it day.


Please see the attache image of the rules.


Thx for your help.

Replies (4)

photo
1

Don't think this is going to work.


You should make a rule with the scheduler (and astro) then set virtual switch (on/off). Do a search on this forum for the rule.

photo
1

Thank you very much.

photo
1

The weather station's sunset and sunrise time values may not be in a format which is compatible with the Zipabox's.

photo
1

After investigating further I think the "sunrise" and "sunset" values in the Zipato weather station are, in fact, strings. If I copy those values to a virtual meter and try to compare them to other date values, they always behave as 0. If I send them to an email, the reason becomes clear. This is what I see (the description in brackets were added by me).

19:36 (Sunset)

08:25 (Sunrise)

They're not numerical time values at all.


In contrast, time and date values are large numerical values. So the two can never be compared.

Leave a Comment
 
Attach a file