Checking which lights are on
After a few months with the SmartThings installed in the house, I knew that my code would have some issues. I wanted a way to see which lights were left on in the house so this way if I noticed a light being on for an extended period of time and none of my motion sensors got triggered, I knew that I had created some sort of bug in there. To do this quickly all I had to do was write up a routine that would be triggered every time a light gets turned on or off, and if the light is on log it. This way I could quickly identify which lights are currently turned on in the house and identify any issues in my code if needed.
Once I had this setup, I quickly noticed that I could do the same thing with my house switches, so clearly I made one of those as well.
Now with both of these written up, I could use my dashboard to see which lights and switches are left on, not just for my desktop but also my phone. This way I could be anywhere and still keep an eye on the house.