Page 1 of 1

Sync thermostat settings/setpoints

PostPosted: Thu Oct 26, 2017 2:30 pm
by durosity
Yo. (Yes this is 1991)

So i have two thermostats i want to keep in perfect sync, but unless i'm being blind i don't think there's a built in trigger for that.. e.g. If "X changes" as the trigger then "Sync X Device to Y Device" as a thermostat option on the Actions tab.

On a side note i don't suppose anyone has a sample script they do something similar with that i could modify? If so please post it and i'll send you a list of my best jokes..

Sample: Why can't russians wear boxer shorts? Chernobyl Fallout. Ok actually thinking about it that's my only funny joke.

Re: Sync thermostat settings/setpoints

PostPosted: Thu Oct 26, 2017 3:30 pm
by racarter
Create a trigger on any setpoint change for Thermostat 1 and have this embedded Python code as the action:

Code: Select all
dev1 = indigo.devices["Thermostat1"]
setpoint = dev1.states["setpointHeat"]
dev2 = indigo.devices["Thermostat2"]
indigo.thermostat.setHeatSetpoint(dev2, setpoint)


:)

Re: Sync thermostat settings/setpoints

PostPosted: Thu Oct 26, 2017 4:51 pm
by durosity
Oh perfect! I'll try that one out soon. I was trying all sorts of complicated things and just wasn't getting anywhere.. simplicity is key i guess :)