I’m trying to control the variables used by a piston for my thermostats from the smartthings app. As one specific example, I’d like to be able to change something in the app and the temperature setpoint used by the part of the piston (e.g., Daytime while home) will automatically update.
I thought this could be done with a virtual thermostat and have the piston set the appropriate variables by reading the setpoints from a virtual thermostat. But I don’t see a virtual thermostat in the IDE. I do see a simulated thermostat but that doesn’t seem to work (e.g., a lot of Celsius/Fahrenheit confusion, networks errors when setpoint changes).
The ‘Simulated XXX’ family of devices were really intended to simulate the behaviour of ‘real’ devices for testing. In many/most cases that makes them the same as what we tend to call ‘virtual’ devices, though perhaps with the capability to simulate things like going offline/online as a ‘real’ device might. The Simulated Thermostat is a bit different though. It isn’t just simulating the control panel of a thermostat, it is simulating the changes to sensor inputs. If you turn the heating on the temperature increases etc.
So even if it worked in the app it may or may not do what you want. You probably just need a virtual/simulated temperature sensor to hold a temperature for you like a variable.