Location-based automations / device tracking in Home Assistant (2021 Guide)

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

Комментарии • 88

  • @mazstojan8889
    @mazstojan8889 Месяц назад

    Freaking Great Video ... Love the way you show the Dev tools so that people can know why later on the video how its used well done !

  • @stinger5966
    @stinger5966 3 года назад +1

    Thanks for this guide.
    It worked perfectly. When I'm on my motorcycle the garage door opens when I'm about 3 houses away.
    Keep the great videos coming.

    • @colsoncory1021
      @colsoncory1021 3 года назад

      sorry to be so off topic but does any of you know a method to get back into an Instagram account?
      I was dumb lost the account password. I would love any tips you can give me!

  • @miles267
    @miles267 3 года назад +3

    Could you please cover 1.) how to create a family group and 2.) how to trigger the away event when every member of the group leaves home and 3.) how to turn back on the home preset when at least one member of the family group arrives back home?

  • @freddyesquiv7166
    @freddyesquiv7166 4 года назад +1

    Awesome! Great job..... i´m working using the GPIO from the rasperry in order to update my old alarm system in case your interested.

  • @rodrijob
    @rodrijob 10 месяцев назад

    Finally!!! Some examples that works perfectly with locations based. Thanks a lot!!!

  • @vaughanza
    @vaughanza Год назад +2

    Thanks for great video. Any chance you can do a updated video on this as HA has changed , thanks

  • @veryshortclips2723
    @veryshortclips2723 8 месяцев назад

    Great video when you are starting in home assistant

  • @sameeroafbazivich2832
    @sameeroafbazivich2832 Год назад

    Thank you for this detailed video about zone automation. Keep going, you're great!

  • @izik6894
    @izik6894 3 года назад +2

    Another great content! Can you please create a tutorial on how to use amazon alexa with home assistant? Thank you!!!

  • @bluegizmo1983
    @bluegizmo1983 3 года назад

    I have some automations that trigger when I arrive home and when I leave home. I use zone based triggers for my Android phone at first, but soon realized that wasn't enough, as it would take some time to register that I left home or arrived home. So then I set the app to use high precision location while I'm connected to the Bluetooth stereo in my car (because high precision location is too battery intensive for constant use) which worked well 90% of the time, but the other 10% of the time when I'm driving a different car without a Bluetooth stereo I still had issues. So I modified the automations to also trigger when my phone connects to or disconnects from my home WiFi network, which seems to be working great so far.

  • @billyhamlen9610
    @billyhamlen9610 3 года назад

    Thank you for your series of videos, this is the right level, I start to get better on HA.......

  • @carlwestman9343
    @carlwestman9343 3 года назад

    Daaaamn! High quality videos! You deserve alooot more subscribers!😁 Keep up the good work!

  • @JoseBerruezo
    @JoseBerruezo 4 года назад +1

    Great job nice video. I will be waiting for Amazon echo integration video.

  • @ChristianSkallerupBrgesen
    @ChristianSkallerupBrgesen 4 года назад +2

    Hi Grayson. I am impressed and have recommended your channel in a Danish HA group. It is perfect for beginners.
    Just one question. Why do you not use Zone-trigger instead of the state?

  • @DegenWelle
    @DegenWelle 3 года назад +2

    Hey, thanks alot for Great tips , I was wondering if you could make a video on a location based automation like: Only turn of lights when both residents (person.) Is not_home. And turn on lights when either of the person. Is home. Would be super helpful. Been trying to get that to work for weeks lol.

    • @coin777
      @coin777 3 года назад

      Try node-RED

  • @jiayiliu9371
    @jiayiliu9371 Год назад

    Thank you so much for sharing!! This is really helpful!!!

  • @shotseeker3137
    @shotseeker3137 3 года назад +6

    how did you manually set yourself as home or not_home? im trying to change the state but not sure where to do it

    • @JanHagge
      @JanHagge 3 года назад

      I am interested in this information too

  • @djeev1
    @djeev1 2 года назад

    Great video, thank you for these clear explainations

  • @ciprian-nedelcu
    @ciprian-nedelcu 3 года назад

    this covers all the basis for beginners, gj

  • @vikingofengland
    @vikingofengland 2 года назад

    Thanks for this, great video. Have now subscribed 💪

  • @StephenEFyffe
    @StephenEFyffe 4 года назад

    Awesome! Great job on the presentation.

  • @badrhabib5963
    @badrhabib5963 4 года назад

    well done. this is a great video. thank you

  • @TheUnofficialMaker
    @TheUnofficialMaker 3 года назад

    .Could you do instructions on how to install HACS? I'm stuck...love your style

  • @seafurymike
    @seafurymike 3 года назад

    Awesome video Grayson. Not knowing the state information of zones made my life difficult trying to make opening my gate and garage when i was coming home. finally you sorted me out.
    Just a note, your "Home" zone is capitalised, yet the not_home and home state didnt reflect this in the automation configuration. You mentioned "Work" requires capitalisation for it to match. Bit confusing. In the end i just made everything lowercase to ensure I got the correct structure for the automation.

  • @TerraMagnus
    @TerraMagnus 3 года назад

    Very solid tutorial. Well done.

  • @lambda-dev
    @lambda-dev Год назад

    Thanks, very well explained.

  • @eduardneufeld4152
    @eduardneufeld4152 3 года назад

    Nice explanation. Thank you.

  • @geoffsage
    @geoffsage 4 года назад +1

    Hi and thanks for the video and in a great format, can you explain how you simulated from being away to home, which you seemed to be able to perform instantly...thanks again.

    • @jamesshieh88
      @jamesshieh88 4 года назад

      You can do this by going into the developer tools, select yourself under entity, change the state to not_home, and click set state

    • @geoffsage
      @geoffsage 4 года назад

      @@jamesshieh88 Thank you for that.

  • @Arcadier
    @Arcadier 6 месяцев назад

    Awesome ! just on point ! I will give it a try to open my garage when my car is entering the "garage zone" . I'm trying to manage that for 2 days now ! I think I need the cloud connection, right ?

  • @beerkekjoer8642
    @beerkekjoer8642 4 года назад +2

    hi there, subscribed. Maybe u could also show the yaml way and not just lovelace? Keep Up the good work and fine humour.

  • @douggriffin8468
    @douggriffin8468 3 года назад +1

    Hi Grayson, I just found your channel and really like your videos so far! I'm new to HA and have googled this to no avail. How do you manually set your location to test automations? I've been driving in and out of my home zone and that gets old pretty quickly! TIA

  • @nigelholland24
    @nigelholland24 3 года назад

    Great video thanks.

  • @TheKelvinLachica
    @TheKelvinLachica 3 года назад

    Awesome video man! Had to sub. That home/away status card is so cool. How do you get that?

  • @TomMinnick
    @TomMinnick 2 года назад +1

    Awesome video, helped me solve an issue I was having for days. Question: How do you know the available states and entity can be checked for? In your example “home” and “not_home”. I struggled trying to get it to work for days before finding your video. I was using “home” and “away” because that’s what the gauge shows on the dashboard. Where is this info kept so I can look up for other entities?

    • @tricky86
      @tricky86 2 года назад

      Check the "Developer Tools" in the sidebar and "States" tab to see the current states of any entity.

  • @bigironinteractive5747
    @bigironinteractive5747 2 года назад

    Nice job on this video

  • @Tmcmaster
    @Tmcmaster 3 года назад

    Thanks for this guide! Your videos are easy to understand and that makes it nice to me as a beginner. How can i manage to do this with 2 persons? If one of us are home the lights must go on. I have made a condition on state person and or person but that does unfortunately not work.

  • @blopak2
    @blopak2 3 года назад +1

    Hi Grayson. Thanks for the video. I have a question. How many times the tracker device refresh your location by it self? I mean, when I away from the location that I design the device inform to HA inmiditly? (My HA is on the internet by the way). Thanks in advance.

  • @franciatcho
    @franciatcho 2 года назад

    Thank you for the series on Home Assistant. I have found it extremely helpful. Is there a way for Home Assistant to run a script if it is tracking more than one person? For example, I want the lights to turn off after the last person leaves the home, not just me.

  • @crazypeople4life
    @crazypeople4life 4 года назад

    O no, the thumbnail 👀

  • @marikgl
    @marikgl 4 года назад +1

    Hi, very informative video. I have a question. Is there an option to make multiple person trigger? I would like to make an automation of closing all lights and windows when all homies are out based on their mobile phones. Cheers.

    • @GraysonAdams
      @GraysonAdams  4 года назад

      marikgl Yes. You would make a “group” in your groups.yaml file consisting of the people you want to collectively track. Then you would trigger based on the group’s state going to “not_home”. There should be documentation on this if you Google “home assistant groups”

  • @atabatabaee
    @atabatabaee 3 года назад

    thanks , helpfull

  • @dominicd4647
    @dominicd4647 2 года назад

    I would like to find a location based automation that would detect in which room I am, (based on my smartwatch ideally) and then trigger a event defined in some system - Home assistant, tasker, etc.

  • @MrDirtydancer1
    @MrDirtydancer1 3 года назад

    Great video. Can TPlink smart switches be used.

  • @hillebrandstreet1882
    @hillebrandstreet1882 27 дней назад

    Great Video like all your videos just awesome .. Can I ask a request I use Geo location to let me know when family members have arrived/left the created locations I have added !
    Is their a way to create a notification as each location when a person has arrived or left with out having to create a notification for each location ! or Person / User please .
    If not that's OK

    • @qunewsguy
      @qunewsguy 23 дня назад +1

      i realize that's an autocorrect mistake but i'm not sure I want to know what "geo lactation" is lol

    • @hillebrandstreet1882
      @hillebrandstreet1882 22 дня назад

      @@qunewsguy if I have added my own area on Maps in HA , and I have 5 users / People can I create a notification to my phone stating a member has entered & Left that Area in a simple automation, rather than what I'm currently doing which is creating one for enter and another for leaving for each member ? ..... Thank you in advance

  • @peterdierckx6703
    @peterdierckx6703 3 года назад +1

    hello grayson
    great job...just one question
    when I create a "neighborhood"-zone and I enter my "home"-zone my device-tracker status keeps saying I'm in the neighborhood zone and not at home.... It means that I can't trigger any automation leaving my "home"-zone.

    • @liuesstuo9413
      @liuesstuo9413 3 года назад +1

      Make sure that the neighborhood zone is passive ”Passive zones are hidden in the frontend and are not used as location for device trackers. This is useful if you just want to use it for automations.” and use the zone trigger instead of the state trigger.

  • @michnl1772
    @michnl1772 3 года назад

    Thanks for the vid, I have it working but I notice that the function Text To Speech for the Google device doesn’t work anymore

  • @PiyushNikam
    @PiyushNikam 3 года назад

    Great !

  • @nielskuijper2119
    @nielskuijper2119 3 года назад

    Hey man, thanks for all your video`s. I have one problem with setting my phone up. And I think it is because here, it says editable: false. Can you help me to set this to true?

  • @blackestknights
    @blackestknights 3 года назад

    pretty decent, though rather than a physical switch use a binary one

  • @ricardo6677
    @ricardo6677 Год назад

    How would I look when I have more than one person in the house? Do I duplicate the automation and repeat the process for each person?

  • @alexs6453
    @alexs6453 4 года назад +1

    Do the Wemo switches work if your internet goes down? I currently have Wemos in a Homekit environment, but my internet goes down often (rural area). If they can work without internet via Home Assistant, I am sold

    • @GraysonAdams
      @GraysonAdams  4 года назад

      Alex S They will work over your local network

  • @guritche
    @guritche 3 года назад

    I am looking for a way to send the name of my current ‘zone’ to and arduino driven split-flap display. Any idea how to get the name of the current zone to be sent to arduino? Or raspberry Pi maybe?

  • @quasimodo1427
    @quasimodo1427 4 года назад +1

    Hi, I really like how you present your vids. I'm having trouble trying to have a light turn on when I get home from work but not untill I walk in the door (with a binary switch on it). Any idea?

    • @GraysonAdams
      @GraysonAdams  4 года назад

      How are you determining whether or not you have arrived? You have a binary sensor for your door?

    • @quasimodo1427
      @quasimodo1427 4 года назад

      @@GraysonAdams
      I use life360 to determine if I'm home but I don't want the light to come on until I walk in the door because some times I go into the garage for awhile before going in the house

    • @GraysonAdams
      @GraysonAdams  4 года назад

      Okay, you would need a device that can detect motion. If you use Philips Hue, consider one of their motion sensors at Best Buy. They integrate into Home Assistant.

    • @quasimodo1427
      @quasimodo1427 4 года назад

      @@GraysonAdams
      Okay, I have a switch binary switch on the door so when I walk through the door the door switch goes from closed to open

    • @GraysonAdams
      @GraysonAdams  4 года назад

      Okay so you would create an automation that says:
      Trigger: binary_switch to “on”
      Condition 1: person is “home”
      Condition 2: Value template (don’t copy this, type it out, otherwise you’ll get an error)
      {{ as_timestamp(state_attr(“automation.THIS_AUTOMATION_NAME”, “last_triggered”)) < as_timestamp(state_attr(“person.YOUR_NAME”, “last_updated”)) }}
      Action: turn on lights

  • @jacopocec
    @jacopocec 3 года назад

    Hallo, can I do automation based on Device connected to home wify instead of GPS position ?

  • @samwyckstandt795
    @samwyckstandt795 3 года назад

    My location don't update because i have to run HA on my iphone in foreground.. So i have to go to the app to refresh my geolocation. Is there a way to solve that?

  • @ClownCode
    @ClownCode 3 года назад

    Спасибо! Всё понятно, даже если учесть, что англ не мой родной язык. Всех благ ;)

  • @sandervandegarde569
    @sandervandegarde569 2 года назад

    howdy, just watched your video and i did also watch other video's from you about this topic like the one where you set up for location based tracking. All my info is the way you said in your video that it should be but the state of me stays on home. Even when i'm not home. I did manually set my iphone state to home, could that be the problem? I wish to make automations that turn my lights on after sunset when i'm home but turn everything off or not turning them on (which would be the same i quess) when i'm not home. But because of the state of my phone it always says i'm home. How can i fix this? I do use the trial version of the nasa busa stuff.

    • @Fenweekoh01
      @Fenweekoh01 2 года назад +1

      welcome to the wonderful world of HA i gave up on it because i could not get anything at all working using the built in editor. if their own editor will not produce code that will work... well it needs more time before i will ever try it again

  • @kristianjanapon5344
    @kristianjanapon5344 3 года назад

    Nice video, subbed! My small issue is that my phone (samsung) and my wifes phone (iphone 7) both have the app, and even if we goto work, we are "home", the apps have full permission, in home assist the names and the trackers are in the right place. Searched for everything I can find to turn that into "not_home" but so far I failed...any suggestions?

    • @GraysonAdams
      @GraysonAdams  3 года назад

      Hey Kristian, sorry for just now getting back to you. Did you resolve this? Just for clarification, you're saying it shows your device outside of your home radius on the map, however the device_tracker state is still "home"?

    • @kristianjanapon347
      @kristianjanapon347 3 года назад

      Hey Grayson, I actually fixed the part where they show outside the house, but the problem still remain that we are home 24/7 while we are actually not..

    • @GraysonAdams
      @GraysonAdams  3 года назад

      And this is the device_tracker that’s home 24/7 or the “person” entity?

    • @andreaszetea-ster900
      @andreaszetea-ster900 3 года назад

      @@GraysonAdams how does the phone tell home assistant that its away , if it is not in the network anymore? I this only works if you have a vpn to your house, like wireguard

  • @TheMordano
    @TheMordano 3 года назад

    I just found this channel and love the style of the videos. But I am wondering if this channel is already dead? At the beginning of the series the videos came frequently and since 4 months nothing? Very sad considering the extreme good quality of the videos.

  • @photelegy
    @photelegy 2 года назад

    Is there a way to pull the location from the companion app?
    So that I can have a button to update the location (which would send a command to the specific (or all) companion apps to get the location at this moment)?

  • @AmirHakimiRezaei
    @AmirHakimiRezaei 3 года назад +1

    Oh no I've finished your back log of videos :(

  • @willdwyer6782
    @willdwyer6782 3 года назад

    Did I mention the background music is distracting?

  • @nickandrist1231
    @nickandrist1231 4 года назад

    First