Thermostat SmartApps that uses Virtual Switches to control Mode/Fan/SetPoints

Need t create a new Device Type handler in the IDE.

Installation:

Create the Device Type:

  1. Create a new device type, the name can be anything
  2. Paste this code into the new device and save
  3. Publish the device type, “For Me”

Add a new Device:

  1. Create a new device, name it something appropriate
  2. Give it a unique Device Network ID
  3. Select “Virtual Momentary Dimmer” as the Type (should be near the bottom)
  4. Make sure “Published” is selected as the Version
  5. Select the Location, Hub, etc.
  6. Click Create

At this time I found a posting on creating a virtual switch.