OpenGarage 2.0 Driver and Getting it working for HomeKit Integration

Following this post, I was able to get my OpenGarage to work Hubitat.

I'm now having an issue getting it to show up in my HomeKit integration App to get it working on HomeKit. I have turned on the HomeKit integration on the device, and see it in the app's device lists at a high level when looking at the app. When I go into the app though, there is no check box for me to turn it on or off.

I'm still pretty new to Hubitat and am not fully sure what I'm doing, but I have a feeling that it may be something to do with how the Virtual Driver is setup in terms of the acceptable types of devices into HomeKit? Any help would be appreciated.

What app? The Homekit integration app?
So it is not listed in the Homekit app anywhere?

That thread you linked to is very long and its not clear where the code is posted. Is your garage door device using custom code or a built in virtual driver? Can you provide a direct link to the code or the post in that thread with the code details.

Sorry for not being clear. Yes, it is not showing up in the HomeKit Integration App on my Hubitat.

On the Apps page, when I click the "i" to the right and look at the list of Authorized devices, I can see it in that list. But when actually going into the HomeKit Integration App, there is no item listed to check it on or off.

The code I used to add the device as a Virtual Driver can be found here.

When I go to the device in Hubitat, the controls all work as expected.

Thanks for your help!

Try adding DoorControl as another capability. Looking at the code for the Zooz Garage Door app/driver set, that is what yours may be missing.

Like this:

	) {
        capability "Actuator"
        capability "Polling"
        capability "GarageDoorControl"
        capability "DoorControl"
        
        attribute "door", "string"
        attribute "distance", "number"
        attribute "vehStatus", "string"
        attribute "rssi","number"
        
        //command "close"
        command "toggleDoor"
        command "rebootDevice"
    }   
1 Like

I have no clue how OpenGarage works -- does it control just the GDO? How do you determine the door's open/close position?

Where I'm going here is this... In HomeKit, I use the garage door device created from the Zooz GDO app. If you use a tilt sensor or some other way to monitor the door position, could you use an app like that to tie it all together?

Edit -- Jeff beat me to the general idea

1 Like

Its still a good point, if there is a separate sensor involved tying it together using one of the garage door apps may be a good solution. If the current driver already sets the open/close states correctly though it may haves it own way to determine that built in already.

The apps like the Zooz one are made to tie a momentary relay together with a tilt sensor, and combine it into a virtual garage door device. It seems like this OpenGarage device may already being doing that in this one driver.

1 Like

Right on... Not knowing anything about OpenGarage, it was admittedly a shot in the dark. It sounds like HomeKit just can't mould the info presently availlable into a "garage door" presentation, so hopefully OP can somehow shoehorn it together.

This did it! I am now able to see it in the HomeKit Integration app and control it from my phone.

For more information about OpenGarage you can see what the project is here. In short, it is just an ESP8266 based board that also has an ultrasonic sensor on it to detect if the door is open or closed (and if a car is parked in the spot or not). It does also have inputs for a magnetic door sensor if you wanted to add one of those as well.

Is there any decent documentation around the compatibility definitions for the virtual drivers and what HomeKit will accept? I tried looking around but wasn't able to find any. I'm curious for in the future if I'm trying to fix some of these issues myself.

Thanks again!

No not really, I just know it is capability based so I took a wild guess.
Both DoorControl and GarageDoorControl appear to be about the same thing in the capability definitions so I would guess @gopher.ny left out the GarageDoorControl from the integration app by mistake.

@thebearmay you may want to update your driver to include the DoorControl capability, see above discussion.

1 Like

Done.

2 Likes