Koenkk / zigbee2mqtt

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

Nous A1Z does not return energy consumption and bad #21250

Open espeka44 opened 6 months ago

espeka44 commented 6 months ago

What happened?

I did a fresh install of Z2M on my new RPi 5 and my smartplugs (NOUS A1Z : _TZ3000_2putqrmw) dont show me all parameters and others are totally wrong ("current"). E.g. my freezer use to have a 35W power on 230V but Z2M display around 230A. Impossible ! All my smartplug device, don't see the "energy" which it's the sum of consumption of the plug.

Don't remember which previous Z2M version i ran on my RPi 3B+ but all theses devices properties were available and correct

What did you expect to happen?

Works well as my old setup

How to reproduce it (minimal and precise)

Fresh install of the latest Z2M version (1.35.2) and paring NOUS A1Z smartplug.

Zigbee2MQTT version

1.35.2

Adapter firmware version

0x26720700

Adapter

Conbee II

Setup

Python virtual env on RPi 5

Debug log

Failed to configure 'clothes_dryer_smartplug', attempt 1 (Error: ConfigureReporting 0xa4c1385608c58a5c/1 haElectricalMeasurement([{"attribute":"rmsCurrent","minimumReportInterval":5,"maximumReportInterval":3600,"reportableChange":50}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (no response received (11)) at DeconzAdapter.sendZclFrameToEndpoint (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/deconz/adapter/deconzAdapter.ts:666:23) at Request.send (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/helpers/request.ts:79:20) at Endpoint.configureReporting (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:669:28) at Object.rmsCurrent (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/lib/reporting.ts:216:5) at Object.configure (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/devices/tuya.ts:3559:13) at Configure.configure (/opt/zigbee2mqtt/lib/extension/configure.ts:120:13) at EventEmitter.wrappedCallback (/opt/zigbee2mqtt/lib/eventBus.ts:174:17))

espeka44 commented 6 months ago

I did a fresh install and same issue when i re-pairing theses smartplugs

Zigbee2MQTT:error 2024-02-08 09:46:35: Failed to configure 'hair_dryer_smartplug', attempt 2 (Error: ConfigureReporting 0xa4c13877a334d878/1 haElectricalMeasurement([{"attribute":"rmsVoltage","minimumReportInterval":5,"maximumReportInterval":3600,"reportableChange":5}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (no response received (14))
    at DeconzAdapter.sendZclFrameToEndpoint (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/deconz/adapter/deconzAdapter.ts:666:23)
    at Request.send (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/helpers/request.ts:79:20)
    at Endpoint.configureReporting (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:669:28)
    at Object.rmsVoltage (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/lib/reporting.ts:220:5)
    at Object.configure (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/devices/tuya.ts:3595:13)
    at Configure.configure (/opt/zigbee2mqtt/lib/extension/configure.ts:120:13)
    at EventEmitter.wrappedCallback (/opt/zigbee2mqtt/lib/eventBus.ts:174:17))

Something go wrong with the latest Z2M version cause the previous ones, it worked.

espeka44 commented 6 months ago

Any idea ? Need to open a issue on Deconz repo ?

Koenkk commented 6 months ago

Try with the latest dev branch, it has a fix for the Conbee issue.

espeka44 commented 6 months ago

I got a error with the procedure... not sure to understand the issue

spk@espikabox2:/opt/zigbee2mqtt $ git checkout dev
error: pathspec 'dev' did not match any file(s) known to git
Koenkk commented 6 months ago

try: git fetch origin

espeka44 commented 5 months ago

the procedure to switch to dev branch don't work for me. maybe it will be include in the next release, reachable after a upgrade ?

Koenkk commented 5 months ago

It's available in 1.36.0

espeka44 commented 5 months ago

Still not work... 2024-03-03 10:29:34Failed to configure '0xa4c138fad5fa7dae', attempt 1 (Error: ConfigureReporting 0xa4c138fad5fa7dae/1 haElectricalMeasurement([{"attribute":"rmsCurrent","minimumReportInterval":5,"maximumReportInterval":3600,"reportableChange":50}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (no response received (10)) at DeconzAdapter.sendZclFrameToEndpoint (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/deconz/adapter/deconzAdapter.ts:666:23) at Request.send (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/helpers/request.ts:79:20) at Endpoint.configureReporting (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:669:28) at Object.rmsCurrent (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/lib/reporting.ts:216:5) at Object.configure (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/devices/tuya.ts:3653:13) at Configure.configure (/opt/zigbee2mqtt/lib/extension/configure.ts:122:13) at Immediate.<anonymous> (/opt/zigbee2mqtt/lib/extension/configure.ts:74:17)) 2024-03-03 10:29:41Failed to configure 'washing_machine_smartplug', attempt 1 (Error: ConfigureReporting 0xa4c13819cd05e870/1 haElectricalMeasurement([{"attribute":"rmsCurrent","minimumReportInterval":5,"maximumReportInterval":3600,"reportableChange":50}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (no response received (13)) at DeconzAdapter.sendZclFrameToEndpoint (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/deconz/adapter/deconzAdapter.ts:666:23) at runNextTicks (node:internal/process/task_queues:60:5) at processTimers (node:internal/timers:511:9) at Request.send (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/helpers/request.ts:79:20) at Endpoint.configureReporting (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:669:28) at Object.rmsCurrent (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/lib/reporting.ts:216:5) at Object.configure (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/devices/tuya.ts:3653:13) at Configure.configure (/opt/zigbee2mqtt/lib/extension/configure.ts:122:13) at EventEmitter.wrappedCallback (/opt/zigbee2mqtt/lib/eventBus.ts:174:17))

Same data errors returned.

espeka44 commented 5 months ago

1.36.0 don't fix my issue

schnickalodeon commented 4 months ago

Same problem here with Zigbe2mqtt 1.36.0-1 and Nous A1Z

Guik commented 2 months ago

Hello, using 1.37.1 same issue for me: after re-pairing 3 x A1Z, they stop reporting energy.

pscoffoni commented 1 month ago

Hi Same problem with 1.38.0-1

Shasdo commented 1 month ago

Dongle SONOFF Zigbee E - Ember MQTT 1.38.0-1

No return of Power; OK for energy

image image

Koenkk commented 1 month ago

Is a power value returned when attaching a load and doing a read through the dev console?

Screenshot 2024-07-03 at 21 58 25
espeka44 commented 4 days ago

Still not work, with lastest version of Z2M. Any hope to have "energy" field back and a correct "current" measurement back ?

error 2024-08-18 15:38:54z2m: Failed to configure 'washing_machine_smartplug', attempt 1 (Error: ZCL command 0xa4c13819cd05e870/1 haElectricalMeasurement.configReport([{"attribute":"rmsCurrent","minimumReportInterval":5,"maximumReportInterval":3600,"reportableChange":50}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (no response received (6)) at DeconzAdapter.sendZclFrameToEndpoint (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/deconz/adapter/deconzAdapter.ts:768:19) at runNextTicks (node:internal/process/task_queues:60:5) at processTimers (node:internal/timers:511:9) at Request.send (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/helpers/request.ts:81:20) at Endpoint.zclCommand (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:866:28) at Endpoint.configureReporting (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:611:9) at Object.rmsCurrent (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/lib/reporting.ts:217:5) at configure (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/devices/tuya.ts:4983:13) at Object.configure (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/index.ts:190:21) at Configure.configure (/opt/zigbee2mqtt/lib/extension/configure.ts:126:13))