How to set Unistat thermostat heat set point from script?

madscientist
Posts: 122
Joined: Fri Jan 05, 2007 10:13 pm
Location: Ontario, Canada

How to set Unistat thermostat heat set point from script?

Post by madscientist »

Hoping somebody can point me in the right direction to change the heat set point of a Unistat thermostat either via Indigo trigger or Python script.

I am using a Unistat virtual thermostat device to control a pool heater. The desired set point is obtained via an MQTT broker which is used to set the value of an Indigo variable. I would therefore like the value of that Indigo variable to be used to set the thermostat heat set point. I initially tried to create an Indigo Trigger that would adjust the thermostat set point upon a value change of the Indigo variable, but the Unistat thermostat does not seem to support this feature.

Is it possible to instead set this value via a trigger that runs a Python script? If so, what is the code?
PME999
Posts: 56
Joined: Sat Jul 28, 2012 9:01 am

Re: How to set Unistat thermostat heat set point from script

Post by PME999 »

Hi,
I have the same question you had in this post. Did you find any solution to set the heatsetpoint by a variable or with python ?
Thanks a lot
Patrice
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: How to set Unistat thermostat heat set point from script

Post by FlyingDiver »

Use the standard Python API for thermostat devices, which is documented here: https://wiki.indigodomo.com/doku.php?id ... statdevice

Specifically, it's:

Code: Select all

indigo.thermostat.setHeatSetpoint(<DEVID>, value=<SETPOINT>)
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Post Reply

Return to “kmarkley's plugins”