Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • Light
  • Brite
  • 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 wanted to set up presence detection in Home Assistant without exposing my installation to the internet, and without giving the companion app on my phone access to location data.

I wanted to set up presence detection in Home Assistant without exposing my installation to the internet, and without giving the companion app on my phone access to location data.

Planlagt Fastgjort Låst Flyttet Ikke-kategoriseret
homeassistantmikrotikgrapheneos
9 Indlæg 5 Posters 24 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 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
    #1

    I wanted to set up presence detection in Home Assistant without exposing my installation to the internet, and without giving the companion app on my phone access to location data.

    I use MikroTik network gear at home, so I added the Mikrotik integration to Home Assistant. It showed my phone as a MAC address, connected through Wifi, and I used that as device tracker. Everything seemed fine, but then the next afternoon. the device tracker still showed me as Away.

    I then discovered that GrapheneOS (edit: Android rather, see below) uses a different random MAC address for each connection to a network, as default. Changed it to use a static random MAC for my home network, and now it works as intended.

    All this to avoid running the Morning Coffee automation if I'm not even home.

    #homeassistant #mikrotik #grapheneos

    https://www.home-assistant.io/integrations/mikrotik/

    donthemaster@mastodon.socialD E aquarius@f.czA 3 Replies Last reply
    0
    • mjack@mastodon.bsd.cafeM mjack@mastodon.bsd.cafe

      I wanted to set up presence detection in Home Assistant without exposing my installation to the internet, and without giving the companion app on my phone access to location data.

      I use MikroTik network gear at home, so I added the Mikrotik integration to Home Assistant. It showed my phone as a MAC address, connected through Wifi, and I used that as device tracker. Everything seemed fine, but then the next afternoon. the device tracker still showed me as Away.

      I then discovered that GrapheneOS (edit: Android rather, see below) uses a different random MAC address for each connection to a network, as default. Changed it to use a static random MAC for my home network, and now it works as intended.

      All this to avoid running the Morning Coffee automation if I'm not even home.

      #homeassistant #mikrotik #grapheneos

      https://www.home-assistant.io/integrations/mikrotik/

      donthemaster@mastodon.socialD This user is from outside of this forum
      donthemaster@mastodon.socialD This user is from outside of this forum
      donthemaster@mastodon.social
      wrote sidst redigeret af
      #2

      @mjack this is a standard Android feature, at least in ASOP the rotating MAC is normal. FYI

      mjack@mastodon.bsd.cafeM jumile@mas.toJ 2 Replies Last reply
      0
      • donthemaster@mastodon.socialD donthemaster@mastodon.social

        @mjack this is a standard Android feature, at least in ASOP the rotating MAC is normal. FYI

        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
        #3

        @DonTheMaster

        Thanks, I didn't know that, updated my post. The phone only had Android on for as long as it took to install GrapheneOS.

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

          I wanted to set up presence detection in Home Assistant without exposing my installation to the internet, and without giving the companion app on my phone access to location data.

          I use MikroTik network gear at home, so I added the Mikrotik integration to Home Assistant. It showed my phone as a MAC address, connected through Wifi, and I used that as device tracker. Everything seemed fine, but then the next afternoon. the device tracker still showed me as Away.

          I then discovered that GrapheneOS (edit: Android rather, see below) uses a different random MAC address for each connection to a network, as default. Changed it to use a static random MAC for my home network, and now it works as intended.

          All this to avoid running the Morning Coffee automation if I'm not even home.

          #homeassistant #mikrotik #grapheneos

          https://www.home-assistant.io/integrations/mikrotik/

          E This user is from outside of this forum
          E This user is from outside of this forum
          ef@mastodon.bsd.cafe
          wrote sidst redigeret af
          #4

          @mjack I'd like a 'static random MAC'.

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

            @mjack I'd like a 'static random MAC'.

            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
            #5

            @EF

            They are called "Use per-connection randomized MAC" and "Use per-network randomized MAC" in settings.

            Are you randomly mocking me? 😉

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

              I wanted to set up presence detection in Home Assistant without exposing my installation to the internet, and without giving the companion app on my phone access to location data.

              I use MikroTik network gear at home, so I added the Mikrotik integration to Home Assistant. It showed my phone as a MAC address, connected through Wifi, and I used that as device tracker. Everything seemed fine, but then the next afternoon. the device tracker still showed me as Away.

              I then discovered that GrapheneOS (edit: Android rather, see below) uses a different random MAC address for each connection to a network, as default. Changed it to use a static random MAC for my home network, and now it works as intended.

              All this to avoid running the Morning Coffee automation if I'm not even home.

              #homeassistant #mikrotik #grapheneos

              https://www.home-assistant.io/integrations/mikrotik/

              aquarius@f.czA This user is from outside of this forum
              aquarius@f.czA This user is from outside of this forum
              aquarius@f.cz
              wrote sidst redigeret af
              #6

              @mjack have you considered using Owntracks and integrating that into your HomeAssistant? In that case you'd only need to expose a MQTT server where the phone would be pushing its location, you could even set up a dedicated MQTT server just for this purpose and bridge the owntracks topic to your main instance to avoid exposing other sensitive data.

              mjack@mastodon.bsd.cafeM 1 Reply Last reply
              0
              • aquarius@f.czA aquarius@f.cz

                @mjack have you considered using Owntracks and integrating that into your HomeAssistant? In that case you'd only need to expose a MQTT server where the phone would be pushing its location, you could even set up a dedicated MQTT server just for this purpose and bridge the owntracks topic to your main instance to avoid exposing other sensitive data.

                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

                @aquarius

                I hadn't, but I only want to detect if my phone is home or not, and make that information available to Home Assistant.

                In a previous thread someone suggested setting up a Bluetooth connection between the phone and Home Assistant, but the MikroTik integration seems even simpler to me.

                1 Reply Last reply
                0
                • donthemaster@mastodon.socialD donthemaster@mastodon.social

                  @mjack this is a standard Android feature, at least in ASOP the rotating MAC is normal. FYI

                  jumile@mas.toJ This user is from outside of this forum
                  jumile@mas.toJ This user is from outside of this forum
                  jumile@mas.to
                  wrote sidst redigeret af
                  #8

                  @DonTheMaster @mjack It is. And just to add: using a static MAC on mobile devices *to a specific WiFi network* also makes implementing a DNSBL server like AdGuard Home or Pi-hole much easier.

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

                    @EF

                    They are called "Use per-connection randomized MAC" and "Use per-network randomized MAC" in settings.

                    Are you randomly mocking me? 😉

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

                    @mjack not mocking and its understandable but made me smile.

                    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