Replies: 7 comments 7 replies
-
Hi @jig432 |
Beta Was this translation helpful? Give feedback.
-
with scripts you may use as many switches a the chip has gpios |
Beta Was this translation helpful? Give feedback.
-
yes only 1 parameter supported for subroutines i am aware that the documentation often lacks clarity |
Beta Was this translation helpful? Give feedback.
-
@jig432 |
Beta Was this translation helpful? Give feedback.
-
FYI, I have 10 gpios working, publishing mqtt status changes and HA config entries, via a script. Thanks for scripting support and for your help answering questions! |
Beta Was this translation helpful? Give feedback.
-
[9.2.0.5]Changed
|
Beta Was this translation helpful? Give feedback.
-
[9.2.0.6]Changed
|
Beta Was this translation helpful? Give feedback.
-
I'd like to be able to use an esp32 to monitor more than 8 (switch/button) inputs. Specifically I'd like 10, but it has plenty of pins that could be used as switches. I have a security system I want to monitor 10 zones. So far I am using a custom arduino image, but would like to gain all the advantages of using tasmota.
I naively tried to change MAX_SWITCHES to 10 and compile and that didn't boot. I browsed the code some, and saw an enum with entries for SET_SWITCH_TXTx (x=1-8) that likely would need to be adjusted. But in a quick browse didn't see anything else that jumped out as a problem. I suspect there are assumptions for at most 8 switches. I'm hoping someone more familiar with the code knows what the problem might be or where to look. Is this something that could be fairly easily fixed? Maybe with a new define to allow private compiles without burdening the standard images.
Beta Was this translation helpful? Give feedback.
All reactions