I use PLEG for my central heating timers. On in the morning and evenings, at different times each day. Its great.
However sometimes when the heating is off and the house is cold I just want to turn on the heating for 20 mins and make sure it switches off 20 mins later. For that I created a scene. Turns on heating. Twenty minutes later (scene delay) it turns it off. Simple.
The problem is that PLEG seems to stop it working and I can’t work out why. Shouldn’t the scene continue to run regardless of other PLEG actions?
If I disable PLEG it all works.
Any ideas why this could be? Thanks
I would expect that PLEG is turning the heating back off after you turn it on manually. There should be evidence of this is both LuaUPnP.log and PLEG’s Status report.
You may be able to change your Conditions so that this does not happen.
If you want people to comment on a specific problem in your logic … you should POST a PDF version of the STATUS Report.
Thanks. I’ve attached the Vera log (relevant parts highlighted in yellow), and the PLEG status file.
I changed the scene to be 3 minutes long so I could test more easily.
If PLEG is BYPASS, the scene turns on the heating, then off after 3 mins (that’s what i want)
If PLEG is ARM, the scene starts as normal, but never turns it off after 3 mins. It stays on.
I changed the scene to be 3 minutes long so I could test more easily.
What scene ? Are you mixing Scenes and PLEG ?
If PLEG is BYPASS, the scene turns on the heating, then off after 3 mins (that's what i want)
If PLEG is ARM, the scene starts as normal, but never turns it off after 3 mins. It stays on.
What does the scene do ?
Without a full description of the Scene ... I do not know what's going on.
When a PLEG is bypassed, it evaluates conditions, but does NOT execute any actions.
When a PLEG is arm, it does both.
In your log file you have marked things for two devices, #34 and #35, are you mixing up these devices in your logic ?
I think your problem is being caused by the 30 minute pulse. It resends the last known Target. I did it this way because I control everything through PLEG so the Target reflects the last state PLEG set. It appears that your scene is not updating this Target so PLEG overrides it at the next pulse.
You could experiment with using Status instead of Target but I recall this causing a problem for some reason - which I now don’t remember.
A better approach is to add logic to PLEG to achieve your one-shot heating requirement. This is what I do. I use a MultiSwitch to trigger PLEG to turn on the heating and turn it back off one hour later.
[quote=“RexBeckett, post:6, topic:185216”]I think your problem is being caused by the 30 minute pulse. It resends the last known Target. I did it this way because I control everything through PLEG so the Target reflects the last state PLEG set. It appears that your scene is not updating this Target so PLEG overrides it at the next pulse.
You could experiment with using Status instead of Target but I recall this causing a problem for some reason - which I now don’t remember.
A better approach is to add logic to PLEG to achieve your one-shot heating requirement. This is what I do. I use a MultiSwitch to trigger PLEG to turn on the heating and turn it back off one hour later.[/quote]
The strange this is that this is all happening long before the 30 minute pulse takes effect. The scene just seems to forget to execute the action after the delay, but that only happens if PLEG is running.
I like the scene for the short on / off because it appears on my mobile phone. If I used a switch I’d then also need to create a scene to flip that switch because switches don’t show.
I think that one is the Hot Water controller (which I’m not testing here and works OK) and the other is the heating controller.
The scene is the one I described in my first post. It just turns on the heating for a short while. I use PLEG for most things, but a scene works well for this (well it used to until I started PLEG)