Need t create a new Device Type handler in the IDE.
Installation:
Create the Device Type:
- Create a new device type, the name can be anything
- Paste this code into the new device and save
- Publish the device type, “For Me”
Add a new Device:
- Create a new device, name it something appropriate
- Give it a unique Device Network ID
- Select “Virtual Momentary Dimmer” as the Type (should be near the bottom)
- Make sure “Published” is selected as the Version
- Select the Location, Hub, etc.
- Click Create
At this time I found a posting on creating a virtual switch.