Specific question about Sonoff 4ch Pro - adding an external switch #23109
Unanswered
fdemees
asked this question in
Support request
Replies: 1 comment
-
You should not skip numbers when assigning gpio components, but start with 1 and increment with each occurrence of the same type. The numbers are only for ordering, not for you to plan a numbering scheme. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear Community,
I have a good old Sonoff 4ch Pro with all 4 outlets used and the corresponding buttons associated to their relative outlet.
I would like to add an additional input switch (a reed contact for a door sensor) using a free GPIO, not interfering with the existing 4 circuits.
In Tasmota I have declared the device as a 4Ch Pro, module type=23.
In addition I have declared GPIO3 (Serial In) as "Switch8" , hoping to connect my switch to the Rx pin.
I have read here an there that I have to disable the serial console
22:29:03 CMD: seriallog
22:29:03 MQT: stat/sonoff5/RESULT = {"SerialLog":"0 (Active 0)"}
The problem is that it toggles relay1. This is documented.
I have read discussion #8302 and https://tasmota.github.io/docs/Buttons-and-Switches/#switchmode
I have tried the following command
22:44:57 CMD: switchmode8 15
22:44:57 MQT: stat/sonoff5/RESULT = {"SwitchMode8":0}
in order to decouple Switch8 from Relay1.
It does not work as expected. Relay1 is still triggered.
Should I declare the device as a Sonoff Basic and declare all the GPIO ?
Or add a rule as explained in #3166 ?
Thank you for your expertise.
Additional documentation:
Beta Was this translation helpful? Give feedback.
All reactions