• grue@lemmy.world
    link
    fedilink
    English
    arrow-up
    65
    arrow-down
    1
    ·
    6 days ago

    The main reason my wife and I don’t have location sharing set up isn’t because of trust or lack thereof between each other, but because I don’t trust proprietary/commercial location-sharing services.

    I’ve been meaning to set up a self-hosted system (mainly because it seems like Home Assistant could do some neat automations with that info), but haven’t gotten around to it yet.

    • Manalith@midwest.social
      link
      fedilink
      English
      arrow-up
      24
      arrow-down
      1
      ·
      6 days ago

      One of my gf’s friends went through a pretty nasty breakup, moved and whatnot and most of her friend group were trying to make sure that the ex and his friends didn’t have their location anymore and I’m just sitting here like “its wild that you have to go through that” well a couple weeks later 3 of her tires were stabbed with a screw driver or something, and while there’s no concrete evidence that they learned where she moved, I’m still over here trying to get them all to be more conscious about online privacy and location sharing, but nothing works…

    • Munkisquisher@lemmy.nz
      link
      fedilink
      English
      arrow-up
      10
      ·
      6 days ago

      Yeah we use it with home assistant, and Bluetooth beacons to turn on the garden lights when we get home, and turn on interior lights if neither of us are marked as home. Also turn on the electric blanket if we are out and heading towards home after 9pm. Also the person detection camera only alerts us if we aren’t home.

      • deafboy@lemmy.world
        link
        fedilink
        English
        arrow-up
        15
        ·
        6 days ago

        Also turn on the electric blanket if we are out and heading towards home after 9pm

        Make sure it defaults to OFF after power loss. My colleague had a close call when the smart plug with the infra panel plugged in decided to turn on after the power outage.

        • Munkisquisher@lemmy.nz
          link
          fedilink
          English
          arrow-up
          1
          ·
          5 days ago

          Yes we have several of the AthomTech ones that ship with Esphome. There’s a power loss setting on them “on, off, as before”

      • CosmicTurtle0@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 days ago

        Would you mind sharing your automation yaml for the garden lights? I’d love to do more with Bluetooth beacons but don’t know enough about how they work to do anything with them.

        • Munkisquisher@lemmy.nz
          link
          fedilink
          English
          arrow-up
          2
          ·
          5 days ago

          We have it hidden in the letterbox. The mobile app has a Bluetooth beacon setting where you can have it report either specified beacons to HA, or all of them and you can filter for the ones you want at that end.

          The automation looks for the beacon to be reported from either of 2 devices and then switches the lights on, quite basic.

          We have a separate automation that turns the scanning for beacons setting in the phone app on at dusk and off at 3am. And another that turns the garden lights off after 10 min triggered by them being switched on

          description: ""
          mode: single
          triggers:
            - value_template: >-
                {{ state_attr('sensor.phone1_beacon_monitor',
                'b5b182c7-eab1-4988-aa99-bd9_1_2') != None  }}
              trigger: template
            - value_template: >-
                {{ state_attr('sensor.phone2_beacon_monitor',
                'b5b182c7-eab1-4988-aa99-bd9_1_2') != None  }}
              trigger: template
          conditions: []
          actions:
            - data: {}
              target:
                entity_id:
                  - switch.garden_lights
                  - switch.deck_light_table
                  - switch.deck_light_bbq
              action: switch.turn_on
            - event: beaconDetected
              event_data: {}
            - if:
                - condition: numeric_state
                  entity_id: zone.home
                  below: 1
              then:
                - data: {}
                  target:
                    device_id:
                      - b5c12ce8343fda7810b69c24f
                      - a71515f86d7d34ef570acbe8
                  action: light.turn_on
          
    • cole@lemdro.id
      link
      fedilink
      English
      arrow-up
      2
      ·
      6 days ago

      You don’t need anything other than home assistant though, right? the companion apps already just do that

      • grue@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 days ago

        Well, I need a reverse proxy or VPN or something so that the phones can connect to my Home Assistant server from outside the LAN. That’s the main thing I haven’t gotten done yet.

        • cole@lemdro.id
          link
          fedilink
          English
          arrow-up
          3
          ·
          5 days ago

          ah. tailscale is great for that. I personally just leave my home assistant exposed behind a reverse proxy