I’m working with PLEG version 8.21 for the first time, and I am struggling to recreate the syncing of two thermostats (either one changed updates the other).
My logic doesn’t seem to work:
(KidsSetpoint != MasterSetpoint) AND (MasterSetpoint ; KidsSetpoint)
and my expressions don’t seem to return the value:
Master TStat[75] SetCurrentSetpoint NewCurrentSetpoint={{KidsSetpoint}}
It should be simpler…
A condition that only reference a thermostat setting.
The action for that condition should set the other thermostat settings. Do NOT set repeats, you will get an infinite loop.
Do you this for each thermostat.
[quote=“RichardTSchaefer, post:2, topic:196633”]It should be simpler…
A condition that only reference a thermostat setting.
The action for that condition should set the other thermostat settings. Do NOT set repeats, you will get an infinite loop.
Do you this for each thermostat.[/quote]
Thanks for your response.
I’m not sure what you mean…
I’ve been using that code for several years but older PLEG version 6 (attached).
With this version, the assignment: NewCurrentSetpoint={{KidsSetpoint}}
puts NaN into the target setpoint of the other Tstat.
I can’t figure out what I am now doing wrong, perhaps your looking at the original will assist you in helping me with that.
[quote=“RichardTSchaefer, post:4, topic:196633”]Check your syntax …
{(Some PLEG Expression)}
NOT:
{{Some PLEG Expression}}
[/quote]
THANK YOU!!
BTW, I have an example of syncing thermostats in the Examples sub-forum…
[url=http://forum.micasaverde.com/index.php/topic,30792.0.html]http://forum.micasaverde.com/index.php/topic,30792.0.html[/url]