Schedules & conditions "true," actions not happening (status screen attached)

I think I’m just missing something big about the functionality of PLEG. The “Working” action was kicked off once, the first time the schedule came back true… but it hasn’t worked since. Can someone give me an idea of where I’m going wrong here? PLEG is definitely armed, and has been armed for a day or two. Thanks in advance…

Maybe I’m just thinking about PLEG wrong. I thought that the schedule and conditions all being true, alone, would kick off the action. Do I NEED to have a trigger to happen sometime in that schedule window to make the action happen? For example, opening the garage door as I leave, as long as it happens in the early part of that “At_Work” timeframe?

The actions only fire when the condition goes from FALSE to TRUE … unless the condition name starts with an underscore … In that case the actions fire every time the condition is evaluated to true. The Time Stamp for the condition shows the time when actions would have fired (Last True time).

I remember reading about the underscore, but I understood the timestamp was tied to it, and not the actual firing of the action. I’ll try that.

Thanks!

I started from scratch for a couple of reasons unrelated to PLEG… but I have what I think is a pretty simple scheme here, and it’s still not working. I’m on v5.2. I created these conditions today at work, thinking that at 16:59, the condition would go true and the action would fire, turning down the temperature, etc… the condition is true… why no action? The PLEG has been armed all day.

A couple of things to bear in mind with PLEG:

A normal condition will only fire when its evaluation changes from false to true. This can give confusing results when you first set it up - particularly when you have just defined a new schedule. I generally set the schedule for times in the near future and let it run through on and off to get everything initialized. Then I set the times that I really want.

You can make a condition fire whenever it is re-evaluated as true - even it was already true - by prefixing its name with an underscore (_). Be careful with this, though. Generally you only want conditions to fire when they change from false to true.

The status shown by the Status report reflects the last saved PLEG state. PLEG saves its state when something has caused a condition to change. This can give rise to confusing results if you have conditions with or’d terms that don’t change state when one of the terms changes.

[quote=“RexBeckett, post:6, topic:177500”]A couple of things to bear in mind with PLEG:
A normal condition will only fire when its evaluation changes from false to true. This can give confusing results when you first set it up - particularly when you have just defined a new schedule. I generally set the schedule for times in the near future and let it run through on and off to get everything initialized. Then I set the times that I really want.
You can make a condition fire whenever it is re-evaluated as true - even it was already true - by prefixing its name with an underscore (_). Be careful with this, though. Generally you only want conditions to fire when they change from false to true.
The status shown by the Status report reflects the last saved PLEG state. PLEG saves its state when something has caused a condition to change. This can give rise to confusing results if you have conditions with or’d terms that don’t change state when one of the terms changes.[/quote]
Thank you, I don’t think there’s anything in here I didn’t understand before. RTS posted about the underscore, and I can see that it’s not what I want to do. Today, I set up these schedules. I set up the “at work” schedule to fire at 11:42am because it was 11:40am and I wanted to see what would happen. It worked. I set the “coming back from work” time at 4:59. When I was finished, the condition was false. Now it is true. And the action didn’t get executed.

I’m playing with my “at work” schedule. I’m putting the stop time out to 19:26… 19:29 (a few minutes from now)… I can’t seem to get the condition to change states.

I JUST set this schedule, saved, restarted Lua, and then took this screen shot… and still, my statuses are the same as above.

I understand this works well for a lot of people. It would be great if it worked well for me… but it does not.

Please show the Status report for your test case.
Do you have Conditions and Schedules with the Same name ?
That’s a bug of mine that I allow this.

Actions are fired when Conditions become true. So I need to see the conditions that you use with the Schedule that you described.

[quote=“RichardTSchaefer, post:9, topic:177500”]Please show the Status report for your test case.
Do you have Conditions and Schedules with the Same name ?
That’s a bug of mine that I allow this.
Actions are fired when Conditions become true. So I need to see the conditions that you use with the Schedule that you described.[/quote]
I read that about your Conditions & Schedules, so no, i’m careful about that. And my status report as is above… aren’t all trigger, schedule, and condition names there?

Can you confirm you are on the latest versions:
PLEG & PLC Version 5.2 The newer reports have the Version in the Report.
If you are on the latest report than I will need for you to:
Turn Debug=1 (Advanced Tab) and Save.
Start the Log just before it triggers.
Send me the log just after it should have triggered.

[quote=“RichardTSchaefer, post:11, topic:177500”]Can you confirm you are on the latest versions:
PLEG & PLC Version 5.2 The newer reports have the Version in the Report.
If you are on the latest report than I will need for you to:
Turn Debug=1 (Advanced Tab) and Save.
Start the Log just before it triggers.
Send me the log just after it should have triggered.[/quote]
I’m on 5.2 for PLC & PLEG. I’ve set Debug=1 and saved, but haven’t the slightest idea how to start the log. I’ve been on UI5 for a few weeks & I use dataMine to capture what I need. Tips?

You can capture the Log File in a browser Window using:

http://Your.Vera.IP.Address/cgi-bin/cmh/log.sh?Device=LuaUPnP

Then to save it select all the text in the window and paste it in a File

OK, done… test schedule below so I’m “at work” from 19:55 to 19:57. Log started just before 19:55.

“Away_c1” goes true, but “Home_c2” doesn’t change. I must have syntax problem in that 2nd condition, because that doesn’t make any sense. The action for condition “Away_c1” executed, but the one for “Home_c2” did not.

Thoughts?

No ideas, huh?

Back to Vera scenes, I guess. The only PLEG actions that I have working are those that are easily done in Vera.