Notification when switches are left on after departing

I modified this app created by @keithcroshaw to turn on a virtual switch when a certain threshold is reached.

I then used @baldeagle072’s pushbullet app to send me a notification whenever the virtual switch is turned on.