[RELEASE] Combined Presence

Hello,

You are right about the reliability. HomeKit works almost flawless, Hubitat is the most unreliable. There is also SmartThings geofencing which i am testing at the moment. It seems to be more reliable and quicker than Hubitat, with the same radius (less than 200m).

At the moment i am using hub variables and rules to set presence, because i have to use virtual switches in HubConnect. I have not tested virtual presence but if it doesn't work with HubConnect than i could use a rule to pass the state from the virtual switch to virtual presence.
As a rule for setting presence off, i use any of the two geofencing and wi-fi. Problem is with setting presence on because i need it to be triggered before i enter the house, for automations, so i can only use a rule like "if any of these changes state to true".

@jwetzel1492 Feature request...

In the advanced combiner, could you add something in the likes of must have 3 sensors arrived to be considered arrived on the output sensor and 2 sensors departed to be considered departed. Number of sensors configurable by user of course instead of just ALL or ANY. This would make things really advanced and even more reliable.

Thanks for considering this!

I might have eggnog fog, but if I understand what you're asking for, you can already do this. You select which presence sensors to use in the "ALL" clause. Example:


If I misunderstood, never mind. :slight_smile:

Not quite, I have 3 to 4 presence sensors for each member of the family, I want it that if any 2 of the sensors arrived (not any of 2 but any 2 total) then set present.

Same for departed, set how many of the sensors must be departed before setting if virtual one as departed.

ex. Let's say I have 4 sensors (HE App, Alexa, Locative and WiFi) and the system is set for "any 2 or more of these sensors arrive", then if Alexa and Locative arrive, then it will be set to arrived.

If only one of these arrive nothing happens (this happens to us once in a while when at our friends house 6 houses over). But when a second sensor or more arrives, then it sets you as present.

Got it. Yes, missed that nuance.

1 Like

I probably won't make this change in my app*, but check out this app from another forum guy. I think he does what you're asking for: [RELEASE] Presence Plus - Creates a combined presence device

    • my app takes advantage of the fact that, at least for all the raw presence sensors I use, they don't give false positives on arrivals. Even a single arrival is a good signal. So requiring multiple arrivals would slow down the response. Now, I'm sure you're asking for a reason, so maybe you have different sensors than me, with different behavioral patterns. But the other app might give you what you need.

Thanks @jwetzel1492 for pointing it out, but as much as I respect his work with all his apps and drivers he brings to the community, I do not use his apps for several reasons. Thanks anyway, I'll just make my own custom app when I have some time on my hands. Keep up the good work!

PS If I add this to your code, would you consider accepting a pull request?

Getting pretty off topic, please bring the discussion back on topic.

2 Likes

I would definitely review a pull request.

1 Like

Please add an option to rename Combiners, thanks.

It would also be REALLY helpful during testing to be able to disable/enable Combiners.

Has anyone else been experiencing funky behavior with this? It's been flawless until what seems like coinciding with latest hub update. I do have Life360 as one of the contributions but I see that everything is showing not present but the combined device shows present.

I use a combined presence with HE and Tasker on my phones. It has been flawless 99.9% of the time.

1 Like

Still working great for me.

Sounds like you need to break down the accuracy of the components you are using to check each of their accuracy, then look at the combined results if that is still an issue.

2 Likes

Nope. Agree with Simon you should look closely at your input presence sensors.

2 Likes

Yes! My wife and I use Hubitat app and WiFi presence and both of those show home/away properly, but the combined presence hasn't been changing. This is a recent (last week or so?) development.

image
(Rob is home, Tami is not)

When I noticed this yesterday, I clicked the Departed button in the combined presence device ('Tami') to set her not present and it changed correctly to present when she arrived. So far I've only noticed this not working for departures.

So it's not just me either. I have been using the combined presence for about I reckon some 18 months with not a hitch, and I'm using the Life360 as the gps with my wifi as the phone wifi input and the output is not changing it seems like or does it very very sporadically on departing. It pretty much shows switch turned on (the output switch that is) and yet I've left the house.
I walked this morning and was about a mile from my house, well outside of the wifi router range and watching the life 360 app, outside of the geofence as well, but yet my output switch never turned off.

Did your input sensors go to away? And which combiner version are you using?

Looks like 2.2.1 on the presence sensors, I know the wifi sensor most definitely did. I will report on the life 360 after a few errands since I uninstalled your combined sensor app, life 360 off my phone and hubitat off my phone, then reinstalled all to get latest versions. Then, went into all of my apps to update the new virtual sensors created.