This object is in archive! 
Using Sunset/Sunrise without scheduler
Need Answer
Hello to everybody
As the scheduler doesn´t work with the cluster I am searching for a different method to trigger some virtual switches depending on sunrise / sunset.
I tried it with: when NOW = SUNSET and the other wise round when SUNSET = NOW
when TIME of NOW = TIME of SUNSET / when TIME of SUNSET = TIME of NOW
The rules were accepted but nothing happens with the virtual switches.
So has anybody a different idea or otherwise when will the scheduler function work within a cluster system?
Thanks
Bernd
No connection
Real-time notifications may not work
You cannot do it like that in rules. I think you will need to use an external service like IFTTT maker channel, or any other service that can do HTTP GET, to set a virtual sensor on/off.
You cannot do it like that in rules. I think you will need to use an external service like IFTTT maker channel, or any other service that can do HTTP GET, to set a virtual sensor on/off.
use a light sensor such as the 4in1 or Fibaro to detect light levels outside instead. Or as Marius suggested, you could use the IFTTT and the maker channel that will link with a virtual sensor in zipato.
use a light sensor such as the 4in1 or Fibaro to detect light levels outside instead. Or as Marius suggested, you could use the IFTTT and the maker channel that will link with a virtual sensor in zipato.
I just posted this, which might be of interest:
https://community.zipato.com/topic/a-method-for-creating-manipulable-time-and-date-values
If you set up a rule that detects changes to the time value of the virtual meter, and compare the value to previously stored sunrise/sunset values, that would presumably work.
I just posted this, which might be of interest:
https://community.zipato.com/topic/a-method-for-creating-manipulable-time-and-date-values
If you set up a rule that detects changes to the time value of the virtual meter, and compare the value to previously stored sunrise/sunset values, that would presumably work.
Actually I use a different method right now. Rather than relying on a one-time only change of switch state (which is vulnerable to restarts or disconnections), I run rules every ten minutes to recalculate everything. First I work out whether it's daytime or not by looking at the sunrise/sunset values. Then I initialise four variables: MinutesUntilSunrise, MinutesSinceSunrise, MinutesUntilSunset, MinutesSinceSunset. Then I calculate those values using the sunrise/sunset times, and finally increment them in a rule that runs every minute. The first three parts run every ten minutes, so the system quickly recovers if the values are lost due to a reboot or whatever.
The third screenshot shows sunrise/sunset values imported from an external source (via a Google App Script), but actually I think you could use the Zipabox values just as easily.
Actually I use a different method right now. Rather than relying on a one-time only change of switch state (which is vulnerable to restarts or disconnections), I run rules every ten minutes to recalculate everything. First I work out whether it's daytime or not by looking at the sunrise/sunset values. Then I initialise four variables: MinutesUntilSunrise, MinutesSinceSunrise, MinutesUntilSunset, MinutesSinceSunset. Then I calculate those values using the sunrise/sunset times, and finally increment them in a rule that runs every minute. The first three parts run every ten minutes, so the system quickly recovers if the values are lost due to a reboot or whatever.
The third screenshot shows sunrise/sunset values imported from an external source (via a Google App Script), but actually I think you could use the Zipabox values just as easily.
Do you have a virtual weather station set up already? Sunset/sunrise only works if you have at least one created.
Do you have a virtual weather station set up already? Sunset/sunrise only works if you have at least one created.
how can we use this values from the Zipatile ?
how can we use this values from the Zipatile ?
As the scheduler doesn´t work (at least for cluster systems) I created the following rule:
The whole rule is triggered by a change of at least one luminance value in a number of rooms. I take luminance as this is the only sensor which changes permanently during the day even if nobody is at home.
By any change of luminance I check the current time. If it is between sunrise and sunset from the virtual weather station I set the virtual switch day (Tag) to on and night (Nacht) to off. If it is not I set the switches vice versa.
With these two virtual switches I control everything what has to do with day and nicht
Nevertheless it would be great if the scheduler would work again ;-)
Bernd
As the scheduler doesn´t work (at least for cluster systems) I created the following rule:
The whole rule is triggered by a change of at least one luminance value in a number of rooms. I take luminance as this is the only sensor which changes permanently during the day even if nobody is at home.
By any change of luminance I check the current time. If it is between sunrise and sunset from the virtual weather station I set the virtual switch day (Tag) to on and night (Nacht) to off. If it is not I set the switches vice versa.
With these two virtual switches I control everything what has to do with day and nicht
Nevertheless it would be great if the scheduler would work again ;-)
Bernd
Replies have been locked on this page!