This video did it for me. Thanks! 💡A tweak with regards to the Unifi settings is that you have to enable advanced mode under your user settings in Home Assistant to change the time period before it marks a device as "not_home".
@jacopocec
Жыл бұрын
You are definitely the best explaining what we really need in HA, PLEASE keep making videos, THANK YOU
@Seternes
Жыл бұрын
Thanks for helping me building my SmartHome. Almost every video you make I have used something out of.. Thanks again 👍
@SmartHomeJunkie
Жыл бұрын
That's awesome to hear! 🙏🏻🙏🏻🙏🏻
@kobedde
9 ай бұрын
Another very educational video. If I want to learn something related to HA, I come straight to your channel, that's where I find the best information. Please continue making these video's.
@SmartHomeJunkie
9 ай бұрын
Thank you for this big compliment Eddy! I like your name 😉
@kobedde
9 ай бұрын
@@SmartHomeJunkie i Know 😉
@aaajp3
Жыл бұрын
Thank you for a very clear and explanation filled video. Most other video's don't show as clearly as you the configuration's and use an up-yo-date Home Assistant Screen. - John Australia
@SmartHomeJunkie
Жыл бұрын
Glad it was helpful!
@FictionalCitizen
Жыл бұрын
great movie Ed, thanks! Would be great to also mention how to include PIR sensors in it, for example when guests or cleaners are in the house. Would you recommend to add another helper and boolean for that?
@noamshuch2473
Жыл бұрын
Thank you for your clear explanations and nice video. Very helpful for me.
@SaurePwne
2 жыл бұрын
Great! Your videos show exactly the topics that interest me right now! Super comprehensible explained!
@SmartHomeJunkie
2 жыл бұрын
Thanks for this compliment. Glad that it helped!
@HoGalant
2 жыл бұрын
Great tutorial! I have some similar device tracker detection in my HA. What threw me off is the iPhone tracking ability. This happens randomly and I can't manually reproduce the problem. From time to time HA sees the iPhone away from home then return home after several minutes (some time less than a minute). I looked for such info online and found comment from people who had such experience saying this happens when sometime the iPhone is on battery saving mode. This breaks my automation. Android phone in my household doesn't give such issue.
@SmartHomeJunkie
2 жыл бұрын
Thx. It's unfortunate that your iPhone does this. Do you, by any chance, have a router that is supported by an integration (in HACS, or official)? In that case, you might be able to use the device tracking facilities of your router based on if someone is connected to your WiFi or not. That's even more stable than using the companion app.
@neozizen42
2 жыл бұрын
Nice channel and excellent work. I expect your channel to explode with subscriptions if you keep these type of content and quality going. In my real world experience with presence detection so far there are some pretty big gotchas. Mostly, these revolve around timing and end-user simplicity. WIFI based router detections are sometimes slow. iPhones sleep the phone at night (look for iPhone detect to solve it) and thus router based detection is no good unless you want your locks opening up at night as your iPhone goes in and out of sleep mode. NMAP detection has same issues (slow and inaccurate) as Router based detections. Unifi has a router detection that will try to wake up your phones and works some of the time. GPS based systems like OwnTracks are slow to update and if you want them to update quickly so they can be timely when you get home they drain the heck out of your battery. The home assistant App is pretty darn decent with GPS because it uses the built in OS GPS hooks of Android/iPhone but not decent enough for my liking. Still too slow too often to update in the time I want things to work when I arrive home. Beacons and Tags have severe 'background' limitations by Android and iPhone. If you discover short comings of presence detection for yourself, you may want to check out adding Bayesian Binary sensors to help with false positives. They are not easy to wrap your head around. www.home-assistant.io/integrations/bayesian/ There is a great write-up here on how they work community.home-assistant.io/t/how-bayes-sensors-work-from-a-statistics-professor-with-working-google-sheets/143177. Also, this guy wrote a great script and explains why he wrote it. Like the ignorant presence detection person that I was I chose not to implement his presence script called Monitor but I should have although I did learn a bunch. Creating 4+ Bayesian sensors to determine presence has worked say 90%+ of the time for me, however, I really want to increase my timing and simplicity as much as I can so just yesterday ordered the raspberry pi zeros to do what this article describes. community.home-assistant.io/t/monitor-reliable-multi-user-distributed-bluetooth-occupancy-presence-detection/68505 Apparently, Bluetooth can be used accurately and quickly with the implementation of 4.1 and above to detect presence so I'm going to give it a try. Lastly, I did order an ESP32 to see how well it works vs. the Monitor script above. ESP32 Presence is supposedly really accurate and fast, so we shall see how it works. In the end, I'll probably just end up using everything above in a Bayes algorithm. Anyway, great work and thought I would share some of my own stumbles with Presence detection. Edit: one more thing I wanted to add... the router based presence and NMAP like to track your phones based on your phones MAC address. In the newest OS for both Android and iPhone will randomize your MAC address to prevent hackers from tracking you. This can be disabled when connected to your WIFI (as you trust your own WIFI) so that your routers and NMAP are correctly tracking your iPhones/Androids proper MAC address.
@SmartHomeJunkie
2 жыл бұрын
Wow, thank you and what a great addition this comment is! I use the WiFi presence detection of my TP-LINK Deco M9 with a HACS integration now and that seems to do the trick for me at the moment, but I will check out the links that you posted. Thanks again.
@brunodamioli
6 ай бұрын
Hi! Fantastic way to show us everything. I really appreciated. A question... i'm triyng to do all this with the addiction of turning on and off my survaillance camera. I can't find cameras that integrates with HA properly so that I can set surveillance on or off. What brand and model of camera do you use? Can you set the activation of surveillance not at a predefined time, but when you enter or leave the house? I tried almost 3 or 4 different cameras yet... any suggestion?
@paddimckone2707
7 ай бұрын
great video but I have a question: how would the somebody_home group not be the same as if no-one was home? Wouldn't that all be false as well?
@doubleu2170
2 жыл бұрын
Good job !! I will try this ! Very helpful .
@SmartHomeJunkie
2 жыл бұрын
Thx. Glad that it helped!
@torbjornulrichs8570
2 жыл бұрын
If you have more than one device_tracker per person, you can add the device_trackers to the "people" in the settings, the add the person.xxx to the group instead of the device_tracker.
@SmartHomeJunkie
2 жыл бұрын
That is correct
@PeterScargill
3 ай бұрын
Good- I think - but your version of HA bears NO resemblance to mine - even automations - the TITLE is at the END on mine, not at the start. My Docker-based HA (very up to date) has no CONFIGURATION or ADD-ONS...
@yingderekliao1981
2 жыл бұрын
great video. very detailed. i can follow even though I know nothing about yaml
@andrianopolino
7 ай бұрын
Super interesting vide, but it looks like it doesn't work if you don't have external access to Home assistant :(
@videocreations27
Жыл бұрын
I tried to add the menu and other chip with my other chips but they werent visible. Can you show how to do that? I have tried everything I could think of. Thank you for your videos and the ko-fi links. Worth the few bucks in time savings alone.
@videocreations27
Жыл бұрын
I figured it out.
@krzysztofkomornicki7007
2 жыл бұрын
Very useful tutorial, as usual, Junkie :) Thank you so much! :)
@SmartHomeJunkie
2 жыл бұрын
Thanks for your support. It's kinda strange when people call me a junkie, but hey, I guess it's my own fault. 😂😂😂
@krzysztofkomornicki7007
2 жыл бұрын
@@SmartHomeJunkie I know this is not your real name . However in one of your videos you called yourself Junkie. I don't remember what video it was (Samba Share? or something?) While setting up the credentials you said: "I'm Junkie". So, you are Junkie 😀😃
@SmartHomeJunkie
2 жыл бұрын
@@krzysztofkomornicki7007 🤪
@bennylloyd-willner9667
2 жыл бұрын
Great video, subscribed👍 Can HA detect what access point a device is connected to? I gather that not all routers give such detailed info, but if they do I would like to know if we're home but still outside on the farm, i.e. connected to the external WiFi antennas. No need for inside light to be on in that case. I'm installing Unify gear since my old Netgear Mesh is very tired and I want to go with wired APs The ESP32 presense solution seem to be a great idea for more accurate room detection. I have just started smarting up my home and your channel is from now on one of my first go to channels👍
@SmartHomeJunkie
2 жыл бұрын
What a great compliment. Yes, HA can see to what WiFi access point you are connected as long as the router integration supports that.
@rvdp
2 жыл бұрын
Nice video! What may be a cool idea for a next video. Using the proximity sensor for turning the heating on or off. Over here, when everybody in the group is further away than 4km from the house (outside our town), the heating goes into eco mode. When someone gets below the 4km threshold the heating is switched on and it will be nice and cozy when that person gets home. Keep up the good work 🙂👍🤘
@SmartHomeJunkie
2 жыл бұрын
That's a great idea. Thanks. I 'll see if I can set it up like that.
@rvdp
2 жыл бұрын
@@SmartHomeJunkie if you want i can send you my automation yaml when needed. Have fun 👍
@SmartHomeJunkie
2 жыл бұрын
@@rvdp That would be awesome! Thx.
@rvdp
2 жыл бұрын
@@SmartHomeJunkie No problem, I have send it to your Facebook messenger 👍
@SmartHomeJunkie
2 жыл бұрын
@@rvdp Thank you so much! 🙏🏻🙏🏻🙏🏻
@estebangarcia6092
5 ай бұрын
They don't work well for me, it tells me that I left the area and came back in when I never moved from it, I don't know what will happen
@RiaanEloff
Жыл бұрын
So glad I found this 🎉🎉 My first hiccup: have app on samsung. Location enabled, yet ha reports phone is away. Any advice?
@SmartHomeJunkie
Жыл бұрын
Hi! I'm using an iPhone, so I don't think I can help you. By the way, nowadays you can also see if someone is gone or not by checking the state of the Zone. If it returns 0, nobody is home. Otherwise it returns the number of people that are at home.
@RiaanEloff
Жыл бұрын
@@SmartHomeJunkie 🙏
@thbe51
2 жыл бұрын
What's the difference between using this or using proximity?
@SmartHomeJunkie
2 жыл бұрын
Work proximity you can detect is someone is within a defined area around your house (like within 5 km from your house). With this you can determine if someone is at home or not at home.
@TorstigHjalmr
11 ай бұрын
Did you need to set remote access for this to work? My companion app can't tell HA where it is. How do we configure this?
@SmartHomeJunkie
11 ай бұрын
Yes, this only works when you have remote access.
@antoniodecrisci2369
2 жыл бұрын
Another awesome video, Professor! May I ask how to set this up for a home that has an HVAC? Basically central heating and cooling controlled by a "smart"thermostat. For example, I can set it up for the heating in winter, like you did where the temperature is set to 16 oC when nobody is home. BUT, what about in summer when my. HVAC is set to cooling with an air conditioning? Do I have to make another automation? Can I use a trigger and condition to somehow automatically distinguish between summer/winter and heating/cooling. When it's summer time, I'd like the temperature to go the other way, say 26oC so the AC doesn't turn on. Or maybe turn the HVAC off, but then I'll have to turn it on when I get back home manually.. Its a bit tricky?
@SmartHomeJunkie
2 жыл бұрын
I think this would be possible within one automation using trigger IDs and various conditions in a choose action, but it might be simpler to create two automations: one for summer and one for winter where you check what month it is in the condition part of the automation.
@antoniodecrisci2369
2 жыл бұрын
@@SmartHomeJunkie I'm glad you think it's possible. I'll give it a try with one single automation, I haven't really thought it all completely. Thanks.
@SmartHomeJunkie
2 жыл бұрын
@@antoniodecrisci2369 Great. Let me know if and how you got it to work!
@antoniodecrisci2369
2 жыл бұрын
@@SmartHomeJunkie I was able to create ( with help from the community) one automation that can handle both Heating and Cooling. First the triggers are identified, not home or home. Then the nested choose actions are made below with conditions set based on the current mode of the thermostat heat or cool. It might be a few months before I can actually test the cooling condition when summer comes. But yes it is possible with trigger IDs to make it with one automation (also referencing your other video) thanks for your video!
@SmartHomeJunkie
2 жыл бұрын
@@antoniodecrisci2369 Really great to hear that you got it to work! Bravo 👏🏻👏🏻👏🏻
@wilcosmit2103
Жыл бұрын
Hi Ed, i 'am busy to implement this in my HA. There is only a question about it. I'am using a Nefit Easy thermostat for it, but when program this what will happen in the night when (most) people are at home? i want to set the temperature from let say 22:30-07:00 to 15 degrees instead of 20 degrees. how can i solve this? looking forward to hear from you
@yba733
2 жыл бұрын
Top video weer
@SmartHomeJunkie
2 жыл бұрын
Thx!!! 🙏🏻🙏🏻🙏🏻
@alvaroduran1591
Жыл бұрын
Todo
@kmccoybable
Жыл бұрын
Is there an alarm system that will arm or disarm as a result of your presence or geofencing?
@SmartHomeJunkie
Жыл бұрын
I created the Alarm System myself. See this video for that: kzitem.info/news/bejne/1WuonWeNp6eXmHY
@jeibar
2 жыл бұрын
Mate all your videos have been extremely useful for me as I’m new with home assistant , I’m trying to set up some automations based on presence , but unfortunately my device tracker which is my phone shows as away when I’m actually at home connected to same network. Just wondering if you have any tip to solve this ? Thanks heaps mate , keep it up .
@SmartHomeJunkie
2 жыл бұрын
I guess you have to enable location services in your phone.
@jeibar
2 жыл бұрын
@@SmartHomeJunkie it's actually enable, I'm using an iPhone but it always shows that I'm away, I managed to set up my first presence routine based on SSID state on my phone but when I want to changed set the SSID state to not_connected it doesn't work . presence routines are quite difficult in HA , specially for beginners .
@Freddystapersma69
2 жыл бұрын
great vid again. Never thought of using my tplink Deco's for precence detection :) I might like this better as the companion app one because it sometimes lags an thinks I am not home yet :) Question. I have multiple Tp links in my house. can I add them all and use them for room precence?? say when the signal in the bedroom is strongest it knows i am there and when in the living it knows I am there because it is the strongest signal?
@SmartHomeJunkie
2 жыл бұрын
Hi Freddy, Indeed the TP-LINK is much more accurate than the companion app. You can install the TP-LINK integration through HACS. And yes, the integration shows to which TP-LINK satellite your phone is connected, so you could do inhouse presence detection. It's not really reliable for each room, but for zones it might be. If you want this for each room, you can use Crownstone for example.
@robert.wigley
2 жыл бұрын
@@SmartHomeJunkie What's Crownestone please?
@SmartHomeJunkie
2 жыл бұрын
@@robert.wigley See this video for that: How to set up Indoor Localization or Indoor Positioning with Crownstone and Home Assistant kzitem.info/news/bejne/kniFtI5jq6t8mHY
@hb9dod
2 жыл бұрын
Thanks for the video. Does visula code studio runs on a 32bit Raspberry.It gives an fault code "cannot install on this platform" Groet Tom
@SmartHomeJunkie
2 жыл бұрын
I guess not in your case, but File Editor shouldn't be a problem.
@davecl35
2 жыл бұрын
No visual code studio must be 64bit
@SmartHomeJunkie
2 жыл бұрын
@@davecl35 Thanks for this addition Dave!
@davecl35
2 жыл бұрын
@@SmartHomeJunkie no worries 👍
@waltervos8537
2 жыл бұрын
Top teaching video again! Is it also possible to set it up with the gps of the smartphone (and not use the companian app)? Using the zone? I' m a Ha beginner so a question to see if I understand it well? Is it possible in this video that the light in Daans room would stay on (if at least everyone was home) when the automation 'Everyone leaves the house' comes active? So far as I understand only the livingroom lights go out and the heating is set to lower temperature.
@SmartHomeJunkie
2 жыл бұрын
Thank you Walter. Yes, you understood well. The light in Daan's room would stay on in this case, but you can automatically turn that off too when everybody leaves the house. You will need the companion app (or another device_tracker device) to get this to work. Personally, I think that using your router (if there's an integration for it), works best for presence detection. So, if someone's device (phone, laptop, tablet, ...) connects to the router, then that person is home.
@waltervos8537
2 жыл бұрын
@@SmartHomeJunkie There is an integration for my TPlink Archer 7 router, but I think it is too old, because I only see info about packets that are send and received and nothing about connecting to the router.
@SmartHomeJunkie
2 жыл бұрын
@@waltervos8537 In HACS there is a TP-LINK integration that supports device tracking for your model. Should work!
@waltervos8537
2 жыл бұрын
@@SmartHomeJunkie Thanks! I 'm going to install HACS and try it. 👍
@SmartHomeJunkie
2 жыл бұрын
@@waltervos8537 Good luck!
@Hans-gj3vk
Жыл бұрын
Thank you very much for this video. Unfortunately I get stuck when I am looking for the device_tracker in Home assistant (4:13). I think that the vendor of my Android Phone has disabled some features. Can you please tell me which sensors I have to activate in my Home Assistant App on my smartphone (i.e., Menu -> Companion App -> Sensors -> Manage sensors --> but which one have to be enabled? I Enabled Geocoded location and this shown in the menu, but this is deviating from your video. Thank you in advance! :-)
@SmartHomeJunkie
Жыл бұрын
I have an iPhone, so I'm afraid I cannot help you.
@Hans-gj3vk
Жыл бұрын
@@SmartHomeJunkie Okay, that's clear. Thank you!
@andreacarmone3262
Жыл бұрын
I used your video but Is not working. The state remain not_home Also if both the people (me and my wife) are at home. How Is possible??
@SmartHomeJunkie
Жыл бұрын
Maybe your device is not set to allow sending location data. You can also try this video that uses a different approach: How to check if everybody left home in home assistant - Short kzitem.infoOe3X5wQmY5I?feature=share
@andreacarmone3262
Жыл бұрын
@@SmartHomeJunkie Hello, thank you for the quickly reply. My device is set to allow sending location data. is a strange beahvior because now im at home and my wife is not home. HA found that but in "somebody is home" the output is "away" and if i click on the panel i can see the my device at home and the device of my wife not home.
@andreacarmone3262
Жыл бұрын
i will add another info. one device is Android and one device is IOS. is possible that the output of the devices is different and this is the cause?
@SmartHomeJunkie
Жыл бұрын
@@andreacarmone3262 Did you set the all: true or all: false option in the groups.yaml correctly?
@andreacarmone3262
Жыл бұрын
@@SmartHomeJunkie below the code (copied from your video) #### Somebody Home ################################# somebody_home: name: Somebody is home entities: - device_tracker.Iphone_francesca - device_tracker.s22ultra all: false #### Everybody is home ########################### everybody_home: name: Everybody is home entities: - device_tracker.iphone_francesca - device_tracker.s22ultra all: true is something wrong?
@smokey8400
8 ай бұрын
Even easier if you use node red programming drag and drop. Text based programming is getting old.
@SmartHomeJunkie
8 ай бұрын
Nah, Node Red is not needed at all and adds an extra layer of resource usage. Node Red is for dummies...
@patrickjoseph3412
8 ай бұрын
@@SmartHomeJunkieSavage 🎤 💧
@branislavmaricic8207
Жыл бұрын
Thanks for the excellent lesson! I have a problem with knowledge! My device device_tracker.redmi_note_9_pro only has the attributes "source_type: gps" and friendly_name: "Redmi_Note_9_Pro" and it state "unknown" back to me!
@roxytbbs
Жыл бұрын
I''ll keep getting the same problem. The State* won't change to home. It keeps saying not_home. In the State attributes (YAML, optional) this is wat I get: entity_id: - device_tracker.xiaomi_tom - device_tracker.xiaomi_sandra order: 0 friendly_name: Somebody is home I think order: 0 isn't correct? Hope you can help me? I've checked everything, but can't find the solution.... Thanks in advance and for your great videos!!
@SmartHomeJunkie
Жыл бұрын
Try to experiment using the developer tools. Also check if your phones are accepting location services.
@roxytbbs
Жыл бұрын
@@SmartHomeJunkie I'll give it another try. Phones are working correctly. If just pushed the button to Set State. The state did change. 🤞🏻🤞🏻 Going to let the dog out and I'll know if it works 😁 Well that didn't help. When I look at the group 'Somebody is Home it says that the Attributes source type is GPS. Maybe I must change something there?
@roxytbbs
Жыл бұрын
@@SmartHomeJunkie Found the problem. It's in the Companion App on Android. You have to start Home Assistant app, then scroll to Companion App, go to Control sensors, scroll to Geocoded location and enable, then scroll to Location sensors and enable Location zone. Then magically my status change to Home!!😃👍
@SmartHomeJunkie
Жыл бұрын
@@roxytbbs That's awesome to hear!
@Christian-hy5nb
2 жыл бұрын
Great Tutorial! But i can not set in the Group.yaml the State all:false The error: Invalid config for [group]: expected a dictionary for dictionary value @ data['group']. Got 'test name:Test entities:- device_tracker.xxx all:false'. (See /config/configuration.yaml, line 8).
@SmartHomeJunkie
2 жыл бұрын
The indentation of your spaces is probably incorrect.
@Christian-hy5nb
2 жыл бұрын
@@SmartHomeJunkie That was my first thought as well, but I'll add spaces accordingly: #### Holli at home ################ holli_home name: Holli entities: - device_tracker.s22_ultra_by_christian all: false This is the error message: Invalid config for [group]: expected a dictionary for dictionary value @ data['group']. Got 'holli_zuhause name:Holli entities:- device_tracker.s22_ultra_von_christian all:false'. (See /config/configuration.yaml, line 8). The configuration.yaml # Loads default set of integrations. Do not remove. default_config: # Text to speech tts: - platform: google_translate group: !include groups.yaml automation: !include automations.yaml script: !include scripts.yaml scene: !include scenes.yaml
Пікірлер: 110