Page 1 of 1

How to set Unistat thermostat heat set point from script?

PostPosted: Wed Mar 29, 2023 9:01 am
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?

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

PostPosted: Wed Jan 24, 2024 7:50 am
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

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

PostPosted: Wed Jan 24, 2024 8:22 am
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>)