im having a bit of bother trying to control my garage door, ive watched dr zzs video (both of them) and made my own node mcu running tasmota.
i have the reed switch working so the open/closed state is fine and working great, but im having problems with the cmnd setting.
as my door needs 2 relays to operate the door, one triggers the open shutter and one operates the close.
on most garage lifters they only use one relay and its a toggle on / toggle off
mine pulses relay 2 for 0.5seconds to open the door and 0.5 seconds on relay1 to close the door.
problem im having with cover.yaml is that the state topic has to have power1 and power2 so i try to use a wildcard but its not allowed in the configuration.
platform: mqtt
name: âgarage roller doorâ
state_topic: âtele/garagedoor/SENSORâ
command_topic: âcmnd/garagedoor/+â (+ is a wildcard but it would usually say POWER here but i need POWER1 and POWER2)
availability_topic: âtele/garagedoor/LWTâ
qos: 1
payload_open: âONâ
payload_close: âOFFâ
payload_stop: ânaâ
state_open: â1â
state_closed: â0â
payload_available: âOnlineâ
payload_not_available: âOfflineâ
optomistic: false
retain: false
if anyone could help me out please as really struggling to make it open the door or close the door
i can trigger it using mqtt as a switch but i want it to work using the cover buttons
Could you use the ON topic for 1 relay and OFF topic for the other? Are you able to modify the Tasmota FW? I used to have an ESP on my garage door using MQTT to control, but havenât tried Tasmota for this (just relays for lights). I used the Wemos D1 mini with a relay shield and cobbled together code from various online sources. It worked well and I know it would work for multiple relays, but itâs not as simple as Tasmota. Have you looked into ESPhomeyaml? This might be able to do what you need.
Yes the payload is on for one relay but the other can be be quickly changed to on or off just a matter of moving one wire to the n/o or n/c on the relay
I had it as off as then I thought I could get the tasmota rules to make both relays spit out stat.garagedoor.POWER for each but it only seems to work for sensors
Iâll give the dummy mqtt messages a try tonight with some booleans, unless anyone has an easier way, itâs a shame I canât get a floating relay and have it either go to position 1 and then back to float or position 2 back to float.
There are 3 terminals in the roller door,
Common and then up and down you jumper between up and gnd or down and gnd I could use it on one relay and have itâs no state as open and nc and closed but that means if I was manually to press the up on the doors panel manually would it not get confused as the relay still in its closed position with the relay holding it Down
EDIT
One thing this does not handle is the coverâs stop command. I suggest setting its payload to OFF otherwise ânaâ will goof up the binary_sensor and automation.
Youâre right! I did some reading and Iâve revised the automation to use MQTT Trigger. This version monitors the MQTT topic directly and doesnât need the binary_sensor as a middleman.
I believe my suggestion has a flaw. If you reboot Home Assistant (or simply reload Automations) it may cause the âGarage Door Controllerâ to check the current state of home/garagedoor/command and act on it. I strongly recommend you include a âreboot/restartâ scenario in your testing! The last thing you want is this silly automation to open your garage door when Home Assistant restarts!
thanks i done the one you suggested above and its working great just had to make a few mods with the code and remove the quotes on the mqtt commands as they were being published along with them
That was literally the first automation Iâve ever built so it was bound to have some rough edges. Be sure to carry out the test I suggested (restart Home Assistant) to confirm the automation doesnât trigger the garage door.