My garage door just opened, wtf?

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.

It happens

So, my phone GPS while inside placed me ~375’ away from here for 20 seconds…

image

Close to home trigger increased to 400’…

image

Modified arrival automation:

alias: Clarity Arrives
description: ''
trigger:
  - platform: state
    entity_id:
      - binary_sensor.honda_clarity_presence
    id: Clarity Zigbee Sensor
    to: 'on'
  - platform: state
    entity_id:
      - binary_sensor.close_to_home
    id: Close to Home
    to: 'on'
    enabled: true
condition:
  - condition: state
    entity_id: cover.garage_door
    state: closed
    for:
      hours: 0
      minutes: 0
      seconds: 0
  - condition: state
    entity_id: binary_sensor.clarity_in_garage
    state: 'off'
  - condition: or
    conditions:
      - condition: state
        entity_id: sensor.direction_of_travel
        state: toward
      - condition: state
        entity_id: sensor.direction_of_travel
        state: arrived
  - condition: state
    entity_id: binary_sensor.clarity_bluetooth
    state: 'on'

Thanks everyone for all the feedback!

I don’t know, I would never use any kind of presence / proximity / whatever automation to open a garage or unlock a door. Security is just as good as the weakest link. And you’re putting the security of your entire house into the hands of a highly unreliable heuristic. Turning on the lights on arrival, sure. Even disabling the alarm system - if you’re confident in your tech, why not. But actually opening up everything - hell no. It’s not that hard to push a little button in your car when you pull up the driveway.

The other way round is fine though. Presence can very well be used to lock your doors or close your garage when you leave, in case you forgot to close it manually.

OMG, I just watched this! I still have tears of laughter rolling down my face! Hilarious!

Thanks!

1 Like