Hello all. I have a gate that I’m trying to control through home assistant. It seems simple as all I have to do is jump pin 4 to pin 5 on the board my Topens gate opener. I can confirm this by using a simple jumper wire and I can manually control the gate without using a remote.
I’m trying to use an ATOM Lite as a simple switch. I’m not sure if I need an Active Low Switch or a Momentary Switch or Binary Sensor. I’m no programmer. I’ve spent some time reading over the info on ESPHome website and the more I read the more confused I get. I’m hoping to get a little guidance in either reference material or if someone can help with my YAML file. I found a sample code that I have compiled and loaded. The problem is the GPIO I chose (tried a few) is ALWAYS grounded, not activated by command. Here is the current code I found on the ESPHome website that references a gate opener.
Thank you for the response. Just so I’m on the same page I’m only trying to trigger the GPIO remotely. I’m not trying to use the dedicated button on the ATOM Lite. Do you think it’s a driver issue hence the recommendation to add the included adc driver to Home Assistant? I thought it was just an incorrect YAML for the switch. Thanks again.
In English “switch” has more than one meaning. In esphome switch usually means a GPIO output that you can control from HA that would typically turn on/off something.
You have a gate opener. You did not state if it was the remote or the actual opener. You have verified that you can achieve what you want with a simple wire. To achieve exactly that with esphome you need a physical relay to go with the GPIO output you have setup. They make relay boards that make it easy, or you need more circuitry to drive the relay.
If you have measured the voltages on the gate opener (at the two points that you need to short) you might be able to eliminate the relay and drive the pin directly. An optoisolator is another (probably better) choice. It all depends on the circuit you are trying to control.