My garage door just opened, wtf?

Damn the HA app location reporting! I have been sitting in front of my computer the whole time.

The HA app does not have a sensor called close to home.

proximity:
  home:
    devices:
      - device_tracker.vog_l04
    tolerance: 50
    unit_of_measurement: ft
  - name: "Close to Home"
    state: '{{ states("proximity.home")|int < states("input_number.close_to_home_trigger")|int }}'

image

device_tracker.vog_l04…

So what you’re actually saying is that the configuration of your templates and automation makes it possible for the garage to open when you are home?

You should have conditions, especially for things that is related to Safety and security.

100 feet is very little for a GPS based location when you are indoor.
I would say 300 feet minimum. And you should probably expect false triggers even at 300 feet

1 Like

You should probably remove the street names

I’ll remove the proximity trigger since it’s unreliable…

If anyone wants to clean out my garage, THANK YOU!!!
The door from garage to house is locked!!

BTW, nice to see an active community!

It’s disappointing that the HA APP GPS coordinates are so flakey…

If you want to come to Richmond, BC and cleanup my garage, by all means!

Please don’t blame HA for things that are not in the responsibility of HA.

Accuracy of GPS signal => Your phone, your building, the stallites
Make your automations robust => Your responsibility

(robust = e.g. “do not open garage if my phone is already at home since more than…”)

2 Likes

Thanks for the advice. I realize that these automations are my responsibility and that the GPS reporting is reliant on the phone and GPS signals. It’s frustrating when it’s inaccurate. I am am going to remove the entire proximity detection…,

What you could do is to trigger it on your device getting on local wifi connection, assuming your wifi has a reach into your driveway

Yes, I tried that but it is slow. I have implemented a Zigbee sensor for arrival/departure but it also is somewhat slow on arrival…

It was the Clarity Leaves automation that triggered the garage door opening…based on proximity! Don’t know why i added the proximity sensor trigger to it…have removed it!

alias: Clarity  Leaves
description: ''
trigger:
  - platform: state
    entity_id:
      - binary_sensor.honda_clarity_real_power
    to: 'on'
    from: 'off'
    id: Clarity Zigbee Sensor Power
condition:
  - condition: state
    entity_id: cover.garage_door
    state: closed
  - condition: state
    entity_id: binary_sensor.clarity_in_garage
    for:
      hours: 0
      minutes: 0
      seconds: 0
    state: 'on'
action:
  - service: cover.open_cover
    target:
      entity_id: cover.garage_door
    data: {}
  - service: notify.alexa_media_this_device
    data:
      data:
        type: tts
      message: Have a safe trip!  I'll miss you...
    continue_on_error: true
  - service: input_text.set_value
    data:
      value: Triggered by {{ trigger.id }}
    target:
      entity_id: input_text.clarity_left
  - wait_for_trigger:
      - platform: state
        entity_id:
          - binary_sensor.honda_clarity_real_power
        from: 'on'
    timeout: '00:05:00'
    continue_on_timeout: true
  - condition: state
    entity_id: cover.garage_door
    state: open
  - service: cover.close_cover
    target:
      entity_id: cover.garage_door
    data: {}
  - service: notify.alexa_media_this_device
    data:
      data:
        type: tts
      message: I've closed the garage door.
    continue_on_error: true
mode: single
max: 10
max_exceeded: silent

But the Wifi is a good condition for the garage to NOT open.

I will try try that, thanks…

my garage door automation works perfectly fine using proximity. But I have my proximity threshold set a bit bigger. :wink:

  - id: gd_auto_open_north_garage_door
    alias: GD Auto Open North Garage Door
    trigger:
      - platform: template
        value_template: "{{ states('proximity.home_me_ft') | int < 1000 or states('proximity.home_me_ft_mobile') | int < 1000 }}"
    condition:
      - condition: or
        conditions:
          - "{{ state_attr('proximity.home_me_ft', 'dir_of_travel') == 'towards' }}"
          - "{{ state_attr('proximity.home_me_ft_mobile', 'dir_of_travel') == 'towards' }}"
      - "{{ '84:DD:20:62:FA:FE' in state_attr('sensor.my_mobile_app_bluetooth_connection', 'connected_paired_devices') }}"
      - condition: state
        entity_id: cover.north_garage_door
        state: 'closed'
    action:
      - service: script.open_gdn

It is not the automation, it is the preciseness of the location of the device. We have 4 devices in our family (3 android and 1 iPhone) and only one is precise, cannot get the others to work the same even with the same (android) settings, the positions differ up to 2 km even when being stable

Yeah, I know. that’s why I made the comment about the proximity value I used being bigger.

I just added the rest in case someone else might benefit from it.

GPS is not designed to work indoors. Reliability requires triangulation of satellites overhead. Once indoors or even outdoors in an area with many obstacles, the GPS signals bounce around making triangulation next to impossible and unreliable.