mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-15 13:10:51 +00:00
966bd2c1df2144103727858d1d429727400cad34
The presence sensors have little/no configuration, especially when it comes to alerts. I found lots of room for improvement regarding how those alerts are carried out. Here are the problems with the original implementation of presence alerts: 1) Each person gets and individual alert. If you have a family of 4, each person will receive a *separate* alert for every person. 2) There are no exceptions. Even if the family is all together, it still individually alerts that everyone arrived/departed. 3) Since you can't control which person gets the push alert, #1 and #2 exacerbate the issue by people receiving alerts for themselves. The Smart Family Presence app lets the user select how and when they receive alerts. The code is commented to explain the edge cases, but essentially, if the family arrives or departs together, no alert should be sent. The app tracks state for whether the family was previously apart, so that it knows when and when not to send alerts. I have found this code extremely fun to write and configure, and I believe others out in the community could benefit from it as I saw very few smart apps related to presence sensors themselves.
SmartThings Public Github Repo
An official list of SmartApps and Device Types from SmartThings.
Here are some links to help you get started coding right away:
Follow us on the web:
- Twitter: http://twitter.com/smartthingsdev
- Facebook: http://facebook.com/smartthingsdevelopers
Description
Languages
Groovy
100%