Hello. I recently got a konnected garage door opener and it works great! Through its app I can open/close etc.
But now Im trying to get it integrated in to home assistant via an automation, but not having any luck.
What I want to do is have it open the garage door when I get home. I have my phone in the system and my home ‘zone’ defined. This is my HA automation but it does absolutely nothing: ( I hope Im uploading the image right)
When you check the traces what is shown?
Hi there thanks for the reply. Within HA, this is the config:
id: ‘1721860387449’
alias: Garage Door
description: Opens Garage door when mx comes home
trigger:
- platform: device
device_id: 5e84390b2579657dad01199d7a8da4cc
domain: device_tracker
entity_id: a30072e6c4407b8e49c8bfddebd3d420
type: enters
zone: zone.home
condition:
action: - device_id: 3b7bfc9a3d50b9a908da58948b1f235d
domain: cover
entity_id: 5e16c89045b036e68ff1a490d60f25db
type: open
mode: single
Under the trace timeline there is nothing at all other than the entry where I created it:
In the konnected device log there is nothing at that timestamp, like I never got home.
A screen shot of the config:
Since the only trace is from when you set it up then I would break down what you are trying to do. Your automation is really only 2 parts so that should be pretty easy.
Your “Then do” looks very straight forward. On the right click the 3 dots and choose run. This should open your garage door and validate that there is nothing wrong with those settings.
But since the automation is not firing and recording a trace then it looks like your system is not catching that you are entering your zone.
Do you have any other automations that are based off your phones location? Have you checked the the setting on the companion app?
Do you have the iphone set as a tracker for your user account? if so you can make a card that shows the location and last update. This will help show you that it is being tracked correctly by HA.
Here is an example of one that I use.
- type: custom:mushroom-person-card
entity: person.“your_person”
icon_type: entity-picture
primary_info: last-updated
secondary_info: last-changed
Hi thank you. Wow I think I understand most of that, Im literally just beginning with HA and figured I would start with the simplest automation I could think of, which is this one.
I have no other automations but can try making one that is based off my location.
I dont believe I have my iphone set as a tracker, I will look in to seeing how to do that. That might be the issue, if it doesnt know where i am
I am not familiar with the iPhone settings unfortunately but in the Android companion app you need to allow location. I assume this is the same in iPhone. Once you do that you should be able to create the card and make sure HA actually sees your location.
That might have been the magic bullet thank you. My location settings were “only while using the home assistant app” on the iphone, now I just set it to always. Ill give that a try!
dammit that didnt do it. While I was away I opened the HA app on my phone and it did track me the entire time and was accurate. I get home and no GDO. Traces still say nothing (I think Im looking in the right place)
And if I look at my devices in HA I find my phone (sort of) Under devices it shows “mobile app”, I assume thats OK because under that my phone is listed. If I click on that it shows me entering my home address at the correct time today when I tested it
Did you try running the second half of your automation manually? Clicking on the 3 dots tot he right of “Then do” and clicking Run? If you do and your door opens then we know that you have the action part of the automation setup correctly.
Since your screenshot looks like it is correct I am going to assume that manually running the second part works and since we know that HA is tracking your phone correctly we are left with finding the correct way to get the trigger to activate. I ran into this issue myself when I created my first location based trigger. The one that I setup activates my alarm and a few other things once HA see’s that my house is empty.
I had to try a few options and what I landed on that worked for me was not using leaving the zone but rather setting a distance from my house. Try setting the same thing up but in reverse. Here is an example Trigger you can use, just change the entity_id: to your zone name.
The number is in meters so feel free to adjust that to whatever number you would like.
platform: numeric_state
entity_id:
- sensor.home_nearest_distance
below: 500