United security pressure mat

Just thought you all might be interested, I changed the code to flip the open/closed status of the sensor so that new closed is normal, unstepped-on state, and open is the stepped on state. (It also uses my modified icon, red feet when stepped on, white otherwise). I did this because most SmartApps out there considered ‘open’ to be the ‘bad’ state of a contact sensor (e.g. door open). It doesn’t effect how the sensor works or displays (all that was updated as well), but if you use smarttiles it highlights stepped on now instead of vice versa, and if you use any smartapps that only trigger things when contacts open, this work appropriately without any extra effort.

4 Likes