#I think this is what I was looking for

1 messages ยท Page 1 of 1 (latest)

atomic tendon
#

Ask away

stable slate
#

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?

atomic tendon
#

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.

stable slate
#

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?

atomic tendon
#

I use nmap_tracker

stable slate
#

What's that?

atomic tendon
stable slate
#

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?

atomic tendon
#

Use what works for you shrug

#

That's the great thing about HA, so many choices

#

That's the terrible thing about HA, so many choices

stable slate
#

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 ๐Ÿ™‚

atomic tendon
#

That's evolved over many years, it takes a while to wrap your head around lots of what HA can do

stable slate
#

Yeah, I find it like a very nice and integrated IFTTT (which I never used before) but with so many options for the ifs!

stable slate
#

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?

atomic tendon
#

So, it's all about probability

stable slate
#

I still have to test, but I'm thinking of having only one BT and the router (or nmap in your example)

atomic tendon
#
# 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

stable slate
#

oh, maybe I'm reading an outdated blog post then ๐Ÿ˜†

atomic tendon
#

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)

stable slate
#

you just mention you have 2 wifi trackers? where can I see that?

stable slate
#

from home assistant app?

stable slate
#

I didn't know it works with wifi... I thought it was the old location via mobile antennas

atomic tendon
#

It does all that too

#

Look for the WiFi Connection sensor

stable slate
#

oh I see, but you're not tracking if it says home or not, you just truck the wifi you're connected to

atomic tendon
#

Yup

#

GPS is ... crap for home/away

stable slate
#

I see.. very interesting...

#

I'm gonna try (and very likely fail in the process) to avoid GPS tracking, but let's see

atomic tendon
#

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

stable slate
#

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?

atomic tendon
#

Yes, in the app

#

Then you'll get a sensor with the name of the connected WiFi network

stable slate
#

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?

atomic tendon
#

Usually

stable slate
#

or just hope that when you arrive you'll get 1 BT and the wifi app?

atomic tendon
#

But, arrival is _any new home

stable slate
#

true... I think I should do a diagram to have it all clear in my head ๐Ÿ˜„

atomic tendon
#

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

stable slate
#

gotcha

#

I have to get installed a nest doorbell... have you played with those?

atomic tendon
#

I haven't

stable slate
#

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!

atomic tendon
#

Probably ... which ones and I'll see if there's an actual reason or just history

stable slate
#

script.person1_away

#

I see it changed from the article and now you're publishing on mqtt

atomic tendon
#

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

stable slate
#

what's the benefit of publishing it that way?

#

oh I see

atomic tendon
#

I don't link any real tracker to any person since I dislike how that behaves

stable slate
#

What do you mean? Doesn't work like a group?

atomic tendon