zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Niko 552-721X2 endpoint actions not working

Open sephiroth1395 opened this issue 4 years ago • 138 comments

What happened?

In both control_relay and decoupled modes, the actions remains null on both endpoints L1 and L2 when I activate the switches physically. When in control_relay mode, the relays do operate when pressing the button so I have every reason to believe the device is not broken. It is brand new.

I can see a single "single, hold or release" action exposed in Home Assistant at device level instead of the l1 and l2 endpoints.

What did you expect to happen?

See the single, hold and release actions exposed.

How to reproduce it (minimal and precise)

Push any switch of the device.

Zigbee2MQTT version

1.27.0

Adapter firmware version

20210708

Adapter

Sonoff USB Dongle

Debug log

No response

sephiroth1395 avatar Aug 28 '22 17:08 sephiroth1395

Is it just home assistant not seeing the actions because it might be looking in the wrong property, or are you not getting them via mqtt either?

sjorge avatar Aug 29 '22 10:08 sjorge

Okay, just had a better look at this to answer your question.

Current configuration of the device: { "linkquality": 60, "operation_mode": "decoupled", "operation_mode_l1_l1": "control_relay", "operation_mode_l2_l2": "decoupled", "state_l1": "OFF", "state_l2": "OFF" }

When pressing the left button, I see these events in the Z2M logs:

