Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Kollaps
FARVEL BIG TECH
  1. Forside
  2. Ikke-kategoriseret
  3. I want to use presence detection in Home Assistant automations.

I want to use presence detection in Home Assistant automations.

Planlagt Fastgjort Låst Flyttet Ikke-kategoriseret
homeassistantandroid
13 Indlæg 4 Posters 7 Visninger
  • Ældste til nyeste
  • Nyeste til ældste
  • Most Votes
Svar
  • Svar som emne
Login for at svare
Denne tråd er blevet slettet. Kun brugere med emne behandlings privilegier kan se den.
  • mjack@mastodon.bsd.cafeM mjack@mastodon.bsd.cafe

    I want to use presence detection in Home Assistant automations. I'm using the companion app on Android. My Home Assistant installation is accessible from both external and internal URL.

    I would have thought that configuring either external and internal URLs, or home network SSID, should be enough to allow Home Assistant to tell if my phone is home or not, but the app seems to want full location access to work properly.

    I don't care if Home Assistant keeps a record of where I am (or rather, I would prefer if it didn't), I just want it to know if I'm home or not.

    Any ideas?

    #homeassistant #android

    hacksilon@infosec.exchangeH This user is from outside of this forum
    hacksilon@infosec.exchangeH This user is from outside of this forum
    hacksilon@infosec.exchange
    wrote sidst redigeret af
    #4

    @mjack many OS‘s require location access to see the WiFi APs in the area, since that can be used to triangulate your location. You can turn on the permissions and then turn off the GPS sensor in the app if you don’t want to publish the info to your server.

    WiFi- and especially network Ping-based presence will likely not work with a mobile phone, since they tend to drop off the network to save power. GPS has been rock solid for me, but if that isn’t for you, you could look into Bluetooth-based presence using the built-in options (I think some exist, but haven’t worked with them yet) or espresence / Bermuda (haven’t worked with them, either).

    mjack@mastodon.bsd.cafeM 1 Reply Last reply
    0
    • hacksilon@infosec.exchangeH hacksilon@infosec.exchange

      @mjack many OS‘s require location access to see the WiFi APs in the area, since that can be used to triangulate your location. You can turn on the permissions and then turn off the GPS sensor in the app if you don’t want to publish the info to your server.

      WiFi- and especially network Ping-based presence will likely not work with a mobile phone, since they tend to drop off the network to save power. GPS has been rock solid for me, but if that isn’t for you, you could look into Bluetooth-based presence using the built-in options (I think some exist, but haven’t worked with them yet) or espresence / Bermuda (haven’t worked with them, either).

      mjack@mastodon.bsd.cafeM This user is from outside of this forum
      mjack@mastodon.bsd.cafeM This user is from outside of this forum
      mjack@mastodon.bsd.cafe
      wrote sidst redigeret af mjack@mastodon.bsd.cafe
      #5

      @hacksilon

      Thank you for the explanation and GPS sensor suggestion.

      I like the principle of least privilege. It should be simple, as an app, to ask the OS one of:

      1) are we connected to HomeSSID?
      2) can we access Home Assistant through the internal URL?

      without requiring location access.

      The app doesn't need to know the name of the SSID we are presently connected to, if any, and it doesn't need to know why we cannot connect to the URL.

      Maybe this is more a question about Android capabilities.

      hacksilon@infosec.exchangeH 1 Reply Last reply
      0
      • mjack@mastodon.bsd.cafeM mjack@mastodon.bsd.cafe

        @hacksilon

        Thank you for the explanation and GPS sensor suggestion.

        I like the principle of least privilege. It should be simple, as an app, to ask the OS one of:

        1) are we connected to HomeSSID?
        2) can we access Home Assistant through the internal URL?

        without requiring location access.

        The app doesn't need to know the name of the SSID we are presently connected to, if any, and it doesn't need to know why we cannot connect to the URL.

        Maybe this is more a question about Android capabilities.

        hacksilon@infosec.exchangeH This user is from outside of this forum
        hacksilon@infosec.exchangeH This user is from outside of this forum
        hacksilon@infosec.exchange
        wrote sidst redigeret af
        #6

        @mjack yes, I think it may be a OS thing, I‘m afraid. Though maybe the currently active WiFi name may be exposed without location permission, I‘m not sure (haven’t been an android user for a few years). If it is available without the permission, you should be able to see it in the list of sensors in the app settings, I would expect, like this:

        mjack@mastodon.bsd.cafeM 1 Reply Last reply
        0
        • hacksilon@infosec.exchangeH hacksilon@infosec.exchange

          @mjack yes, I think it may be a OS thing, I‘m afraid. Though maybe the currently active WiFi name may be exposed without location permission, I‘m not sure (haven’t been an android user for a few years). If it is available without the permission, you should be able to see it in the list of sensors in the app settings, I would expect, like this:

          mjack@mastodon.bsd.cafeM This user is from outside of this forum
          mjack@mastodon.bsd.cafeM This user is from outside of this forum
          mjack@mastodon.bsd.cafe
          wrote sidst redigeret af
          #7

          @hacksilon

          Unfortunately, I cannot turn BSSID sensor on in the companion app without granting location access.

          hacksilon@infosec.exchangeH 1 Reply Last reply
          0
          • mjack@mastodon.bsd.cafeM mjack@mastodon.bsd.cafe

            @hacksilon

            Unfortunately, I cannot turn BSSID sensor on in the companion app without granting location access.

            hacksilon@infosec.exchangeH This user is from outside of this forum
            hacksilon@infosec.exchangeH This user is from outside of this forum
            hacksilon@infosec.exchange
            wrote sidst redigeret af
            #8

            @mjack ah, as I suspected. Then there really isn’t any way around that, I‘m afraid. Not sure if the Bluetooth option I mentioned will work or if you would need to grant location access for that as well - haven’t used it, let alone on android.

            mjack@mastodon.bsd.cafeM 1 Reply Last reply
            0
            • hacksilon@infosec.exchangeH hacksilon@infosec.exchange

              @mjack ah, as I suspected. Then there really isn’t any way around that, I‘m afraid. Not sure if the Bluetooth option I mentioned will work or if you would need to grant location access for that as well - haven’t used it, let alone on android.

              mjack@mastodon.bsd.cafeM This user is from outside of this forum
              mjack@mastodon.bsd.cafeM This user is from outside of this forum
              mjack@mastodon.bsd.cafe
              wrote sidst redigeret af
              #9

              @hacksilon

              I run Home Assistant in a VM, without any Bluetooth capability, so not an option at present.

              But I do have 2 Bluetooth thermometers, so maybe it's time to add a USB dongle😉

              hacksilon@infosec.exchangeH 1 Reply Last reply
              0
              • mjack@mastodon.bsd.cafeM mjack@mastodon.bsd.cafe

                @hacksilon

                I run Home Assistant in a VM, without any Bluetooth capability, so not an option at present.

                But I do have 2 Bluetooth thermometers, so maybe it's time to add a USB dongle😉

                hacksilon@infosec.exchangeH This user is from outside of this forum
                hacksilon@infosec.exchangeH This user is from outside of this forum
                hacksilon@infosec.exchange
                wrote sidst redigeret af
                #10

                @mjack or get some ESPs and use the Bluetooth proxy firmware, if you need more coverage.

                mjack@mastodon.bsd.cafeM 1 Reply Last reply
                0
                • hacksilon@infosec.exchangeH hacksilon@infosec.exchange

                  @mjack or get some ESPs and use the Bluetooth proxy firmware, if you need more coverage.

                  mjack@mastodon.bsd.cafeM This user is from outside of this forum
                  mjack@mastodon.bsd.cafeM This user is from outside of this forum
                  mjack@mastodon.bsd.cafe
                  wrote sidst redigeret af
                  #11

                  @hacksilon

                  Nice tip, thanks!

                  1 Reply Last reply
                  0
                  • mjack@mastodon.bsd.cafeM mjack@mastodon.bsd.cafe

                    I want to use presence detection in Home Assistant automations. I'm using the companion app on Android. My Home Assistant installation is accessible from both external and internal URL.

                    I would have thought that configuring either external and internal URLs, or home network SSID, should be enough to allow Home Assistant to tell if my phone is home or not, but the app seems to want full location access to work properly.

                    I don't care if Home Assistant keeps a record of where I am (or rather, I would prefer if it didn't), I just want it to know if I'm home or not.

                    Any ideas?

                    #homeassistant #android

                    pki@mastodon.bsd.cafeP This user is from outside of this forum
                    pki@mastodon.bsd.cafeP This user is from outside of this forum
                    pki@mastodon.bsd.cafe
                    wrote sidst redigeret af
                    #12

                    @mjack I am using this setup.

                    mjack@mastodon.bsd.cafeM 1 Reply Last reply
                    0
                    • pki@mastodon.bsd.cafeP pki@mastodon.bsd.cafe

                      @mjack I am using this setup.

                      mjack@mastodon.bsd.cafeM This user is from outside of this forum
                      mjack@mastodon.bsd.cafeM This user is from outside of this forum
                      mjack@mastodon.bsd.cafe
                      wrote sidst redigeret af
                      #13

                      @pki

                      It's the "When" condition I'm struggling with.

                      I would like to find a way to let Home Assistant know whether I'm home or not, without giving the companion app full location access.

                      1 Reply Last reply
                      0
                      Svar
                      • Svar som emne
                      Login for at svare
                      • Ældste til nyeste
                      • Nyeste til ældste
                      • Most Votes


                      • Log ind

                      • Har du ikke en konto? Tilmeld

                      • Login or register to search.
                      Powered by NodeBB Contributors
                      Graciously hosted by data.coop
                      • First post
                        Last post
                      0
                      • Hjem
                      • Seneste
                      • Etiketter
                      • Populære
                      • Verden
                      • Bruger
                      • Grupper