Yes exactly. If clicked once it's on and stays on. Then once clicked again it's off and stays off. With a relay like that I can have more than one switches on several buildings for the same light.
@dylan.c@bobbles@user4286 thanks so much for your replies I can't manage to make it work. The reason is because I have two buttons and the cabling is a bit complicated. I tried everything and burned two mini sonoff. I will do some changes and will come back again with the results.
Sorry for the late reply.
Thanks so much for trying to help me. I really appreciate that.
All the best to you all
Yiannis
Hi everyone,
I finally made it work
I had to put the Sonoff Zigbee in the electrical panel.
The connection is pretty complicated. I connected the red phase of the Sonoff to the IN and to one of the circuit breakers, the lamp's return wire to the OUT position, the black wire from the button to the relay's circuit breaker, and then behind the button relay's circuit breaker, I connected it to the S2 position.
▸ Logical Type = Zigbee End Device (ZED)
▸ Complex Descriptor Available = No
▸ User Descriptor Available = No
▸ Fragmentation Supported (R23) = No
▸ Frequency Band = Reserved
▸ Alternate PAN Coordinator = No
▸ Device Type = Reduced Function Device (RFD)
▸ Mains Power Source = No
▸ Receiver On When Idle = No (conserve power during idle periods)
▸ Security Capability = No
▸ Allocate Address = Yes
▸ Manufacturer Code = 0x1286 = SHENZHEN_COOLKIT
▸ Maximum Buffer Size = 82 bytes
▸ Maximum Incoming Transfer Size = 1024 bytes
▸ Primary Trust Center = No
▸ Backup Trust Center = No
▸ Primary Binding Table Cache = Yes
▸ Backup Binding Table Cache = No
▸ Primary Discovery Cache = Yes
▸ Backup Discovery Cache = Yes
▸ Network Manager = Yes
▸ Maximum Outgoing Transfer Size = 1024 bytes
▸ Extended Active Endpoint List Available = No
▸ Extended Simple Descriptor List Available = No
Power Descriptor
▸ Current Power Mode = Same as "Receiver On When Idle" from "Node Descriptor" section above
▸ Available Power Sources = [Constant (mains) power]
▸ Current Power Sources = [Constant (mains) power]
▸ Current Power Source Level = 100%
It has to be something like that. Normally, switches like that offer different options in their app to use with a push-button switch or a simple switch.
I found the solution, but only after days of trying with my electrician friend. Without him, I wouldn't have been able to do anything. However, there should be a simpler solution directly available from the switch's options.
So great that you want to investigate further!
Hope you find a solution easily. Keep us updated, @kkossev! "