zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

[NIKO 552-721X2] Double Connected Switch - Right actions not working in decoupled mode

Open nlspln opened this issue 11 months ago • 6 comments

What happened?

Since the update to Z2M 2.7.2, the Niko switch no longer sends an action on the right switch. Physically clicking the switch no longer does anything. I can still control the switch through Z2M and HASS.

What did you expect to happen?

I should be able to control the light using the physical switch and receive an action like single_right or hold_right

How to reproduce it (minimal and precise)

Update Z2M to 2.7.2. Set Niko switch in decoupled mode.

Zigbee2MQTT version

2.7.2-1

Adapter firmware version

20220219

Adapter

ZStack3x0

Setup

Addon on HASS running on a Proxmox VM.

Device database.db entry

0x0c4314fffedf7430

Debug log

45df7312_zigbee2mqtt_2026-01-03T10-24-06.584Z.log

Notes

Reverting back to 2.7.1 seems to resolve the issue.

nlspln avatar Jan 03 '26 10:01 nlspln

Related issue: https://github.com/Koenkk/zigbee2mqtt/issues/13737#issuecomment-3706929094

nlspln avatar Jan 03 '26 10:01 nlspln

Same as https://github.com/Koenkk/zigbee2mqtt/issues/30485

nlspln avatar Jan 05 '26 20:01 nlspln

Sorry, didn't see this issue, indeed created a duplicate.

peterverraedt avatar Jan 06 '26 08:01 peterverraedt

Observing this in the log: "payload":[{"attrId":2,"dataType":27,"attrData":16384}] but seeing this in ZHC niko.ts source (line 62): switchAction: {ID: 0x0002, type: Zcl.DataType.UINT8, write: true, max: 0xff}, I think it should be: switchAction: {ID: 0x0002, type: Zcl.DataType.UINT64, write: true, max: 0xffff}, instead. I tried this and then the 2nd channel actions work correctly.

vdkeybus avatar Jan 06 '26 10:01 vdkeybus

I realized that all integers are 10-based, not 16 (hex). Therefore type 27 is 0x1b and the type should be BITMAP32.

I adjusted and tested this and made a pull request.

vdkeybus avatar Jan 06 '26 12:01 vdkeybus

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

github-actions[bot] avatar Mar 08 '26 00:03 github-actions[bot]