#I think this is what I was looking for
1 messages ยท Page 1 of 1 (latest)
I'll have to check when I'm back to the computer, but 2 things I remember...
It's all about the occupied living room yaml
You have multiple triggers on media only triggering when they've been on for 5 minutes... Why?
Basically there's a quick on and a slow on
If there's motion and the TV was turned on then I know the room just became occupied
If maybe we've come in and sat down for a bit, then turned it on, this catches it without falling foul of the fact that it turns on for software updates
The result is that under normal situations, when we wander into the room and turn on the TV, it detects "occupied" quickly.
When we've been in for a while and turned it on it still detects "occupied", without deciding that the room is occupied in the early hours of the morning when it wakes for a software update check.
Oh I see! I'll have to check if mine does the same as I have an LG
And the other one I can remember now... How come you have a status "home" in Chromecast?
I use nmap_tracker
What's that?
Oh I see... I didn't install the integration yet, but I have an Asus router that would track if I'm on the WiFi, so I guess I wouldn't need this right?
Use what works for you 
That's the great thing about HA, so many choices
That's the terrible thing about HA, so many choices
Hahaha
I wish there were more! ๐
I'll ping you again when I have a deeper look to your repo, because I remember I found more things but very likely it was something about me not fully getting how things work ๐
That's evolved over many years, it takes a while to wrap your head around lots of what HA can do
Yeah, I find it like a very nice and integrated IFTTT (which I never used before) but with so many options for the ifs!
I've been checking a bit around your post for home presence and I'm curious about this condition: "At least two trackers show away if an exit door closed in the last 5 minutes"
do you check 2 of the trackers just in case you're off the front or garage BT?
So, it's all about probability
I still have to test, but I'm thinking of having only one BT and the router (or nmap in your example)
# Two or more trackers mark as away, door opened/closed in the last 5 minutes
I have four trackers on each person, two Bluetooth, one WiFi, one via the app reporting the connected WiFi network
oh, maybe I'm reading an outdated blog post then ๐
This condition says that as long as at least half of those trackers say they're away and a door opened recently, we can consider they've left
Oh, things get outdated fast
Current version, I need to do an update
Back when I wrote it the theory was majority wins
But this allows for things like, I leave, the wife stays home, but her phone is disconnected from WiFi (so the WiFi tracker shows not_home but the others show home)
you just mention you have 2 wifi trackers? where can I see that?
https://github.com/DubhAd/Home-AssistantConfig/blob/live/automation/people/person1/person1_away.yaml#L9 is the one from nmap_tracker
from home assistant app?
Yes
It's usually a touch faster at home and away than nmap_tracker, but not always
I didn't know it works with wifi... I thought it was the old location via mobile antennas
oh I see, but you're not tracking if it says home or not, you just truck the wifi you're connected to
I see.. very interesting...
I'm gonna try (and very likely fail in the process) to avoid GPS tracking, but let's see
GPS is handy, I use it for things like notifying the person at home when the other person is coming home (aka kettle warning)
It's just terrible for home/away since it's often laggy, and can show you as away when you're home, or home when away
yep... I remember my younger me playing pokemon go tacking advantage of that without doing spoofing ๐
there's something I'm missing with this "wifi app" sensor... I was trying to find it in the list of states/attributes but I don't see my Wifi being listed
is there anything I need to turn on for that?
Yes, in the app
Then you'll get a sensor with the name of the connected WiFi network
oh I missed that message! thanks!
so last question on this matter (hopefully) then you assume that while you're at home you're connected to both BT beacons?
Usually
or just hope that when you arrive you'll get 1 BT and the wifi app?
But, arrival is _any new home
true... I think I should do a diagram to have it all clear in my head ๐
So, arrival is typically quick - either as you walk up and are detected by the front node, or connect to WiFi - or moments later as you open the door and the Bluetooth scan happens
I haven't
I was also hoping it could detect who's at the door, but maybe with wifi+BT it should be enough
I see the person detection of the app just doesn't work ๐คทโโ๏ธ
ah yeah... another thing I saw... it's there any particular reason you create 2 scripts to update the same input_boolean instead of just use it on the action part of the automation? sorry for so many questions, but I find interesting what you've done and somehow organised!
Probably ... which ones and I'll see if there's an actual reason or just history
script.person1_away
I see it changed from the article and now you're publishing on mqtt
Yeah, so that's to give me a device tracker that I can use with the person entity
Not that I use the person entity
I don't link any real tracker to any person since I dislike how that behaves
What do you mean? Doesn't work like a group?