Hubitat-iPhone-Presence-Sensor icon indicating copy to clipboard operation
Hubitat-iPhone-Presence-Sensor copied to clipboard

Multiple Installs of iPhone-Presence-Sensor ?

Open LarryB49 opened this issue 3 years ago • 0 comments

Thanks for this iPhone-Presence-Sensor it has worked well for me.
Then I got thinking, I think it can have more uses.

I have an issue with some devices that they do not remember state after a power outage & restore. And I found quite a bit of discussion and suggestions around being aware of a power outage and then restoring the previous state. My location has frequent power outages so I have a ups on the Hubitat Hub and a backup generator for much of the house, so it is only some of the individual bulbs etc that have a porblem with power outage. Actually there are multiple issues as some bulbs are not on the generator, and if they are it is 30 seconds of outage before the generator backup power, and there is an extremely short break or surge when the generator switch goes back to mains power. So if the iPhone-Presense-Sensor can ping any device with an ip, and if the device fails ping and then returns, then power must have been out then restored. So if the state of the device was saved previously I assume it would not be hard with RM to recognize and replace the previous state. I am very new to this Hubitat stuff and do not understand much. But I tried to install iPhone-Presence-Sensor driver twice, even changing the name the second time, and could not get it to work set to a non phone ip device. Now I am thinking; is it using variables or something that need to be unique for each instance? Or what other reason, (besides I could easily have done something wrong), is there that it didnt work. Is there something unique about pinging a phone or can it check any device type with an ip? So far I had only tested with my phone (and it is great), but I am going to wish to add my wifes phone etc soon, so if there is something special I need to do to deal wih multiple devices I need to figure that out anyway. But I do think ability to test multiple an other types of devices could be very usefull. Maybe even Zwave and Zigbee devices if it could be that flexible.

LarryB49 avatar Feb 05 '21 21:02 LarryB49