Shelly detached switch without tracking ON/OFF?

Hello. I have a Shelly 2.5.

I want to use one of the switches in detached mode for automations (single click, double click).

However, I have latching switches instead of momentary ones.

Also, the switch I want to use is a 2-way switch.

The problem I am having is that shelly.click is tracking the latching switch state, meaning that if one of the two way switches gets pushed once, then the Shelly registers it as a long press. The next single press of either of the two physical switches does nothing (as expected, the shelly thinks that the long press is over since the voltage drops to 0). Also, double clicking the switch in this state does not register as a single press only.

This is weird, but what I am looking for is a “detached edge” switch mode, which changes the state on every hit instead of reading the voltage.

Is there such an option or workaround anywhere?

You can’t use click events with latching switches unless you toggle them on then off. Is that what you are doing or are you expecting each change of state to to register as a click?

1 Like

I was expecting, or rather hoping, that each change of state registered as a click. Or at least, that there was a way to time out the long press and have the next switch state change (from ON to OFF) also register as a (second) long press.

So, the only solution is to use momentary switches? Is this something that Tasmota can do differently than the Shelly firmware?

Actually you might be able to overcome this by setting the button type to “edge”:

https://www.facebook.com/legacy/notes/2331082316991119/