I.e. I just want to stuff this thing in a wallbox and connect a Jung pulse/momentary switch to it, and then setup an automation in HA to kill all the lights when the switch is pressed.
I think it should work, but all samples on the internet include a light being connected to the wiring as well.
you need to add a small load on it, with no bulb or load it won’t work as it need to leak some small amount of current toward the neutral of the load, as itself the relay is without neutral.
If no neutral + live wire no power from the mains.
I personally don’t understand why you would use that relay to trigger an automation, why not a zigbee button? Devices ZigBee2MQTT
To your second point, I want to use a regular JUNG button that fits in my wallbox to function as a button. All the Z2M buttons in the link you posted don’t seem to facilitate that function. Do you get my point?
understood.
So if you don’t have neutral in the box behind the Jung switch I have no suggestion for ready made consumer devices.
I am unsure but Wall switch module from Philips HUE might work as you wish.
Is battery powered and you just need to trigger it.
The idea would be add it to the switch and then detect the status change in HA to trigger automation/scene to switch off all lights.
If you have a momentary switch you may want to take the wiring somewhere else were the neutral is available and put a small load on the relay installed remotely.
If you have neutral in the box you may want to try Sonoff ZBMiniR2 this should work or other similar device.
hope it helps
I just realized, there’s a 230v outlet next to the button, so there is a neutral wire there. Just need to find a suitable resistor than to simulate a light bulb inside the wallbox, is that correct?
Thanks so much for all the help!
Though reading the topic you referenced, seems like that is a more elegant solution, though a bit pricier.
However, the hue switch is battery powered which means you’ll have to open the wallbox every now and then… hmm.
well, ideally yes.
A resistor is not really the best thing for 110/240VAC it should be capable of heat dissipation in order to ensure it does not burn.
I would suggest a 0.1/0.2 uf 400V AC capacitor. Well isolated and take care of polarity if applicable.
At this point is at your own risk, I am suggesting to make a long test on the bench of this solution because it can have downside that at the moment I can’t see.
Before powering make sure everything is correct, capacitor may explode or you can make the board smoke.
Ah and make sure to change the mode of the ZBMINIL2 because as factory setting it is expecting a rocker switch (ON/OFF) not button, in the manual there is the procedure.
I believe somewhere there is a more safe and smart way of doing it but neither you or me we found it
Thanks for all your input. I carefully slept on your words for 2 nights and figured it was not worth the risk, not to myself but even more so not to my neighbours (in a large flat), to stuff a capacitor into a wallbox where it can’t be seen. I found out there’s an alternative to the Philips Hue Wall Switch module, namely the Sonoff S-Mate 2 which should give a multi-year battery life with Zigbee 3.0 and is much fairer priced than the Philips option (only 10 euro).
Yes true, but it is Matter over wifi so it does not require extra hardware on the HA server, only the Matter integration. I’ll post my results back here.