Check out my newly created SmartApp called Improved Smart Nightlight.
I just took the existing code from SmartThings and added a bit to it. So here’s what you have to do:
First, in the IDE, go to “my devices” and then click the “New Device” button in the upper right corner. You’ll need to give it a name (Such as “Smart Nightlight Virtual Switch” then give it a network ID. (This is a hexidecimal number. With my virtual devices I started with E0 and then just counted up as I add more… E1, E2, E3 thru EF, then F0, F1, etc…). For type select “On/Off Button Tile.”
Select your correct location and hub, and put it in a group if you want. Click create.
Now, exit the Mobile App and sign back in. You should now see a virtual on/off button that when tap will turn on or off, but does absolutely nothing.
Next: Copy over and install my new program listed above. When it asks you what switch to use for the on/off switch, pick the button tile you just created. Setup the rest of the app the same as you do with your Smart Nightlight. Make sure to uninstall the old program.
Now for the fun part: As long as this virtual on/off button is ON, my program will work exactly like the Smart Nightlight program. But, if you tap this tile to turn it OFF, then the program will not light up the lights due to motion.