Troubleshooting Sonoff ZBMINIL2: Peculiar Switching Behavior

Does the button lock on and off?

i.e. Button pushed and the contact is made and stays made.
Push button again and the contact is broken.

1 Like

First disconnect everything from S1 and S2 and test the switch operation.

1 Like

Each time the switch is switched (either on or off) it will change the on/off state of the module.

1 Like

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.

In that case I suggest you connect the button as per the diagram I posted above.

1 Like

I prefer the S1/S2 method also, but the device should work either way.

1 Like

@dylan.c @bobbles @user4286 thanks so much for your replies :pray: 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

2 Likes

Hi everyone,
I finally made it work :clap::clap::clap:
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.


The problem was that this Sonoff model doesn't work with buttons that don't stay in one position.

I'm very happy that it works.
If others are struggling, I hope this helps them.

Thank you all so much for your help :pray::pray::pray:
All the best
Yiannis

2 Likes

Edit: yes, it is a bit of a strange device... I will have to investigate what this "Switch Actions" configurable setting means :

Knockturn Alley :magic_wand:

================================================================================================
Node Descriptor

▸ 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%

Endpoint 0x01

Out Cluster: 0x0019 (OTA Upgrade Cluster)

▸ No generated commands

In Cluster: 0x0000 (Basic Cluster)

▸ 0x0000 | ZCL Version | req | r-- | uint8 | 08 = 8 | --
▸ 0x0004 | Manufacturer Name | opt | r-- | string | SONOFF | --
▸ 0x0005 | Model Identifier | opt | r-- | string | ZBMINIL2 | --
▸ 0x0006 | Date Code | req | r-- | string | 20230505 | --
▸ 0x0007 | Power Source | opt | r-- | enum8 | 00 = Unknown | --
▸ 0x4000 | SW Build ID | opt | r-- | string | 1.0.14 | --
▸ 0xFFFD | Cluster Revision | req | r-- | uint16 | 0003 = 3 | --

▸ 0x00 | Reset to Factory Defaults | opt

In Cluster: 0x0001 (Power Configuration Cluster)

▸ 0xFFFD | Cluster Revision | req | r-- | uint16 | 0002 = 2 | --

▸ No received commands

In Cluster: 0x0003 (Identify Cluster)

▸ 0x0000 | Identify Time | req | rw- | uint16 | 0000 = 0 seconds | --
▸ 0xFFFD | Cluster Revision | req | r-- | uint16 | 0002 = 2 | --

▸ 0x00 | Identify | req
▸ 0x01 | Identify Query | req

In Cluster: 0x0006 (On/Off Cluster)

▸ 0x0000 | On Off | req | r-p | bool | 00 = Off | 1..65534
▸ 0x4003 | Power On Behavior | opt | rw- | enum8 | -- | --
▸ 0xFFFD | Cluster Revision | req | r-- | uint16 | 0002 = 2 | --

▸ 0x00 | Off | req
▸ 0x01 | On | req
▸ 0x02 | Toggle | req

In Cluster: 0x0007 (On/Off Switch Configuration Cluster)

▸ 0x0000 | Switch Type | req | r-- | enum8 | 00 = Toggle | --
▸ 0x0010 | Switch Actions | req | rw- | enum8 | 00 = On | --
▸ 0xFFFD | Cluster Revision | req | r-- | uint16 | -- | --

▸ No received commands

In Cluster: 0x0B05 (Diagnostics Cluster)

▸ No attributes

▸ No received commands

In Cluster: 0xFC57 (Unknown Cluster)

▸ No attributes

▸ No received commands

Bindings Table

▸ Could not retrieve data

Neighbors Table

▸ Addr:DD08 | Type:Zigbee Router | RxOnWhenIdle:Yes | Rel:Parent | Permit Joining:Unknown | Depth:15

Routing Table

▸ Could not retrieve data

1 Like

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! :slight_smile:
Hope you find a solution easily. Keep us updated, @kkossev! :pray: :clap::clap::clap:"

1 Like