Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.68k stars 1.64k forks source link

No Power data returned by Xiaomi WS-USC03 ('TypeError: Cannot read properties of undefined (reading 'read')') #20286

Open TraceWilson opened 8 months ago

TraceWilson commented 8 months ago

What happened?

All attempts to update Power data for all Xioami WS-USC03 switches on the network return

'TypeError: Cannot read properties of undefined (reading 'read')'

Enabled debugging of zigbee-hersman*, and see the following in the Docker log

Zigbee2MQTT:debug 2023-12-17 14:57:47: Received MQTT message on 'zigbee2mqtt/Garage Light Switch/get' with data '{"power":""}'
Zigbee2MQTT:debug 2023-12-17 14:57:47: Publishing get 'get' 'power' to 'Garage Light Switch'
Zigbee2MQTT:error 2023-12-17 14:57:47: Publish 'get' 'power' to 'Garage Light Switch' failed: 'TypeError: Cannot read properties of undefined (reading 'read')'
Zigbee2MQTT:debug 2023-12-17 14:57:47: TypeError: Cannot read properties of undefined (reading 'read')
    at Object.convertGet (/app/node_modules/zigbee-herdsman-converters/src/converters/toZigbee.ts:2279:28)
    at Publish.onMQTTMessage (/app/lib/extension/publish.ts:275:37)
    at EventEmitter.emit (node:events:529:35)
    at EventBus.emitMQTTMessage (/app/lib/eventBus.ts:109:22)
    at MQTT.onMessage (/app/lib/mqtt.ts:141:27)
    at WebSocket.<anonymous> (/app/lib/extension/frontend.ts:130:27)
    at WebSocket.emit (node:events:517:28)
    at Receiver.receiverOnMessage (/app/node_modules/ws/lib/websocket.js:1192:20)
    at Receiver.emit (node:events:517:28)
    at Receiver.dataMessage (/app/node_modules/ws/lib/receiver.js:560:14)

What did you expect to happen?

Power data from switch returned

How to reproduce it (minimal and precise)

Query power data from switch

Zigbee2MQTT version

1.34.0 commit: aae7312

Adapter firmware version

20210708

Adapter

ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_88389f3af112ec11976821c7bd930c07

Debug log

No response

Xtiger123X commented 3 months ago

is there a known fix for this. I have the same problem with the Aqara EU H1 with Neutral.