Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scene_remove_all fails with "Error: undefined is not a object, got undefined (undefined)" #26599

Closed
jpg0 opened this issue Mar 4, 2025 · 2 comments
Labels
problem Something isn't working

Comments

@jpg0
Copy link

jpg0 commented Mar 4, 2025

What happened?

I attemped to remove all scenes from a group, using the "scene_remove_all" command (same behaviour if triggered from the frontend). The command always fails.

What did you expect to happen?

Command success, scenes removed.

How to reproduce it (minimal and precise)

Add some scenes to a group, they try to remove them all (not individually, that works).

Zigbee2MQTT version

1.41.0 commit: cc31cea

Adapter firmware version

20240710

Adapter

Slaesh's CC2652RB stick

Setup

Docker on Odroid N2+

Debug log

[2025-03-04 15:06:54] debug: z2m:mqtt: Received MQTT message on 'z2m1/zgDefaultColorLights1ZG/set' with data '{"scene_remove_all": ""}'
[2025-03-04 15:06:54] debug: z2m: Publishing 'set' 'scene_remove_all' to 'zgDefaultColorLights1ZG'
[2025-03-04 15:06:54] debug: zh:controller:group: Command 6 genScenes.removeAll({"groupid":6})
[2025-03-04 15:06:54] debug: zh:zstack:znp: --> SREQ: AF - dataRequestExt - {"dstaddrmode":1,"dstaddr":"0x0000000000000006","destendpoint":255,
"dstpanid":0,"srcendpoint":1,"clusterid":5,"transid":109,"options":0,"radius":30,"len":5,"data":{"type":"Buffer","data":[17,239,3,6,0]}}
[2025-03-04 15:06:54] debug: zh:zstack:unpi:writer: --> frame [254,25,36,2,1,6,0,0,0,0,0,0,0,255,0,0,1,5,0,109,0,30,5,0,17,239,3,6,0,78]
[2025-03-04 15:06:54] debug: zh:zstack:unpi:parser: <-- [254,1,100,2,0,103]
[2025-03-04 15:06:54] debug: zh:zstack:unpi:parser: --- parseNext [254,1,100,2,0,103]
[2025-03-04 15:06:54] debug: zh:zstack:unpi:parser: --> parsed 1 - 3 - 4 - 2 - [0] - 103
[2025-03-04 15:06:54] debug: zh:zstack:znp: <-- SRSP: AF - dataRequestExt - {"status":0}
[2025-03-04 15:06:54] debug: zh:zstack:unpi:parser: --- parseNext []
[2025-03-04 15:06:54] debug: zh:zstack:unpi:parser: <-- [254,3,68,128,0,1,109,171]
[2025-03-04 15:06:54] debug: zh:zstack:unpi:parser: --- parseNext [254,3,68,128,0,1,109,171]
[2025-03-04 15:06:54] debug: zh:zstack:unpi:parser: --> parsed 3 - 2 - 4 - 128 - [0,1,109] - 171
[2025-03-04 15:06:54] debug: zh:zstack:znp: <-- AREQ: AF - dataConfirm - {"status":0,"endpoint":1,"transid":109}
[2025-03-04 15:06:54] debug: zh:zstack:unpi:parser: --- parseNext []
[2025-03-04 15:06:54] debug: zh:controller:endpoint: ZCL command 0xa4c13879de24d848/1 haElectricalMeasurement.read(["rmsVoltage","rmsCurrent","activePower"], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false})
[2025-03-04 15:06:54] debug: zh:zstack: sendZclFrameToEndpointInternal 0xa4c13879de24d848:40079/1 (0,0,2)
[2025-03-04 15:06:54] debug: zh:zstack:znp: --> SREQ: AF - dataRequest - {"dstaddr":40079,"destendpoint":1,"srcendpoint":1,"clusterid":2820,"transid":110,"options":0,"radius":30,"len":9,"data":{"type":"Buffer","data":[16,240,0,5,5,8,5,11,5]}}
[2025-03-04 15:06:54] debug: zh:zstack:unpi:writer: --> frame [254,19,36,1,143,156,1,1,4,11,110,0,30,9,16,240,0,5,5,8,5,11,5,176]
[2025-03-04 15:06:54] error: z2m: Publish 'set' 'scene_remove_all' to 'zgDefaultColorLights1ZG' failed: 'Error: undefined is not a object, got undefined (undefined)'
[2025-03-04 15:06:54] debug: z2m: Error: undefined is not a object, got undefined (undefined)
at Object.assertObject (/app/node_modules/zigbee-herdsman-converters/src/lib/utils.ts:599:15)
at Object.convertSet (/app/node_modules/zigbee-herdsman-converters/src/converters/toZigbee.ts:3833:19)
at Publish.onMQTTMessage (/app/lib/extension/publish.ts:306:36)
at EventEmitter.wrappedCallback (/app/lib/eventBus.ts:206:17)

@jpg0 jpg0 added the problem Something isn't working label Mar 4, 2025
@Koenkk
Copy link
Owner

Koenkk commented Mar 6, 2025

Fixed!

Changes will be available in the dev branch in a few hours from now and in the next release which is every 1st of the month.

@jpg0
Copy link
Author

jpg0 commented Mar 7, 2025

Great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants