Generic garage door controller, TuyaMCU relay with magnetic reed switch
“SwitchMode”:[4,1,0,0,0,0,0,0] could use inverted also.
To have POWER topic seperated to split out reed switch from relay results run the following commands (from https://groups.google.com/g/sonoffusers/c/wIjX2sWLJMU/m/CzXrzRNvCAAJ). Config might need to be adjusted to have LED work correctly. Don’t forget to adjust topics in the new rule to your configuration. https://tasmota.github.io/docs/Rules/#garage-door-opener has more discussion on required rules.
Backlog TuyaMCU 2, 101; TuyaMCU 11, 1; TuyaMCU 0, 7; Switchmode1 4 Switchmode2 1 Rule1 on switch2#state=1 do publish2 stat/SW_Garage/POWER2 Open endon on switch2#state=0 do publish2 stat/SW_Garage/POWER2 Closed endon Rule1 1
fnId=2 is set for dpId=101
fnId=11 is set for dpId=1
fnId=0 is set for dpId=7