I currently have (had) a very neat functioning number of automations using ESP8266’s (about 26 of them) but something has gone wrong with my network/wifi/ESP8266/MQTT/Tasmota. Not sure what.
We have a gate about a mile away from our house, we cannot visibly see the gate from our house.
One of the critical automations I have been using for the last few years is that guests can send a text to a number, that gets picked up via webhook in Home Assistant, and it tells an ESP8266 to close a relay for 1 second (An automation repeats this every few seconds) that triggers a Garage-Door opener that causes the gate to open.
This has been a great success with our friends, and has a very high WAF.
With the ESP8266’s going haywire, this automation has stopped working.
I would like to be able to directly control the relay via USB from the Home Assistant Blue. I haven’t really found a way yet of having a USB connected relay be controlled via HASS while directly connected to Home Assistant Blue.
I didn’t use the USB device - I used an ESP32 (ETH-01 Model) to trigger the relay.
Hardest part was finding and installing the specific firmware on this device as you need a very specific compiled version of Tasmota to make it work with the Ethernet Cable.
Using the jumpers on the board, I hooked it up to a 2 channel relay board - mostly because its what I have on hand. I don’t actually need the 2 channels.
Something like this:
I then hooked up USB power to “pretend” to be an CR2032 battery. This powers the garage door opener that triggers the gate.
Finally, I soldered wires to the garage door opener switch, so that the relay triggers the switch on the opener.
When you tell home assistant to open the gate, it closes the relay 10 times (1 second each) in a 30 second window to ensure that the signal reaches the gate.
I even did a further automation with Twilio so you can text a cell number and it tells Home Assistant to open the gate.
I had more detailed specifics of the plans, but I can’t find them at the moment.