Go into my device types in the ide,
- select new device type
- select from template
- select the simulated garage door device in the list
- make your changes to the code… recommend you also change the name so you can tell the difference from the stock one.
- go to my devices in the ide
- select your virtual or simulated door device
- select edit
- in the device type pulldown change it to your own custom device type you setup earlier with the change ( it will be in the bottom of the list)
- save changes
- retest