[SOLVED] Dry contact switch items in OH2

doesn’t exist…in the sonoff gpio2 settings

OK, send the following command
topic:stat/gate/gpio2 payload:16

and now:
topic:stat/gate/gpio
What the reply?

Says gpio2 is switch1

Sorry on the garage PC njow
9:09:15 CMD: topic:stat/gate/gpio2 payload:16
19:09:15 MQT: stat/gate/RESULT = {“GPIO1”:“0 (None)”,“GPIO2”:“9 (Switch1)”,“GPIO3”:“0 (None)”}

The button4 is taken by GPIO14
We’ll try to disconnect them and then assign button4 to GPIO2

topic:stat/gate/gpio14 payload:0
topic:stat/gate/gpio2 payload:16
topic:stat/gate/gpio

19:16:10 CMD: topic:stat/gate/gpio14 payload:0
19:16:10 MQT: stat/gate/RESULT = {“GPIO1”:“0 (None)”,“GPIO2”:“9 (Switch1)”,“GPIO3”:“0 (None)”}
19:16:18 CMD: topic:stat/gate/gpio2 payload:16
19:16:18 MQT: stat/gate/RESULT = {“GPIO1”:“0 (None)”,“GPIO2”:“9 (Switch1)”,“GPIO3”:“0 (None)”}
19:16:25 CMD: topic:stat/gate/gpio
19:16:25 MQT: stat/gate/RESULT = {“GPIO1”:“0 (None)”,“GPIO2”:“9 (Switch1)”,“GPIO3”:“0 (None)”}

Button4 isnt visible still

Sorry bit stuck there…
What are the options for GPIO2?

With the GPIO2 set to switch1, what happens when you connect GPIO2 with ground?

The same as what it did before, it triggers the door and it opens slightly. Ie like 15 inches.

Not fully and not half (like its usual settings)

No, sorry, Disconnect from the gate and connect a wire between ground and GPIO2, what happens in MQTT?

nothing at all. Im using a jumper between the GND pin on this board and the TOP pin on the header

Mmmmhhh…
topic:stat/gate/gpio14 payload:0
reboot tasmotta
What options have you got for GPIO2 now?

lol! nothing for button4 :smiley:

What happens when you press button 4 now?
I mean the actual button on the board

led flashed
19:34:27 MQT: stat/gate/RESULT = {“POWER4”:“ON”}
19:34:27 MQT: stat/gate/POWER4 = ON
19:34:28 MQT: stat/gate/RESULT = {“POWER4”:“OFF”}
19:34:29 MQT: stat/gate/POWER4 = OFF

stat/gate/switchmode1

19:40:18 CMD: stat/gate/switchmode1
19:40:18 MQT: stat/gate/RESULT = {“SwitchMode1”:0}

topic:stat/gate/switchmode1 payload:1

Now connect between gnd and GPIO2