ratgdo / homekit-ratgdo

A native HomeKit implementation of a Security+ 2.0 garage door controller based on ratgdo hardware
https://ratgdo.github.io/homekit-ratgdo/
GNU General Public License v3.0
214 stars 21 forks source link

Possible to make garage door not a security device #229

Closed rsmith4321 closed 2 months ago

rsmith4321 commented 2 months ago

Would there be any way to make homekit recognize the garage door as a insecure device like a outlet switch? The issue is I have an automation setup where when I'm connected to my cars Bluetooth and approach the house it opens the garage, but because the garage door is a security device it only works if the phone is unlocked and with a confirmation each time. I understand there are ways around this like setting up an unused smart outlet, and having the smart outlet activate the garage door opening. But I was wondering if an option could be made so HomeKit recognizes the garage door like an outlet with lower security level. I assume it the code somewhere it must tell homekit that it's a security device.

jgstroud commented 2 months ago

The code just tells HomeKit that this is a garage door. You can either modify the code to register it as a switch or you could use the home bridge plugin with the esphome firmware, which I think has this feature.

We don't have any plans to implement this.

rsmith4321 commented 2 months ago

Thanks for the quick response. Sadly I wouldn't know enough to modify this. I know there are a lot of other people with the same issue and some are buying smart plugs just to get around the issue. If you could give an example of modifying the code or even better a toggle to make the option on the settings page that would be really cool.

dkerr64 commented 2 months ago

@rsmith4321 You could try installing the homebridge-dummy plugin, create a dummy switch. Then create an automation that opens/closes the door when the dummy switch is turned on/off. I have not tried this don't know if it will work.

Changing our plugin to pretend that it is a regular switch instead of garage door is not simple and not wise. They are completely different accessory types in HomeKit, garage door has additional states that a switch or outlet does not have. As @jgstroud states, we will not do this.

rsmith4321 commented 2 months ago

Thanks for the help, I just didn't know if it was possible. I'm just getting a raspberry pi and setting up home assistant and going that route I guess. It's a shame Apple can't just let us do what we want.

On Sun, Sep 1, 2024 at 10:02 PM David Kerr @.***> wrote:

@rsmith4321 https://github.com/rsmith4321 You could try installing the homebridge-dummy https://github.com/nfarina/homebridge-dummy plugin, create a dummy switch. Then create an automation that opens/closes the door when the dummy switch is turned on/off. I have not tried this don't know if it will work.

Changing our plugin to pretend that it is a regular switch instead of garage door is not simple and not wise. They are completely different accessory types in HomeKit, garage door has additional states that a switch or outlet does not have. As @jgstroud https://github.com/jgstroud states, we will not do this.

— Reply to this email directly, view it on GitHub https://github.com/ratgdo/homekit-ratgdo/issues/229#issuecomment-2323634777, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2Y5H63KKTZZCMD5HPXEMLZUPBNBAVCNFSM6AAAAABNPFS6P6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRTGYZTINZXG4 . You are receiving this because you were mentioned.Message ID: @.***>

jgstroud commented 2 months ago

I think the homebridge plugin already has this feature if you just switch to the esphome firmware.