This object is in archive! 
Problem with sunset and sunrise
Need Answer
I´m not absolutly sure but I think the lower part of this rule (old rule) used to work until the last update. Its purpose is to make sure the day/night sensor is set propperly.
It was part of a routine that ran after a reboot but now it doesn´t work anymore ;-( Can anyone confirm, that those constructions used to work or should work (perhaps a fault in the new firmware)? Or do you have a better idea to set a virtual sensor according to sunrise and sunset? (it has to work whenever the box restarts so using a scheduler (which I have for normal operation, see regular setting of sensor) won´t help)
Files:
old rule.JPG
No connection
Real-time notifications may not work
Sorry, I have forgotten this picture and can´t edit the old topic
Sorry, I have forgotten this picture and can´t edit the old topic
Your rule 11 does not make sense from Zipato programming point of view. You cannot ever use anything else than one scheduler in the when block as trigger. You cannot even combine it with other states. So if you need a scheduler to start, only use one and make 2 rules if you need 2 schedulers. In your rule 17 what happens if the variable reboot is not 0. You need to remember that after restart the varialbe will have no value and not be "0"...
See my printscreen. The rules are named accordingly:
1. One is a simple restart tester - you cans et it to run every 5 minutes, no need to have it more frequent
2. 2 rules sets the sunrise (one virtual weather station based and another based on simple scheduler with latest possible time
3. 2 rules sets the sunset (one virtual weather station based and another based on simple scheduler with latest possible time
Your rule 11 does not make sense from Zipato programming point of view. You cannot ever use anything else than one scheduler in the when block as trigger. You cannot even combine it with other states. So if you need a scheduler to start, only use one and make 2 rules if you need 2 schedulers. In your rule 17 what happens if the variable reboot is not 0. You need to remember that after restart the varialbe will have no value and not be "0"...
See my printscreen. The rules are named accordingly:
1. One is a simple restart tester - you cans et it to run every 5 minutes, no need to have it more frequent
2. 2 rules sets the sunrise (one virtual weather station based and another based on simple scheduler with latest possible time
3. 2 rules sets the sunset (one virtual weather station based and another based on simple scheduler with latest possible time
Klaus, I think it should work. How often does the rule run? Every minute?
Try inserting a delay before calculating the night/day setting. Perhaps immediately after reboot it's still resetting some important parameters.
Also try running the sunset/sunrise check in another rule, outside the context of the reboot, to make sure it's working.
Klaus, I think it should work. How often does the rule run? Every minute?
Try inserting a delay before calculating the night/day setting. Perhaps immediately after reboot it's still resetting some important parameters.
Also try running the sunset/sunrise check in another rule, outside the context of the reboot, to make sure it's working.
I have a 30-second delay in my reboot detector before I start setting up values. I don't know whether it's strictly necessary - I'd have to do more tests.
I have a 30-second delay in my reboot detector before I start setting up values. I don't know whether it's strictly necessary - I'd have to do more tests.
Replies have been locked on this page!