Hi I am quite new to Tasmota and have a question regarding SwitchMode / SwitchTopic
What I would like to do is connect a reed switch to rx or tx, gpio 1 or gpio 3 on a sonoff s20 and send a mqtt message only (I do not want to activate the sonoff relay when the reed switch is activated/deactivated) I just want to to see a mqtt message in node-red when the state of say gpio 1 (or gpio 3) state changes.
is it possable ?
I am quite confused with the cmds SwitchMode and SwitchTopic as to which cmd I need to use, and if I would just short the relative gpio pin to ground when activating the reed switch or if I would need to use a resistor from one side of the reed switch to +ve like you would on a raspberry pi gpio
any help would be appreciated thanks