argilo / secplus

A software implementation of the Security+ system used by garage door openers
GNU General Public License v3.0
247 stars 32 forks source link

status of garage door #11

Open apaperclip opened 1 year ago

apaperclip commented 1 year ago

I've been casually looking for a way to do local control of my liftmaster (security+ v2) for a while now. Today I use their wifi bridge and a myq account but I'd like to go local only. The one thing that's been holding me back is the state of the garage door. MyQ (and MyQ integration with Home Assistant) gives me open/opening, closed/closing states natively. Most if not all the alternatives use a switch or sensor to detect the angle, and while that would work, I am striving to do this first party from the opener since it already knows. I looked at their homekit option but but it seems that may require Internet as well, even if the communication is local, also those may be discontinued or on their way out.

I started researching again and came across this project as well as @PaulWieland 's ratgdo project and it looks like what I'm looking for maybe achievable. His project is compelling but it dawned on me, this info should be wirelessly transmitted as well, my wifi bridge somehow knows the state and is able to transmit it to the MyQ cloud offering. I'm not sure if there is a difference in how the bridge is paired and what info it receives wirelessly or if the current decodes in this project and rtl_433 just don't handle those bits yet. Does anyone have any thoughts on the state info being transmitted wirelessly?

I think my ideal situation would be to use my sdr to transmit to the garage to open/close and also know status to reporting back to Home Assistant. That may need some type of wrapper to present an api for tx/rx. In the long run ratgdo may make more sense/be more reliable, but in the meantime this is something I'd like to see if it is possible.

argilo commented 1 year ago

I don't have a WiFi bridge, and haven't investigated the opener's WiFi communication.

However, I have confirmed that the door status is transmitted in wireline packets. (Some details are here: https://github.com/argilo/secplus/issues/5#issuecomment-1373134404). So it should be possible for a device like ratgdo to receive the door status that way.