I have a logic which should turn on the light when I come home and it is dark. It worked 2 days ago, but yesterday and today it did not. I took my logic and split it and I can see where the problem is. But if that is wrong, why did it work 2 days ago…
This is the condition
Mikecominghome No (MikeHMS;NOW < 1:30) and (MikeAMS;MikeHMS) and Dark false 2015-02-21 23:37:14.587 2015-02-21 23:38:50.197
test No (MikeHMS;NOW < 1:30) false 0 0
test1 No (MikeAMS;MikeHMS) true 2015-02-23 19:22:06.856 0
looking at the last 2 test conditions, the (MikeHMS;NOW < 1:30) should be true up to 90 seconds after MikeHMS becomes true ?
(Dark was true when it did not work, so that was not the problem)
It is not easy to help with a problem without a full Status report. However…
When you use a Sequence expression like i[/i], remember that this is only evaluated on the timestamps of the last time the terms became true. Sometimes it is necessary to AND it with the state of the terms: MikeAMS and MikeHMS and (MikeAMS;MikeHMS).
I was going to edit my post and add the full status but you’ve been to quick for me with your response… ;D
It looks as though the Schedule Dark did not fire today. Did you have a restart about the time of sunset?
I assumed that was linked to my Day Night plugin. I hadnt really looked at ‘Dark’ in a while, i only checked the night plugin thinking it was taking it from there. I will need to check my Vera Alerts plugin to see if I had a restart around that time. I used to have a problem with schedules not firing, or getting stuck on true not being reset to false. I emailed RTS a few logs quite a few months ago, but nothing came of it, and I got used to the occasional schedule being stuck, so that might be the case here. I thought my logic was flawed. Maybe I have to get in touch with Richard again, as I had quite a few problems lately with schedules not working as they are supposed to (getting stuck or not firing at all)
... I had quite a few problems lately with schedules not working as they are supposed to (getting stuck or not firing at all)
Check your log to see if they are getting lost in restarts. Absolute Schedules are vulnerable to this.
[quote=“RexBeckett, post:6, topic:186111”]
… I had quite a few problems lately with schedules not working as they are supposed to (getting stuck or not firing at all)
Check your log to see if they are getting lost in restarts. Absolute Schedules are vulnerable to this.[/quote]
The way I got around it is to run a schedule a couple of minutes later and in the condition do “originalSchedule OR (backupSchedule AND !originalSchedule)”.
It’s not an absolute guarantee that the latter will fire if the first fails, but I rarely get 2 start-ups in a row unless something is really messed up. There are times that I find that I absolutely NEED to have an absolute schedule and this is how I get around it.
Also, if you use an absolute start, don’t use an absolute end time. Just figure out how many hours/minutes/seconds after it starts to end it. Just so you know, I do the same checks above for when my schedules end in my conditions. If the first one never “starts”, even a non-absolute end time will not fire (since it was not set to true) unless you have repeats on (and I’m not even 100% sure that will work.
I started programming backup schedules in, but haven’t done it everywhere yet. It still would not eliminate the problems of schedules stuck on true, as if I do schedule or backupschedule and schedule stays true, schedule or backupschedule will stay true and not trigger. Most of my schedule ‘fails’ are schedules stuck on true, I get at least one a week.
Most of my schedule 'fails' are schedules stuck on true, I get at least one a week.
Setting the OffType to Interval instead of an absolute time may help with those.
I’ll convert them, and see. Its a good idea to give it a try, nothing to loose…
Just thinking, what happens to an off time interval if I have a reboot ?
Intrerval timers do NOT have a problem with reboot … ABSOLUTE timers have a window of vulnerability, if Vera is NOT running (or is still starting up) at the time of the schedule.
Thanks for your advice, everything changed to intervals now. One little problem, for example my heating schedule is off now, as I was right in the middle of the on and off time. I have pressed do it now in PLEG schedules to turn it back on. I have an interval of 16 hours, will it run 16 hours from the time I pressed do it now ? If it is, I’ll have to remember turning it off manually tonight, and from tomorrow morning everything should be back to normal. I have a few other schedules with the same problem
It will be 16 Hours (it may be shortened to the nearest hour depending when your turned it on).