How to configure switch input?
Posted: 30 Oct 2017, 23:03
Hello all,
I've been using ESPEasy for a fair while now to gather data from a number of sensors. All my boards are running the latest prerelease of 2.0 and work like a charm, so I am a happy camper. There's just one thing I can't seem to get going: I want to use a momentary switch with ESP Easy.
I figured the standard switch input would suffice. I've tried a zillion of different configurations, yet to (almost) no avail. With R120 I can't get any results at all, with R210 I don't get any results. With 2.0 dev12 I sometimes get results
What I'm doing:
- Connect a switch between a GPIO and GND or 3.3V
- Configure the switch input as follows:
* Device = Switch input
* Delay = 1 (no effect on R120, seems to be a requirement for 2.0 to get any data over the line)
* IDX / Var = 1 (or something else, doesn't seem to do anything?)
* 1st GPIO: the GPIO my switch is connected to, tried a number of them
* Pull UP: tried both on and off, to no avail
* Inversed: tried both on and off
* Switch type: switch
* Switch button type: tried all options, used the low setting when connecting to GND, high when connected to 3.3V
* Send boot state: off (when turning it on, my MQTT broker receives a one-time push of the button)
* Send data: on
Am I missing something obvious here. I've tried a number of boards. I've made sure my MQTT connection is working. There's nothing interesting in the logs. Any help is greatly appreciated
I've been using ESPEasy for a fair while now to gather data from a number of sensors. All my boards are running the latest prerelease of 2.0 and work like a charm, so I am a happy camper. There's just one thing I can't seem to get going: I want to use a momentary switch with ESP Easy.
I figured the standard switch input would suffice. I've tried a zillion of different configurations, yet to (almost) no avail. With R120 I can't get any results at all, with R210 I don't get any results. With 2.0 dev12 I sometimes get results
What I'm doing:
- Connect a switch between a GPIO and GND or 3.3V
- Configure the switch input as follows:
* Device = Switch input
* Delay = 1 (no effect on R120, seems to be a requirement for 2.0 to get any data over the line)
* IDX / Var = 1 (or something else, doesn't seem to do anything?)
* 1st GPIO: the GPIO my switch is connected to, tried a number of them
* Pull UP: tried both on and off, to no avail
* Inversed: tried both on and off
* Switch type: switch
* Switch button type: tried all options, used the low setting when connecting to GND, high when connected to 3.3V
* Send boot state: off (when turning it on, my MQTT broker receives a one-time push of the button)
* Send data: on
Am I missing something obvious here. I've tried a number of boards. I've made sure my MQTT connection is working. There's nothing interesting in the logs. Any help is greatly appreciated
