Using Input 1 & 2 as Outputs to Operate Garage Door Bolt

Hello,

I am looking to use “Input 1” and “Input 2” on the Konnected Blaq as outputs to provide 3.3v signals to an H-Bridge motor controller to lock and unlock an electric garage door bolt.

In theory, I would like to use status of the garage door (closed, opening, etc.) to set “Input 1” and “Input 2” (GPIO5 and GPIO9) high (3.3v logic voltage) to actuate other devices. In my case that would be a garage door electric bolt, operated by setting “Input 1” and “Input 2” high/low to control an H-Bridge motor controller.

The bolt I am using is a GENIE 41149R Garage Door Power Lock. It has two terminals, which open and close the bolt when 12v is applied. Positive voltage to one terminal (negative to the other) opens the bolt. Reversing the polarity closes the bolt. The bolt doesn’t require power to stay open or closed. Specs indicate 0.7A draw to open or close, but it draws slightly less than that when tested.

The motor controller I will be using is a TB6612. It will perform the function of reversing the polarity. It handles motor voltages from 2.5V to 13.5V and logic voltages from 2.7V to 5.5V and can deliver up to 1.2A continuous and 3A peak current per channel. It’s a dual channel H-Bridge, but I’ll only be using one channel. It will be powered by a buck converter (12v to 5v), which will piggyback off the 12v from the Blaq using the two screw terminals on the Blaq. The 12v from the Blaq will also provide the motor voltage to actuate the electric bolt. I plan on using a 2A 12v AC adapter rather than the 1A provided with the Blaq to ensure the amperage drawn by the bolt does not cause deleterious fluctuations in the power supplied to the Blaq.

When status of the garage door changes to “Opening”, I would like to set “Input 1” high (3.3v) and “Input 2” low for 1s to open the bolt. After 1s both pins would be set low.

When the garage door is “Closed” (not “Closing”) I would like to set “Input 2” high (3.3v) and “Input 1” low for 1s to close the bolt. Again, after 1s both pins would be set low.

I am using Home Assistant, with ESPHome and ESPHome Builder and have moderate knowledge/experience using ESPHome builder to control ESP32 devices through Home Assistant.

What I’m looking for is where (what module(s)/sections of YAML) the status conditions are set by the Blaq and sent to Home Assistant for reporting (as sensor output). This is where I’m thinking of adding the code to set the “Input” pins high/low. Also if there is anything I’m missing that must also be included in the code (bolt status, maybe?).

Any help would be greatly appreciated!

Carl