Mimic Thermostat Settings

I have two A/C units in our house. I have them controlled by my Vera Lite to raise the setpoint during the hours that everyone is asleep. It works flawlessly with the scenes i set up to manage that.

Occasionally, I will adjust the temperature in the house (down or up) because someone is uncomfortable (usually my wife is too cold). I was wondering if anyone has been able to send the modified set point (detect a change in set point) and copy that new setting to the other thermostat.

Essentially, I want the manual revision to the temperature on one thermostat copied to the other thermostat.

I figured it out, it’s quite simple actually.

Set up a scene that triggers on a temperature change (say set point changed to lower than 85F) to your primary thermostat

add this Luup:

– get the setpoint temperature in the Primary Thermostat
local lul_temp = luup.variable_get(“urn:upnp-org:serviceId:TemperatureSetpoint1_Cool”,“CurrentSetpoint”, 22)
–22 is my primary thermostat
luup.call_action(“urn:upnp-org:serviceId:TemperatureSetpoint1_Cool”,“SetCurrentSetpoint”,{NewCurrentSetpoint=tonumber(lul_temp) },4)
–4 is my secondary thermostat

too easy

Pretty simple with PLEG.

Yeah but I enjoy the challenge of learning luup.