I want to add a button to my webpage to set the set point of my thermostat.
I now know:
hs.ControlThermostat("P1","SetSetPoint",72)
Or since I have a variable in the page named SetPoint.
hs.ControlThermostat("P1",'SetSetPoint",(SetPoint + 2))
But how do I make a button that would be +2 and +4, etc. to do that.
Jabran<pre class="ip-ubbcode-code-pre"> </pre><pre class="ip-ubbcode-code-pre"> </pre><pre class="ip-ubbcode-code-pre"> </pre><pre class="ip-ubbcode-code-pre"> </pre><pre class="ip-ubbcode-code-pre"> </pre><pre class="ip-ubbcode-code-pre"> </pre><pre class="ip-ubbcode-code-pre"> </pre><pre class="ip-ubbcode-code-pre"> </pre>
I now know:
hs.ControlThermostat("P1","SetSetPoint",72)
Or since I have a variable in the page named SetPoint.
hs.ControlThermostat("P1",'SetSetPoint",(SetPoint + 2))
But how do I make a button that would be +2 and +4, etc. to do that.
Jabran<pre class="ip-ubbcode-code-pre"> </pre><pre class="ip-ubbcode-code-pre"> </pre><pre class="ip-ubbcode-code-pre"> </pre><pre class="ip-ubbcode-code-pre"> </pre><pre class="ip-ubbcode-code-pre"> </pre><pre class="ip-ubbcode-code-pre"> </pre><pre class="ip-ubbcode-code-pre"> </pre><pre class="ip-ubbcode-code-pre"> </pre>
Comment