I would like to share with you a little project in which I connected our electric garage door opener to Openhab 5, using a small WIFI-enabled device that is compatible with Tuya, and in result also with Openhab. The device is a SH128-W, which will currently only set you back 15 EUR! It is simple to connect to your garage door opener (only two wires), comes with WiFi and bluetooth (for configuration), a 220V plug and a reed contact to measure the door status. The package comes with all sorts of fastening material.
Installation
Installation was simple: just connect the two switch wires to the proper sockets of my Novoferm/Novoport unit. Then glue the SH128-W to the unit using the provided glue strip. Plug the SH128-W into the power socket and use the builtin button to try it out. Worked at first attempt.
Next I added the SH128-W to the Tuya app. Downloaded the app, added an account, and held the button on the SH128-W until it went in discovery mode. The device was discovered at once. I then entered Wifi data into the app. Setup complete. I was instantly able to open/close the door from the App.
Next I just still fixed the reed contact to the door. I could instantly see the status changing in the Tuya App.
Openhab Configuration
So far so good, if it was not for Openhab I would be done now. The Tuya binding works only with OH5, so I first upgraded to the version, then installed the binding. To set the binding up, you need to follow the binding’s manual meticulously - it took a few minutes but it worked for me. Then next, I created an appropriate Tuya Cloud Project “Thing” in OH, using the UI. That immediately went online. The binding supports discovery, so now it was easy to add a Thing for my garage door to OH as well. Next, I created and connected two Switch items, one for status and one for opening/closing:
And that’s it! Just configured things the way I wanted in the MainUI and now I am able to see the door status and also open/close at my convenience. Next I still plan to set up a rule that notifies me if the door remains open at evening.
I find it to be a nice, relatively simple and clean solution, and a really cheap one at that.



