First off, I haven’t looked too much into this or how to write it. It’s something I intend to do, but haven’t yet. Right now I’m just looking for some quick pointers so I can fix some issues I’m having.
I use my iPhone (SmartThings app and Life360), my roommates Android phone (Life360), and a few Wireless Tags as presence devices. My SmartThings app tends to be pretty accurate and quick, but Life360 can be minutes or hours delayed. The Wireless Tags are also delayed by a few minutes. With all of these delays, I can’t use them for much.
I want to write (or find) a “simple” device handler that acts as a presence sensor, but that I can toggle like a switch. I can create a simulated presence sensor and use CoRE to set the status, but to update it manually I’d have to create a separate simulated switch also. I also want to have my door lock update the presence upon entering the right code (in case Life360 doesn’t), which I’d also need a separate simulated switch for.
Is this possible and how simple? Having the device appear as a switch that can be toggled Present or Not Present would be quite helpful in a few situations I’ve run into.