1) Give a description of the problem
Hi,
I’m using a virtual thermostat to control my AC unit, it can heat,cool,fan,dehumify etc
and im looking for a way to control it better using webcore piston, in the below piston if I change the setpoint it sets the setpoint to my global variable and I now want a way send ifttt command to run the appropriate applet to set the temperature.
example, if global variable is 22, send ifttt applet that sets my ac unit to 22.
I’m thinking of using two pistons, one which is a master piston that controls and sets the global variable and another piston which takes the information from the master piston and executes it.
Could the execution piston somehow be done with an array or something similar to fire off the right things from the master piston to cut code?
or is my only option to for example
If global variable equals 18
then
iftt maker request (name)
if 19
then
if 20 etc?
I then also want a way to
if temp is higher than setpoint
then do set global setpoint variable to x
so it can keep a steady temperature and update itself regurarly.
The way I use a similar setup now is with a virtual thermostat with a device smartapp
but its more for a panel heater than a AC unit, which is linked to a virtual device, on = setpoint 22 and off being setpoint 20.
In truth, I would more like it so if heating setpoint is 23, I want the AC be set to 23 and not 22.
2) What is the expected behaviour?
I want the right applet to run depending on the value that my global variable holds
**4)
I’m sorry for my poor english, not my native language, hope it all makes sense and someone could help.
Best regards,
-D