Hello all. I have attempted to modify this for cooling instead of heating, using some of the contributions above, and some of my own(my contributions were mainly just for modifying the GUI, and changing the word heat to cool throughout), but am now having some trouble.
When the desired temperature is set to a value lower than the temperature sensor reading, then the virtual switch turns on as expected. When, however, the desired temperature is set above the current temperature sensor reading, the virtual switch also gets a turn on command.
For some reason, no matter what I do, I cant get the virtual switch to turn off via this smart app. Any help here would be greatly appreciated.
Here’s the smart app fork:
And here’s the device handler fork: