Skip to content

Exception Cannot read properties of undefined (reading 'x')} #27758

@ZTHawk

Description

@ZTHawk

What happened?

Error in logs:

Exception while calling fromZigbee converter: Cannot read properties of undefined (reading 'x')}

I think it is related to "Licht Stern" (it is a RGB bulb).

What did you expect to happen?

No error

How to reproduce it (minimal and precise)

Do not know

Zigbee2MQTT version

2.4.0

Adapter firmware version

8.0.2 [GA]

Adapter

SONOFF Dongle Plus V2

Setup

Proxmox -> Home Assistant -> Z2M

Debug log

[2025-06-18 19:45:36] debug: 	zh:ember:uart:ash: <--- [FRAME type=DATA]
[2025-06-18 19:45:36] debug: 	zh:ember:uart:ash: <--- [FRAME type=DATA ackNum=0](ackRx=7 frmTx=0)
[2025-06-18 19:45:36] debug: 	zh:ember:uart:ash: <--- [FRAME type=DATA ackNum=0 frmNum=5](frmRx=5) Added to rxQueue
[2025-06-18 19:45:36] debug: 	zh:ember:uart:ash: ---> [FRAME type=ACK frmRx=6](ackRx=0)
[2025-06-18 19:45:36] debug: 	zh:ember:ezsp: <=== [FRAME: ID=52:"SEND_UNICAST" Seq=95 Len=10]
[2025-06-18 19:45:36] debug: 	zh:ember:ezsp: ~~~> [SENT type=DIRECT apsSequence=175 messageTag=59 status=OK]
[2025-06-18 19:45:36] debug: 	zh:ember:uart:ash: <--- [FRAME type=DATA]
[2025-06-18 19:45:36] debug: 	zh:ember:uart:ash: <--- [FRAME type=DATA ackNum=0](ackRx=0 frmTx=0)
[2025-06-18 19:45:36] debug: 	zh:ember:uart:ash: <--- [FRAME type=DATA ackNum=0 frmNum=6](frmRx=6) Added to rxQueue
[2025-06-18 19:45:36] debug: 	zh:ember:uart:ash: ---> [FRAME type=ACK frmRx=7](ackRx=0)
[2025-06-18 19:45:36] debug: 	zh:ember:ezsp: <=== [CBFRAME: ID=63:"MESSAGE_SENT_HANDLER" Seq=95 Len=26]
[2025-06-18 19:45:36] debug: 	zh:ember:ezsp: ezspMessageSentHandler: status=OK type=DIRECT indexOrDestination=65244 apsFrame={"profileId":260,"clusterId":0,"sourceEndpoint":1,"destinationEndpoint":1,"options":4352,"groupId":0,"sequence":175} messageTag=59
[2025-06-18 19:45:37] debug: 	zh:ember:uart:ash: <--- [FRAME type=DATA]
[2025-06-18 19:45:37] debug: 	zh:ember:uart:ash: <--- [FRAME type=DATA ackNum=0](ackRx=0 frmTx=0)
[2025-06-18 19:45:37] debug: 	zh:ember:uart:ash: <--- [FRAME type=DATA ackNum=0 frmNum=7](frmRx=7) Added to rxQueue
[2025-06-18 19:45:37] debug: 	zh:ember:uart:ash: ---> [FRAME type=ACK frmRx=0](ackRx=0)
[2025-06-18 19:45:37] debug: 	zh:ember:ezsp: <=== [CBFRAME: ID=89:"INCOMING_ROUTE_RECORD_HANDLER" Seq=95 Len=22]
[2025-06-18 19:45:37] debug: 	zh:ember:ezsp: ezspIncomingRouteRecordHandler: source=56991 sourceEui=0xa4c13872aee1cb91 lastHopLqi=188 lastHopRssi=-64 relayCount=2 relayList=46181,44968
[2025-06-18 19:45:37] debug: 	zh:ember:uart:ash: <--- [FRAME type=DATA]
[2025-06-18 19:45:37] debug: 	zh:ember:uart:ash: <--- [FRAME type=DATA ackNum=0](ackRx=0 frmTx=0)
[2025-06-18 19:45:37] debug: 	zh:ember:uart:ash: <--- [FRAME type=DATA ackNum=0 frmNum=0](frmRx=0) Added to rxQueue
[2025-06-18 19:45:37] debug: 	zh:ember:uart:ash: ---> [FRAME type=ACK frmRx=1](ackRx=0)
[2025-06-18 19:45:37] debug: 	zh:ember:ezsp: <=== [CBFRAME: ID=69:"INCOMING_MESSAGE_HANDLER" Seq=95 Len=44]
[2025-06-18 19:45:37] debug: 	zh:ember:ezsp: ezspIncomingMessageHandler: type=UNICAST apsFrame={"profileId":260,"clusterId":768,"sourceEndpoint":1,"destinationEndpoint":1,"options":320,"groupId":0,"sequence":95} packetInfo:{"senderShortId":56991,"senderLongId":"0x0000000000000000","bindingIndex":255,"addressIndex":32,"lastHopLqi":188,"lastHopRssi":-64,"lastHopTimestamp":3693571851} messageContents=18310a000020c8
[2025-06-18 19:45:37] debug: 	zh:controller: Received payload: clusterID=768, address=56991, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=188, frame={"header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":true,"reservedBits":0},"transactionSequenceNumber":49,"commandIdentifier":10},"payload":[{"attrId":0,"dataType":32,"attrData":200}],"command":{"ID":10,"name":"report","parameters":[{"name":"attrId","type":33},{"name":"dataType","type":32},{"name":"attrData","type":1000}]}}
[2025-06-18 19:45:37] debug: 	z2m: Received Zigbee message from 'Licht Stern', type 'attributeReport', cluster 'lightingColorCtrl', data '{"currentHue":200}' from endpoint 1 with groupID 0
[2025-06-18 19:45:37] debug: 	zhc:light: Missing colorTempPhysicalMin and/or colorTempPhysicalMax for endpoint 0xa4c13872aee1cb91!
[2025-06-18 19:45:37] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Licht Stern', payload '{"brightness":193,"color":{"h":32,"hue":32,"s":82,"saturation":82},"color_mode":"color_temp","color_temp":370,"do_not_disturb":true,"last_seen":"2025-06-18T19:45:37+02:00","linkquality":188,"state":"OFF"}'
[2025-06-18 19:45:37] debug: 	zh:ember:uart:ash: <--- [FRAME type=DATA]
[2025-06-18 19:45:37] debug: 	zh:ember:uart:ash: <--- [FRAME type=DATA ackNum=0](ackRx=0 frmTx=0)
[2025-06-18 19:45:37] debug: 	zh:ember:uart:ash: <--- [FRAME type=DATA ackNum=0 frmNum=1](frmRx=1) Added to rxQueue
[2025-06-18 19:45:37] debug: 	zh:ember:uart:ash: ---> [FRAME type=ACK frmRx=2](ackRx=0)
[2025-06-18 19:45:37] debug: 	zh:ember:ezsp: <=== [CBFRAME: ID=69:"INCOMING_MESSAGE_HANDLER" Seq=95 Len=45]
[2025-06-18 19:45:37] debug: 	zh:ember:ezsp: ezspIncomingMessageHandler: type=UNICAST apsFrame={"profileId":260,"clusterId":768,"sourceEndpoint":1,"destinationEndpoint":1,"options":320,"groupId":0,"sequence":97} packetInfo:{"senderShortId":56991,"senderLongId":"0x0000000000000000","bindingIndex":255,"addressIndex":32,"lastHopLqi":188,"lastHopRssi":-64,"lastHopTimestamp":3693575834} messageContents=18330a0700217201
[2025-06-18 19:45:37] debug: 	zh:controller: Received payload: clusterID=768, address=56991, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=188, frame={"header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":true,"reservedBits":0},"transactionSequenceNumber":51,"commandIdentifier":10},"payload":[{"attrId":7,"dataType":33,"attrData":370}],"command":{"ID":10,"name":"report","parameters":[{"name":"attrId","type":33},{"name":"dataType","type":32},{"name":"attrData","type":1000}]}}
[2025-06-18 19:45:37] debug: 	z2m: Received Zigbee message from 'Licht Stern', type 'attributeReport', cluster 'lightingColorCtrl', data '{"colorTemperature":370}' from endpoint 1 with groupID 0
[2025-06-18 19:45:37] debug: 	zhc:light: Missing colorTempPhysicalMin and/or colorTempPhysicalMax for endpoint 0xa4c13872aee1cb91!
[2025-06-18 19:45:37] error: 	z2m: Exception while calling fromZigbee converter: Cannot read properties of undefined (reading 'x')}
[2025-06-18 19:45:37] debug: 	z2m: TypeError: Cannot read properties of undefined (reading 'x')
    at Function.fromObject (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman-converters/src/lib/color.ts:219:16)
    at Function.fromMireds (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman-converters/src/lib/color.ts:232:24)
    at Object.syncColorState (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman-converters/src/lib/color.ts:806:36)
    at Object.convert (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman-converters/src/converters/fromZigbee.ts:2157:47)
    at Receive.onDeviceMessage (/app/lib/extension/receive.ts:171:51)
    at EventEmitter.wrappedCallback (/app/lib/eventBus.ts:204:23)
    at EventEmitter.emit (node:events:530:35)
    at EventBus.emitDeviceMessage (/app/lib/eventBus.ts:130:22)
    at Controller.<anonymous> (/app/lib/zigbee.ts:131:27)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
[2025-06-18 19:45:37] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Licht Stern', payload '{"brightness":193,"color":{"h":32,"hue":32,"s":82,"saturation":82},"color_mode":"color_temp","color_temp":370,"do_not_disturb":true,"last_seen":"2025-06-18T19:45:37+02:00","linkquality":188,"state":"OFF"}'
[2025-06-18 19:45:37] debug: 	zh:ember:uart:ash: <--- [FRAME type=DATA]
[2025-06-18 19:45:37] debug: 	zh:ember:uart:ash: <--- [FRAME type=DATA ackNum=0](ackRx=0 frmTx=0)
[2025-06-18 19:45:37] debug: 	zh:ember:uart:ash: <--- [FRAME type=DATA ackNum=0 frmNum=2](frmRx=2) Added to rxQueue
[2025-06-18 19:45:37] debug: 	zh:ember:uart:ash: ---> [FRAME type=ACK frmRx=3](ackRx=0)
[2025-06-18 19:45:37] debug: 	zh:ember:ezsp: <=== [CBFRAME: ID=69:"INCOMING_MESSAGE_HANDLER" Seq=95 Len=44]
[2025-06-18 19:45:37] debug: 	zh:ember:ezsp: ezspIncomingMessageHandler: type=UNICAST apsFrame={"profileId":260,"clusterId":768,"sourceEndpoint":1,"destinationEndpoint":1,"options":320,"groupId":0,"sequence":96} packetInfo:{"senderShortId":56991,"senderLongId":"0x0000000000000000","bindingIndex":255,"addressIndex":32,"lastHopLqi":188,"lastHopRssi":-64,"lastHopTimestamp":3693581064} messageContents=18320a010020c2
[2025-06-18 19:45:37] debug: 	zh:controller: Received payload: clusterID=768, address=56991, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=188, frame={"header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":true,"reservedBits":0},"transactionSequenceNumber":50,"commandIdentifier":10},"payload":[{"attrId":1,"dataType":32,"attrData":194}],"command":{"ID":10,"name":"report","parameters":[{"name":"attrId","type":33},{"name":"dataType","type":32},{"name":"attrData","type":1000}]}}
[2025-06-18 19:45:37] debug: 	z2m: Received Zigbee message from 'Licht Stern', type 'attributeReport', cluster 'lightingColorCtrl', data '{"currentSaturation":194}' from endpoint 1 with groupID 0
[2025-06-18 19:45:37] debug: 	zhc:light: Missing colorTempPhysicalMin and/or colorTempPhysicalMax for endpoint 0xa4c13872aee1cb91!
[2025-06-18 19:45:37] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Licht Stern', payload '{"brightness":193,"color":{"h":32,"hue":32,"s":82,"saturation":82},"color_mode":"color_temp","color_temp":370,"do_not_disturb":true,"last_seen":"2025-06-18T19:45:37+02:00","linkquality":188,"state":"OFF"}'
[2025-06-18 19:45:38] debug: 	zh:ember:uart:ash: <--- [FRAME type=DATA]
[2025-06-18 19:45:38] debug: 	zh:ember:uart:ash: <--- [FRAME type=DATA ackNum=0](ackRx=0 frmTx=0)
[2025-06-18 19:45:38] debug: 	zh:ember:uart:ash: <--- [FRAME type=DATA ackNum=0 frmNum=3](frmRx=3) Added to rxQueue
[2025-06-18 19:45:38] debug: 	zh:ember:uart:ash: ---> [FRAME type=ACK frmRx=4](ackRx=0)
[2025-06-18 19:45:38] debug: 	zh:ember:ezsp: <=== [CBFRAME: ID=69:"INCOMING_MESSAGE_HANDLER" Seq=95 Len=47]
[2025-06-18 19:45:38] debug: 	zh:ember:ezsp: ezspIncomingMessageHandler: type=UNICAST apsFrame={"profileId":260,"clusterId":61184,"sourceEndpoint":1,"destinationEndpoint":1,"options":256,"groupId":0,"sequence":72} packetInfo:{"senderShortId":44968,"senderLongId":"0x0000000000000000","bindingIndex":255,"addressIndex":255,"lastHopLqi":184,"lastHopRssi":-65,"lastHopTimestamp":3694444354} messageContents=0914019ada2404000101
[2025-06-18 19:45:38] debug: 	zh:controller: Received payload: clusterID=61184, address=44968, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=184, frame={"header":{"frameControl":{"frameType":1,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":20,"commandIdentifier":1},"payload":{"seq":55962,"dpValues":[{"dp":36,"datatype":4,"data":{"type":"Buffer","data":[1]}}]},"command":{"ID":1,"parameters":[{"name":"seq","type":33},{"name":"dpValues","type":1011}],"name":"dataResponse"}}
[2025-06-18 19:45:38] debug: 	zh:controller:endpoint: ZCL command 0x003c84fffedcf999/1 manuSpecificTuya.defaultRsp({"cmdId":1,"statusCode":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"transactionSequenceNumber":20,"writeUndiv":false})
[2025-06-18 19:45:38] debug: 	zh:ember: ~~~> [ZCL to=0x003c84fffedcf999:44968 apsFrame={"profileId":260,"clusterId":61184,"sourceEndpoint":1,"destinationEndpoint":1,"options":4352,"groupId":0,"sequence":0} header={"frameControl":{"reservedBits":0,"frameType":0,"direction":0,"disableDefaultResponse":true,"manufacturerSpecific":false},"transactionSequenceNumber":20,"commandIdentifier":11}]
[2025-06-18 19:45:38] debug: 	zh:ember:ezsp: ===> [FRAME: ID=52:"SEND_UNICAST" Seq=96 Len=27]
[2025-06-18 19:45:38] debug: 	zh:ember:uart:ash: ---> [FRAME type=DATA frmTx=0 frmRx=4](ackRx=0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    problemSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions