Switch Based On Presence In Home Assistant - Tutorial

Поділитися
Вставка
  • Опубліковано 7 сер 2024
  • This Home Assistant tutorial shows you how you can set up presence detection using groups and how you can detect if someone enters or leaves the house. Based on the presence of people in the house, you can switch lights, turn on the heating, and do many more exciting things. I am explaining the concept and demonstrating how you can set it up yourself in this step-by-step tutorial.
    📓Note: You can also use the person entities instead of using the device_tracker entities as shown in the video in case you have multiple device trackers per person.
    ⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐
    I cannot create these videos without your support!
    If my videos save you time, you can support me in the following ways:
    * Join this channel to get access to perks: 📺 / smarthomejunkie
    * Please consider becoming my patron 🏅 at / smarthomejunkie
    * Or please support me by buying me a ☕ at ko-fi.com/smarthomejunkie/
    ⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐
    You can hire me for Home Assistant consultancy. Contact me at smarthomejunkie@gmail.com for services and prices.
    * The Light Group video is here: • How to Control Lights ...
    If you have any requests for Home Assistant topics, please leave a comment and I will try to create a tutorial for you.
    * See the list of Smart Home devices that I use and recommend here:
    github.com/smarthomejunkie/My...
    * Follow me on Instagram @smarthomejunkie: / smarthomejunkie
    * Follow me on Twitter 🐦: / smarth0mejunkie
    * Like my page on Facebook 📘: / smarthomejunkie
    Check my channel for more awesome Smart Home tutorials: @Smart Home Junkie
    If you got enthusiastic about Home Assistant, you can watch these videos too:
    * What is Home Assistant?: • What Is Home Assistant...
    * How to install Home Assistant: • The Home Assistant ins...
    * Set up automations in Home Assistant: • How to set up Automati...
    * How to set up lights and light groups in Home Assistant: • How to Control Lights ...
    * Create your own professional alarm system in Home Assistant: • Create a professional ...
    * and many more in this playlist: • Home Assistant
    0:00 Introduction
    0:53 Show use cases
    1:42 Explain device tracking with the companion app
    2:20 How to Find device_trackers in Home Assistant
    2:47 Explain device tracking through router presence
    3:18 Show in Developer tools what the states can be
    4:22 Explain groups and how to setup groups file in the configuration.yaml
    6:01 Add group somebody_home to groups.yaml
    7:05 Add group everybody_home to groups.yaml
    8:15 Show in Developer tools what the states of the groups can be
    9:35 Create automation for first person arrives home
    12:30 Create automation for others who arrive home (actually, child arrives home)
    14:50 Create automation for everybody who leaves home
    #homeassistant #smarthome #smarthomejunkie #homeautomation
  • Навчання та стиль

КОМЕНТАРІ • 110

  • @jacopocec
    @jacopocec Рік тому +3

    You are definitely the best explaining what we really need in HA, PLEASE keep making videos, THANK YOU

  • @MortenEgelundRasmussen
    @MortenEgelundRasmussen 10 місяців тому +1

    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".

  • @SaurePwne
    @SaurePwne 2 роки тому +2

    Great! Your videos show exactly the topics that interest me right now!
    Super comprehensible explained!

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 роки тому

      Thanks for this compliment. Glad that it helped!

  • @Seternes
    @Seternes Рік тому +1

    Thanks for helping me building my SmartHome. Almost every video you make I have used something out of.. Thanks again 👍

  • @kobedde
    @kobedde 8 місяців тому +1

    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
      @SmartHomeJunkie  8 місяців тому +1

      Thank you for this big compliment Eddy! I like your name 😉

    • @kobedde
      @kobedde 8 місяців тому +1

      @@SmartHomeJunkie i Know 😉

  • @noamshuch2473
    @noamshuch2473 Рік тому +1

    Thank you for your clear explanations and nice video. Very helpful for me.

  • @aaajp3
    @aaajp3 Рік тому +1

    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

  • @yingderekliao1981
    @yingderekliao1981 2 роки тому

    great video. very detailed. i can follow even though I know nothing about yaml

  • @FictionalCitizen
    @FictionalCitizen Рік тому +2

    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?

  • @doubleu2170
    @doubleu2170 2 роки тому +1

    Good job !! I will try this ! Very helpful .

  • @neozizen42
    @neozizen42 2 роки тому +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
      @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.

  • @krzysztofkomornicki7007
    @krzysztofkomornicki7007 2 роки тому +1

    Very useful tutorial, as usual, Junkie :) Thank you so much! :)

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 роки тому +1

      Thanks for your support. It's kinda strange when people call me a junkie, but hey, I guess it's my own fault. 😂😂😂

    • @krzysztofkomornicki7007
      @krzysztofkomornicki7007 2 роки тому +1

      @@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
      @SmartHomeJunkie  2 роки тому

      @@krzysztofkomornicki7007 🤪

  • @HoGalant
    @HoGalant 2 роки тому +1

    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
      @SmartHomeJunkie  2 роки тому +1

      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.

  • @brunodamioli
    @brunodamioli 5 місяців тому

    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?

  • @yba733
    @yba733 2 роки тому +1

    Top video weer

  • @rvdp
    @rvdp 2 роки тому +1

    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
      @SmartHomeJunkie  2 роки тому +1

      That's a great idea. Thanks. I 'll see if I can set it up like that.

    • @rvdp
      @rvdp 2 роки тому

      @@SmartHomeJunkie if you want i can send you my automation yaml when needed. Have fun 👍

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 роки тому +1

      @@rvdp That would be awesome! Thx.

    • @rvdp
      @rvdp 2 роки тому +1

      @@SmartHomeJunkie No problem, I have send it to your Facebook messenger 👍

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 роки тому +1

      @@rvdp Thank you so much! 🙏🏻🙏🏻🙏🏻

  • @bennylloyd-willner9667
    @bennylloyd-willner9667 2 роки тому +1

    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
      @SmartHomeJunkie  2 роки тому +1

      What a great compliment. Yes, HA can see to what WiFi access point you are connected as long as the router integration supports that.

  • @wilcosmit2103
    @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

  • @RiaanEloff
    @RiaanEloff Рік тому

    So glad I found this 🎉🎉
    My first hiccup: have app on samsung. Location enabled, yet ha reports phone is away. Any advice?

    • @SmartHomeJunkie
      @SmartHomeJunkie  Рік тому +1

      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
      @RiaanEloff Рік тому

      @@SmartHomeJunkie 🙏

  • @paddimckone2707
    @paddimckone2707 6 місяців тому

    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?

  • @Freddystapersma69
    @Freddystapersma69 2 роки тому +1

    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
      @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
      @robert.wigley 2 роки тому

      @@SmartHomeJunkie What's Crownestone please?

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 роки тому +1

      @@robert.wigley See this video for that: How to set up Indoor Localization or Indoor Positioning with Crownstone and Home Assistant
      ua-cam.com/video/1BONZ-ryKeA/v-deo.html

  • @antoniodecrisci2369
    @antoniodecrisci2369 2 роки тому +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
      @SmartHomeJunkie  2 роки тому +1

      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
      @antoniodecrisci2369 2 роки тому +1

      @@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
      @SmartHomeJunkie  2 роки тому

      @@antoniodecrisci2369 Great. Let me know if and how you got it to work!

    • @antoniodecrisci2369
      @antoniodecrisci2369 2 роки тому +1

      @@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
      @SmartHomeJunkie  2 роки тому +2

      @@antoniodecrisci2369 Really great to hear that you got it to work! Bravo 👏🏻👏🏻👏🏻

  • @jeibar
    @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
      @SmartHomeJunkie  2 роки тому

      I guess you have to enable location services in your phone.

    • @jeibar
      @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 .

  • @Adrian-fi3kt
    @Adrian-fi3kt 10 місяців тому

    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
      @SmartHomeJunkie  10 місяців тому +1

      Yes, this only works when you have remote access.

  • @waltervos8537
    @waltervos8537 2 роки тому +1

    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
      @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
      @waltervos8537 2 роки тому +1

      @@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
      @SmartHomeJunkie  2 роки тому

      @@waltervos8537 In HACS there is a TP-LINK integration that supports device tracking for your model. Should work!

    • @waltervos8537
      @waltervos8537 2 роки тому +1

      @@SmartHomeJunkie Thanks! I 'm going to install HACS and try it. 👍

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 роки тому

      @@waltervos8537 Good luck!

  • @alvaroduran1591
    @alvaroduran1591 Рік тому +1

    Todo

  • @thbe51
    @thbe51 2 роки тому +1

    What's the difference between using this or using proximity?

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 роки тому +1

      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.

  • @kmccoybable
    @kmccoybable Рік тому

    Is there an alarm system that will arm or disarm as a result of your presence or geofencing?

    • @SmartHomeJunkie
      @SmartHomeJunkie  Рік тому

      I created the Alarm System myself. See this video for that: ua-cam.com/video/t5r73WnufeA/v-deo.html

  • @hb9dod
    @hb9dod 2 роки тому +1

    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
      @SmartHomeJunkie  2 роки тому

      I guess not in your case, but File Editor shouldn't be a problem.

    • @davecl35
      @davecl35 2 роки тому +1

      No visual code studio must be 64bit

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 роки тому +1

      @@davecl35 Thanks for this addition Dave!

    • @davecl35
      @davecl35 2 роки тому +1

      @@SmartHomeJunkie no worries 👍

  • @Hans-gj3vk
    @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
      @SmartHomeJunkie  Рік тому

      I have an iPhone, so I'm afraid I cannot help you.

    • @Hans-gj3vk
      @Hans-gj3vk Рік тому +1

      @@SmartHomeJunkie Okay, that's clear. Thank you!

  • @PeterScargill
    @PeterScargill 2 місяці тому

    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...

  • @andrianopolino
    @andrianopolino 6 місяців тому

    Super interesting vide, but it looks like it doesn't work if you don't have external access to Home assistant :(

  • @estebangarcia6092
    @estebangarcia6092 4 місяці тому

    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

  • @andreacarmone3262
    @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
      @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
      ua-cam.com/users/shortsOe3X5wQmY5I?feature=share

    • @andreacarmone3262
      @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
      @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
      @SmartHomeJunkie  Рік тому

      @@andreacarmone3262 Did you set the all: true or all: false option in the groups.yaml correctly?

    • @andreacarmone3262
      @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
    @smokey8400 7 місяців тому

    Even easier if you use node red programming drag and drop. Text based programming is getting old.

    • @SmartHomeJunkie
      @SmartHomeJunkie  7 місяців тому +1

      Nah, Node Red is not needed at all and adds an extra layer of resource usage. Node Red is for dummies...

    • @patrickjoseph3412
      @patrickjoseph3412 7 місяців тому

      ​@@SmartHomeJunkieSavage 🎤 💧

  • @videocreations27
    @videocreations27 Рік тому +1

    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.

  • @torbjornulrichs8570
    @torbjornulrichs8570 2 роки тому +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.

  • @branislavmaricic8207
    @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
    @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
      @SmartHomeJunkie  Рік тому +1

      Try to experiment using the developer tools. Also check if your phones are accepting location services.

    • @roxytbbs
      @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
      @roxytbbs Рік тому +1

      @@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
      @SmartHomeJunkie  Рік тому +1

      @@roxytbbs That's awesome to hear!

  • @Christian-hy5nb
    @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
      @SmartHomeJunkie  2 роки тому

      The indentation of your spaces is probably incorrect.

    • @Christian-hy5nb
      @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