I have a Shelly Wave Dimmer connected to dimmable lights for control. There are two physical switches wired to the relay — the first one controls these lights directly, and the second one I’d like to use to control other smart lights that are not physically connected to the dimmer.
My problem is that I can’t get a proper output reading from the second switch when it’s in detached mode. In Home Assistant, I only see a state change when the switch is turned on (up position).
For example:
When the physical switch is in the off position, the switch state in HA is also off. When I flip the switch up, the state correctly changes to on. However, when I flip it back down to off, the state doesn’t update — it stays on until I flip the switch up again, at which point it changes to off.
Can anyone tell me how to properly read the switch state in this configuration?
I’m using Z-Wave JS UI to connect the relay to Home Assistant, with the switch type set to Follow switch (see attached image).
SW1 and SW1 switch type parameters both need to be set to [2] rather than [1]. That should toggle both each time the switch changes position. Otherwise they operate as two separate push button latching switches (Flip the switch up → SW1 toggles On, flip the switch down SW2 toggles On, flip the switch back up again → SW1 toggles Off, flip the switch back down again SW2-> toggles off, repeat, repeat). If you set those first two parameters to [2] it should behave the way you want (flip the switch up → Toggles SW1 On and SW2 Off, flip the switch down → Toggles SW1 Off and SW2 On)
Thank you for your reply.
I tried your suggestion, but the switch still behaves the same way.
Let me explain my configuration in more detail, as I think there might have been a misunderstanding.
I’ve added a photo with a wiring diagram to help you (and others) better understand my setup.
SW1 is working correctly in non-detached mode.
When the switch is in the UP position, the lights turn ON, and when it’s in the DOWN position, they turn OFF — this works when the SW1 switch type parameter is set to [1].
If I set SW1 switch type to [2], then the lights toggle every time the switch is flipped (it can turn the lights ON even when flipped DOWN).
SW2 is set to detached mode.
It reports a change in value only when the switch is flipped UP.
This happens regardless of whether SW2 switch type is set to [1] or [2].
When output 2 (O2) is not in detached mode or the SW2 switch type is set to [0], the second switch does not report any physical change at all.
I found the solution myself.
I set the SW2 Switch Type parameter to [0] Momentary switch. With this setting, when I press the switch up, Scene 02 changes to KeyPressedDown for a few seconds, and when I press it down, Scene 02 changes to KeyReleased.