`Zigbee2MQTT:info 2022-08-30 11:40:52: MQTT publish: topic 'zigbee2mqtt/Interrupteurs toit cuisine', payload '{"action_l1":null,"action_l2":null,"linkquality":63,"operation_mode":"decoupled","operation_mode_l1":null,"operation_mode_l1_l1":"control_relay","operation_mode_l2":null,"operation_mode_l2_l2":"decoupled","state_l1":"ON","state_l2":"OFF"}'

Zigbee2MQTT:info 2022-08-30 11:40:54: MQTT publish: topic 'zigbee2mqtt/Interrupteurs toit cuisine', payload '{"action_l1":null,"action_l2":null,"linkquality":54,"operation_mode":"decoupled","operation_mode_l1":null,"operation_mode_l1_l1":"control_relay","operation_mode_l2":null,"operation_mode_l2_l2":"decoupled","state_l1":"OFF","state_l2":"OFF"}'

Zigbee2MQTT:info 2022-08-30 11:40:55: MQTT publish: topic 'zigbee2mqtt/Interrupteurs toit cuisine', payload '{"action_l1":null,"action_l2":null,"linkquality":63,"operation_mode":"decoupled","operation_mode_l1":null,"operation_mode_l1_l1":"control_relay","operation_mode_l2":null,"operation_mode_l2_l2":"decoupled","state_l1":"ON","state_l2":"OFF"}'

Zigbee2MQTT:info 2022-08-30 11:40:56: MQTT publish: topic 'zigbee2mqtt/Interrupteurs toit cuisine', payload '{"action_l1":null,"action_l2":null,"linkquality":60,"operation_mode":"decoupled","operation_mode_l1":null,"operation_mode_l1_l1":"control_relay","operation_mode_l2":null,"operation_mode_l2_l2":"decoupled","state_l1":"OFF","state_l2":"OFF"}'

You can see the action_l1 attribute remains to null. Z2M appears to see the relay event, but not the button click themselves.

What's even weirder is this. When I press the right button, I see these events in the Z2M log:

Zigbee2MQTT:info 2022-08-30 11:45:28: MQTT publish: topic 'zigbee2mqtt/Interrupteurs toit cuisine', payload '{"action_l1":null,"action_l2":null,"linkquality":27,"operation_mode":"decoupled","operation_mode_l1":null,"operation_mode_l1_l1":"control_relay","operation_mode_l2":null,"operation_mode_l2_l2":"decoupled","state_l1":"OFF","state_l2":"ON"}'

Zigbee2MQTT:info 2022-08-30 11:45:29: MQTT publish: topic 'zigbee2mqtt/Interrupteurs toit cuisine', payload '{"action_l1":null,"action_l2":null,"linkquality":33,"operation_mode":"decoupled","operation_mode_l1":null,"operation_mode_l1_l1":"control_relay","operation_mode_l2":null,"operation_mode_l2_l2":"decoupled","state_l1":"OFF","state_l2":"OFF"}'

The l2 state shouldn't change as it is in decoupled operation mode. I can confirm that the L2 relay DOES activate.

If you provide me directions I can provide other logs if it can help. I'm really at loss here.. I can't really tell if the device is doing something wrong or if it's a Z2M issue.

I bought this unit to have an outdoors dual Zigbee switch, by fitting it inside a Niko Hydro box. Really hope I can get this to work as there are not a ton of options here in Belgium for this use case.

sephiroth1395 avatar Aug 30 '22 09:08 sephiroth1395

Can you set the log level to debug and press the buttons again, that should show what the device is sending. And hopefully that is enough for me to figure out what is wrong. 🤞

I bought this unit to have an outdoors dual Zigbee switch, by fitting it inside a Niko Hydro box. Really hope I can get this to work as there are not a ton of options here in Belgium for this use case.

Yeah not much options, you got the generic TuYa stuff which I personally don't like, and well Ubisys ships to Belgium too. I love there stuff but rather expensive, especially compared to the Niko stuff. (Sadly the Niko stuff does not do binding which is a deal breaker for me personally).

sjorge avatar Aug 30 '22 09:08 sjorge

Starting from both relays off, nothing changed in the device config.

L1 button first press:

Zigbee2MQTT:debug 2022-08-30 13:48:56: Received Zigbee message from 'Interrupteurs toit cuisine', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0

Zigbee2MQTT:info 2022-08-30 13:48:56: MQTT publish: topic 'zigbee2mqtt/Interrupteurs toit cuisine', payload '{"action_l1":null,"action_l2":null,"linkquality":75,"operation_mode":"decoupled","operation_mode_l1":null,"operation_mode_l1_l1":"control_relay","operation_mode_l2":null,"operation_mode_l2_l2":"decoupled","state_l1":"ON","state_l2":"OFF"}'

L1 second press:

Zigbee2MQTT:debug 2022-08-30 13:50:35: Received Zigbee message from 'Interrupteurs toit cuisine', type 'attributeReport', cluster 'genOnOff', data '{"onOff":0}' from endpoint 1 with groupID 0

Zigbee2MQTT:info 2022-08-30 13:50:35: MQTT publish: topic 'zigbee2mqtt/Interrupteurs toit cuisine', payload '{"action_l1":null,"action_l2":null,"linkquality":54,"operation_mode":"decoupled","operation_mode_l1":null,"operation_mode_l1_l1":"control_relay","operation_mode_l2":null,"operation_mode_l2_l2":"decoupled","state_l1":"OFF","state_l2":"OFF"}'

L2 first press:

Zigbee2MQTT:debug 2022-08-30 13:51:49: Received Zigbee message from 'Interrupteurs toit cuisine', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 2 with groupID 0

Zigbee2MQTT:info 2022-08-30 13:51:49: MQTT publish: topic 'zigbee2mqtt/Interrupteurs toit cuisine', payload '{"action_l1":null,"action_l2":null,"linkquality":48,"operation_mode":"decoupled","operation_mode_l1":null,"operation_mode_l1_l1":"control_relay","operation_mode_l2":null,"operation_mode_l2_l2":"decoupled","state_l1":"OFF","state_l2":"ON"}'

L2 second press:

Zigbee2MQTT:debug 2022-08-30 13:52:15: Received Zigbee message from 'Interrupteurs toit cuisine', type 'attributeReport', cluster 'genOnOff', data '{"onOff":0}' from endpoint 2 with groupID 0

Zigbee2MQTT:info 2022-08-30 13:52:15: MQTT publish: topic 'zigbee2mqtt/Interrupteurs toit cuisine', payload '{"action_l1":null,"action_l2":null,"linkquality":30,"operation_mode":"decoupled","operation_mode_l1":null,"operation_mode_l1_l1":"control_relay","operation_mode_l2":null,"operation_mode_l2_l2":"decoupled","state_l1":"OFF","state_l2":"OFF"}'

I also looked into what the feedback is when I try to set the switch behaviour to decoupled, as obviously L2 behaves as control_relay although it is configured as decoupled.

Here is what I see in the debug logs :

Zigbee2MQTT:debug 2022-08-30 13:53:37: Received MQTT message on 'zigbee2mqtt/Interrupteurs toit cuisine/set' with data '{"operation_mode_l2":"decoupled"}'

Zigbee2MQTT:debug 2022-08-30 13:53:37: Publishing 'set' 'operation_mode' to 'Interrupteurs toit cuisine'

Zigbee2MQTT:info 2022-08-30 13:53:37: MQTT publish: topic 'zigbee2mqtt/Interrupteurs toit cuisine', payload '{"action_l1":null,"action_l2":null,"linkquality":36,"operation_mode":"decoupled","operation_mode_l1":null,"operation_mode_l1_l1":"control_relay","operation_mode_l2":null,"operation_mode_l2_l2":"decoupled","state_l1":"OFF","state_l2":"OFF"}'

When I do a get after that:

Zigbee2MQTT:debug 2022-08-30 13:54:32: Received MQTT message on 'zigbee2mqtt/Interrupteurs toit cuisine/get' with data '{"operation_mode_l2":""}'

Zigbee2MQTT:debug 2022-08-30 13:54:32: Publishing get 'get' 'operation_mode' to 'Interrupteurs toit cuisine'

Zigbee2MQTT:debug 2022-08-30 13:54:32: Received Zigbee message from 'Interrupteurs toit cuisine', type 'readResponse', cluster 'manuSpecificNiko1', data '{"switchOperationMode":1}' from endpoint 2 with groupID 0

Zigbee2MQTT:info 2022-08-30 13:54:32: MQTT publish: topic 'zigbee2mqtt/Interrupteurs toit cuisine', payload '{"action_l1":null,"action_l2":null,"linkquality":39,"operation_mode":"decoupled","operation_mode_l1":null,"operation_mode_l1_l1":"control_relay","operation_mode_l2":null,"operation_mode_l2_l2":"decoupled","state_l1":"OFF","state_l2":"OFF"}'

I'm not a Z2M expert, but I think the whole issue is excess/missing _l1 and _l2 things here and there. In particular, this:

"operation_mode_l2":null,"operation_mode_l2_l2":"decoupled"

Sounds extremely weird, and as control_relay is the default behaviour, I think it's our clue. I will be away from home for the coming 48 hours but happy to test any fix that might come up :)

sephiroth1395 avatar Aug 30 '22 11:08 sephiroth1395

Yes the double _l2_l2 and _l1_l1 are not correct for sure, but it at least looks to be reading the info from the correct endpoint.

https://github.com/Koenkk/zigbee-herdsman-converters/blob/5ad7be2d69f371b170b5b0741e98d2e4579ea255/devices/niko.js#L193-L221

Looks like I did set multiEndpoint correctly so as of now i am puzzled why it is not working. I think the actions are probably missing because the device never wrote the decoupled config for the 2nd endpoint correctly so it's not generating the actions, as I am still seeing the genOnOff reporting coming in.

Edit: https://github.com/Koenkk/zigbee-herdsman-converters/blob/5ad7be2d69f371b170b5b0741e98d2e4579ea255/devices/niko.js#L10-L22 https://github.com/Koenkk/zigbee-herdsman-converters/blob/5ad7be2d69f371b170b5b0741e98d2e4579ea255/devices/niko.js#L55-L72

@Koenkk I probably messed stuff on in these convertors, can you have I look? Probably something like this to fix? https://github.com/Koenkk/zigbee-herdsman-converters/compare/master...sjorge:zigbee-herdsman-converters:patch-2

@sephiroth1395 are you able to apply a diff to devices/niko.js and restart zigbee2mqtt to test?

sjorge avatar Aug 30 '22 12:08 sjorge

Not really how to do this with Z2M running as a HASS add-on.. Looking into it.

EDIT: Okay, got it. Forgot it was just old plain Docker. In some ways it appears to be better:

Zigbee2MQTT:debug 2022-08-30 14:39:45: Received Zigbee message from 'Interrupteurs toit cuisine', type 'attributeReport', cluster 'manuSpecificNiko2', data '{"switchAction":16}' from endpoint 1 with groupID 0

Zigbee2MQTT:info 2022-08-30 14:39:45: MQTT publish: topic 'zigbee2mqtt/Interrupteurs toit cuisine', payload '{"action":null,"action_l1":null,"action_l2":null,"linkquality":33,"operation_mode":"decoupled","operation_mode_l1":null,"operation_mode_l1_l1":"control_relay","operation_mode_l2":null,"operation_mode_l2_l2":"decoupled","state_l1":"OFF","state_l2":"OFF"}'

Zigbee2MQTT:debug 2022-08-30 14:39:46: Received Zigbee message from 'Interrupteurs toit cuisine', type 'attributeReport', cluster 'manuSpecificNiko2', data '{"switchAction":64}' from endpoint 1 with groupID 0

Zigbee2MQTT:info 2022-08-30 14:39:46: MQTT publish: topic 'zigbee2mqtt/Interrupteurs toit cuisine', payload '{"action":"single","action_l1":null,"action_l2":null,"linkquality":36,"operation_mode":"decoupled","operation_mode_l1":null,"operation_mode_l1_l1":"control_relay","operation_mode_l2":null,"operation_mode_l2_l2":"decoupled","state_l1":"OFF","state_l2":"OFF"}

Zigbee2MQTT:info 2022-08-30 14:39:46: MQTT publish: topic 'zigbee2mqtt/Interrupteurs toit cuisine', payload '{"action":"","action_l1":null,"action_l2":null,"linkquality":36,"operation_mode":"decoupled","operation_mode_l1":null,"operation_mode_l1_l1":"control_relay","operation_mode_l2":null,"operation_mode_l2_l2":"decoupled","state_l1":"OFF","state_l2":"OFF"}'

Zigbee2MQTT:info 2022-08-30 14:39:46: MQTT publish: topic 'zigbee2mqtt/Interrupteurs toit cuisine/action', payload 'single'

There is still a lot of confusion between general attributes, l1 and l2.

sephiroth1395 avatar Aug 30 '22 12:08 sephiroth1395

@sephiroth1395 issue should be fixed now, updated to the latest-dev, clear out data/state.json (or just operation_mode_l2_l2/operation_mode_l1_l1) and start z2m. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)

@sjorge for toZigbee converters, the endpoint is added by z2m thus it doesn't have to be added in the converter.

Koenkk avatar Aug 30 '22 15:08 Koenkk

@Koenkk ok so as my diff showed, I think this is also needed for the action one as you missed that.

sjorge avatar Aug 30 '22 15:08 sjorge

@sjorge that should be fine, this is a fromZigbee converter so no endpoint will appended twice.

Koenkk avatar Aug 31 '22 16:08 Koenkk

OK, lets wait until we hear back form sephiroth1395 then to make sure everything is working.

sjorge avatar Aug 31 '22 16:08 sjorge

Sorry for the late feedback. Life happened. I wasn't comfortable with switching to the dev branch, so I just fetched the niko.js file from master, cleaned state file and restarted Z2M.

It's better! The duplicate state is still there but so is the "normal" one:

{
    "linkquality": 90,
    "operation_mode": "decoupled",
    "operation_mode_l1": "decoupled",
    "operation_mode_l1_l1": "control_relay",
    "operation_mode_l2": "decoupled",
    "operation_mode_l2_l2": "decoupled",
    "state_l1": "OFF",
    "state_l2": "OFF",
    "action_l1": null,
    "action_l2": null
}

And it appears to be obeyed. The relays are indeed decoupled from the switches ! Changing the operation_mode to control_relay also works as intended.

What I'm still missing is actions. Things are still happening on a single action attribute, that appears when I press a button, instead on action_l1 and action_l2.

sephiroth1395 avatar Sep 06 '22 19:09 sephiroth1395

Can you try applying the additional change I had in my diff for the switch_action function?

https://github.com/Koenkk/zigbee-herdsman-converters/compare/master...sjorge:zigbee-herdsman-converters:patch-2

sjorge avatar Sep 06 '22 19:09 sjorge

No difference, but I noticed only the left (l1) button triggers events to HA. The second one, not so much.

sephiroth1395 avatar Sep 06 '22 19:09 sephiroth1395

Can you grab another debug log with both of l1 and l2 in decoupled mode when you click each of the buttons?

sjorge avatar Sep 06 '22 19:09 sjorge

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Oct 07 '22 00:10 github-actions[bot]

Hi all, I am having the same problem with these devices. Found this thread and so I tested now with the Edge build to see if there's improvement.

Symptoms (on edge build)

  • When at least 1 of the two switches is set as decoupled, neither physical button doesn't respond.
  • HASS shows Null as the status, I don't get a single, hold, and release action.
  • I can control the relays using z2m / HASS now, which wasn't the case with the stable build.

State (for reference)

{
    "linkquality": 127,
    "operation_mode": "control_relay",
    "operation_mode_l1": "decoupled",
    "operation_mode_l2": "decoupled",
    "state_l1": "OFF",
    "state_l2": "OFF",
    "action_l1": null,
    "action_l2": null,
    "action": ""
}

Debug logs

Below are the logs I get when pressing the physical switches. Both are set to decoupled mode:

Debug 2022-10-20 11:24:23Received Zigbee message from 'Living Room / Kitchen Lights', type 'attributeReport', cluster 'manuSpecificNiko2', data '{"switchAction":16}' from endpoint 1 with groupID 0
Info 2022-10-20 11:24:23MQTT publish: topic 'zigbee2mqtt/Living Room / Kitchen Lights', payload '{"action":null,"action_l1":null,"action_l2":null,"linkquality":120,"operation_mode":"control_relay","operation_mode_l1":"decoupled","operation_mode_l2":"decoupled","state_l1":"OFF","state_l2":"OFF"}'
Debug 2022-10-20 11:24:23Received Zigbee message from 'Living Room / Kitchen Lights', type 'attributeReport', cluster 'manuSpecificNiko2', data '{"switchAction":64}' from endpoint 1 with groupID 0
Info 2022-10-20 11:24:23MQTT publish: topic 'zigbee2mqtt/Living Room / Kitchen Lights', payload '{"action":"single","action_l1":null,"action_l2":null,"linkquality":120,"operation_mode":"control_relay","operation_mode_l1":"decoupled","operation_mode_l2":"decoupled","state_l1":"OFF","state_l2":"OFF"}'
Info 2022-10-20 11:24:23MQTT publish: topic 'zigbee2mqtt/Living Room / Kitchen Lights', payload '{"action":"","action_l1":null,"action_l2":null,"linkquality":120,"operation_mode":"control_relay","operation_mode_l1":"decoupled","operation_mode_l2":"decoupled","state_l1":"OFF","state_l2":"OFF"}'
Info 2022-10-20 11:24:23MQTT publish: topic 'zigbee2mqtt/Living Room / Kitchen Lights/action', payload 'single'
Debug 2022-10-20 11:24:24Received Zigbee message from 'Living Room / Kitchen Lights', type 'attributeReport', cluster 'manuSpecificNiko2', data '{"switchAction":4096}' from endpoint 1 with groupID 0
Info 2022-10-20 11:24:24MQTT publish: topic 'zigbee2mqtt/Living Room / Kitchen Lights', payload '{"action_l1":null,"action_l2":null,"linkquality":127,"operation_mode":"control_relay","operation_mode_l1":"decoupled","operation_mode_l2":"decoupled","state_l1":"OFF","state_l2":"OFF"}'
Debug 2022-10-20 11:24:24Received Zigbee message from 'Living Room / Kitchen Lights', type 'attributeReport', cluster 'manuSpecificNiko2', data '{"switchAction":16384}' from endpoint 1 with groupID 0
Info 2022-10-20 11:24:24MQTT publish: topic 'zigbee2mqtt/Living Room / Kitchen Lights', payload '{"action_l1":null,"action_l2":null,"linkquality":127,"operation_mode":"control_relay","operation_mode_l1":"decoupled","operation_mode_l2":"decoupled","state_l1":"OFF","state_l2":"OFF"}'

Hope this helps.

nlspln avatar Oct 20 '22 09:10 nlspln

I no longer have the dual rocker one so I can't double check myself, so some follow up questions:

  1. when setting to decoupled on operation_mode_l1, what does a /get for operation_mode_l2 return? Is it also updated to decoupled?

  2. can you post a debug log in decoupled mode while doing the following:

  • press left button
  • press and hold left button (5 sec or so should do fine I think)
  • press right button
  • press and hold right button (5sec or should should do)

The value in your snipper above for 4096 16384 are things I have not see with my brief time with the device, so it probably means I did not capture all the data correctly before I send it back. I only had like 3 days to poke and collect data.

My initial messing around (pre having any support) indicated that it should be possible to toggle the mode individually as the difference between single and dual seemed to be an extra endpoint mirroring all the clusters. This might have been wrong. Hopefully 1 above should that they are either in sync or not, if the former it's probably an all or nothing option.

That would also explain why all actions arrive on endpoint 1 even when using the other button. If that's the case the action map probably also needs to be extended. Currently it is:

const actionMap = {16: null, 64: 'single', 32: 'hold', 48: 'release'};

But it might be that there is another set of 4 values for the 2nd button.

sjorge avatar Oct 29 '22 11:10 sjorge

  1. when setting to decoupled on operation_mode_l1, what does a /get for operation_mode_l2 return? Is it also updated to decoupled?

These are the logs after setting operation_mode_l1 to decoupled and pressing the physical button for L2:

Debug 2022-10-31 07:13:59Received Zigbee message from 'Living Room / Kitchen Lights', type 'attributeReport', cluster 'manuSpecificNiko2', data '{"switchAction":4096}' from endpoint 1 with groupID 0
Info 2022-10-31 07:13:59MQTT publish: topic 'zigbee2mqtt/Living Room / Kitchen Lights', payload '{"action_l1":null,"action_l2":null,"linkquality":76,"operation_mode":"control_relay","operation_mode_l1":"decoupled","operation_mode_l2":"control_relay","state_l1":"ON","state_l2":"OFF"}'
Debug 2022-10-31 07:13:59Received Zigbee message from 'Living Room / Kitchen Lights', type 'attributeReport', cluster 'manuSpecificNiko2', data '{"switchAction":16384}' from endpoint 1 with groupID 0
Info 2022-10-31 07:13:59MQTT publish: topic 'zigbee2mqtt/Living Room / Kitchen Lights', payload '{"action_l1":null,"action_l2":null,"linkquality":72,"operation_mode":"control_relay","operation_mode_l1":"decoupled","operation_mode_l2":"control_relay","state_l1":"ON","state_l2":"OFF"}'
Debug 2022-10-31 07:13:59Received Zigbee message from 'Master Bedroom Heater', type 'attributeReport', cluster 'seMetering', data '{"currentSummDelivered":[0,1223362]}' from endpoint 1 with groupID 0
Info 2022-10-31 07:13:59MQTT publish: topic 'zigbee2mqtt/Master Bedroom Heater', payload '{"child_lock":"LOCK","current":0,"energy":122.34,"led_enable":true,"linkquality":87,"power":0,"state":"OFF","voltage":230.4}'
Debug 2022-10-31 07:13:59Received Zigbee message from 'Living Room / Kitchen Lights', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
Info 2022-10-31 07:13:59MQTT publish: topic 'zigbee2mqtt/Living Room / Kitchen Lights', payload '{"action_l1":null,"action_l2":null,"linkquality":51,"operation_mode":"control_relay","operation_mode_l1":"decoupled","operation_mode_l2":"control_relay","state_l1":"ON","state_l2":"OFF"}'
  1. can you post a debug log in decoupled mode while doing the following:
  • press left button
  • press and hold left button (5 sec or so should do fine I think)
  • press right button
  • press and hold right button (5sec or should should do) Left button (L1 & L2 decoupled)
Debug 2022-10-31 07:16:34Received Zigbee message from 'Living Room / Kitchen Lights', type 'attributeReport', cluster 'manuSpecificNiko2', data '{"switchAction":16}' from endpoint 1 with groupID 0
Info 2022-10-31 07:16:34MQTT publish: topic 'zigbee2mqtt/Living Room / Kitchen Lights', payload '{"action":null,"action_l1":null,"action_l2":null,"linkquality":94,"operation_mode":"control_relay","operation_mode_l1":"decoupled","operation_mode_l2":"control_relay","state_l1":"ON","state_l2":"OFF"}'
Debug 2022-10-31 07:16:35Received Zigbee message from 'Living Room / Kitchen Lights', type 'attributeReport', cluster 'manuSpecificNiko2', data '{"switchAction":32}' from endpoint 1 with groupID 0
Info 2022-10-31 07:16:35MQTT publish: topic 'zigbee2mqtt/Living Room / Kitchen Lights', payload '{"action":"hold","action_l1":null,"action_l2":null,"linkquality":91,"operation_mode":"control_relay","operation_mode_l1":"decoupled","operation_mode_l2":"control_relay","state_l1":"ON","state_l2":"OFF"}'
Info 2022-10-31 07:16:35MQTT publish: topic 'zigbee2mqtt/Living Room / Kitchen Lights', payload '{"action":"","action_l1":null,"action_l2":null,"linkquality":91,"operation_mode":"control_relay","operation_mode_l1":"decoupled","operation_mode_l2":"control_relay","state_l1":"ON","state_l2":"OFF"}'
Info 2022-10-31 07:16:35MQTT publish: topic 'zigbee2mqtt/Living Room / Kitchen Lights/action', payload 'hold'
Debug 2022-10-31 07:16:38Received Zigbee message from 'Living Room / Kitchen Lights', type 'attributeReport', cluster 'manuSpecificNiko2', data '{"switchAction":48}' from endpoint 1 with groupID 0
Info 2022-10-31 07:16:38MQTT publish: topic 'zigbee2mqtt/Living Room / Kitchen Lights', payload '{"action":"release","action_l1":null,"action_l2":null,"linkquality":91,"operation_mode":"control_relay","operation_mode_l1":"decoupled","operation_mode_l2":"control_relay","state_l1":"ON","state_l2":"OFF"}'
Info 2022-10-31 07:16:38MQTT publish: topic 'zigbee2mqtt/Living Room / Kitchen Lights', payload '{"action":"","action_l1":null,"action_l2":null,"linkquality":91,"operation_mode":"control_relay","operation_mode_l1":"decoupled","operation_mode_l2":"control_relay","state_l1":"ON","state_l2":"OFF"}'
Info 2022-10-31 07:16:38MQTT publish: topic 'zigbee2mqtt/Living Room / Kitchen Lights/action', payload 'release'

Right button (L2 & L1 decoupled)

Debug 2022-10-31 07:18:41Received Zigbee message from 'Living Room / Kitchen Lights', type 'attributeReport', cluster 'manuSpecificNiko2', data '{"switchAction":4096}' from endpoint 1 with groupID 0
Info 2022-10-31 07:18:41MQTT publish: topic 'zigbee2mqtt/Living Room / Kitchen Lights', payload '{"action_l1":null,"action_l2":null,"linkquality":40,"operation_mode":"control_relay","operation_mode_l1":"decoupled","operation_mode_l2":"decoupled","state_l1":"ON","state_l2":"OFF"}'
Debug 2022-10-31 07:18:42Received Zigbee message from 'Living Room / Kitchen Lights', type 'attributeReport', cluster 'manuSpecificNiko2', data '{"switchAction":8192}' from endpoint 1 with groupID 0
Info 2022-10-31 07:18:42MQTT publish: topic 'zigbee2mqtt/Living Room / Kitchen Lights', payload '{"action_l1":null,"action_l2":null,"linkquality":29,"operation_mode":"control_relay","operation_mode_l1":"decoupled","operation_mode_l2":"decoupled","state_l1":"ON","state_l2":"OFF"}'
Debug 2022-10-31 07:18:45Received Zigbee message from 'Living Room / Kitchen Lights', type 'attributeReport', cluster 'manuSpecificNiko2', data '{"switchAction":12288}' from endpoint 1 with groupID 0
Info 2022-10-31 07:18:45MQTT publish: topic 'zigbee2mqtt/Living Room / Kitchen Lights', payload '{"action_l1":null,"action_l2":null,"linkquality":61,"operation_mode":"control_relay","operation_mode_l1":"decoupled","operation_mode_l2":"decoupled","state_l1":"ON","state_l2":"OFF"}'

Right button (L1 decoupled, L2 control_relay)

Debug 2022-10-31 07:31:20Received Zigbee message from 'Living Room / Kitchen Lights', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 2 with groupID 0
Info 2022-10-31 07:31:20MQTT publish: topic 'zigbee2mqtt/Living Room / Kitchen Lights', payload '{"action_l1":null,"action_l2":null,"linkquality":83,"operation_mode":"control_relay","operation_mode_l1":"decoupled","operation_mode_l2":"control_relay","state_l1":"ON","state_l2":"ON"}'

Hope this helps

nlspln avatar Oct 31 '22 11:10 nlspln

Hello, I am also struggling with this double Niko switch and recognize the problems described in this topic. I want to use it in decoupled mode and detect the individual switches. Not sure if I can help in debugging as I am not that acquainted with github and install a beta version to do some testing. Nevertheless, if I can do a test with the released version then let me know.

Herwigvd avatar Nov 01 '22 18:11 Herwigvd

I'm having the same problem. When the switches are set to decoupled, neither action is recognized.

aocaoc avatar Dec 19 '22 12:12 aocaoc