Hi,

I've written a small utility called slide-switch that translates slide switch position changes into normal button presses.

For devices with a (3-position) slide switch, for example the TP-Link TL-MR3020, the switch is usually represented as two push buttons. So a change to the switch position triggers either one or two button events, and finding the current position requires reading from two GPIOs.

Others have shared script snippets on this forum to handle this for specific devices, but I thought it was time to create a package that anyone can install and start using their slide switch without having to re-script the wheel.

I've combed the wiki for devices with a slide switch and have incorporated their details, but since I only have a TL-MR3020, I'm unable to verify that the package works correctly on those other devices. (I may also be missing devices that have a slide switch but aren't described in the wiki.)

Before submitting to the official package feed, I'd like to make sure the data is correct. So if you have a device with a slide switch, I'd really appreciate it if you can install the package and let me know if it works for you, either on this thread or on GitHub.

Supported devices: github.com/jefferyto/openwrt-slide-switch#supported-devices
Packages for CC 15.05.1: github.com/jefferyto/openwrt-slide-switch/releases/tag/0.9.0
(Not sure if these will install correctly on trunk; let me know if they don't.)

Thanks in advance!
Jeff