I just installed my first Blue series switch yesterday, and I love all the functionality. I have it paired to zigbee2mqtt (1.27.2) and am using Home Assistant as my hub. I was able to configure most of the functionality as expected, but I am not able to get power or energy readings. I tried setting different values for active/periodic measurement, but the only value that successfully saves is 0. The rest give an error such as:
I have also tried via publishing JSON values to the appropriate MQTT topic with the same result. There are a couple other bits of weirdness that may be unrelated, but I figured I would mention them:
None of the parameters in zigbee2mqtt have the descriptions as shown in the setup video
Some parameters do not indicate a value even though they should (e.g. “powerType”)
Let me know if anyone else is seeing anything similar or has suggestions on a fix. Thanks!
I tried updating and restarting Z2M, and I see the following error come through regarding the switch:
Failed to configure '0x040d84fffexxxxxx', attempt 2 (Error: Read 0x040d84fffexxxxxx/1 haElectricalMeasurement(["acVoltageMultiplier","acVoltageDivisor","acCurrentMultiplier"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE') at Endpoint.checkStatus (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:317:28) at Endpoint.read (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:480:22) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) at Object.readEletricalMeasurementMultiplierDivisors (/app/node_modules/zigbee-herdsman-converters/lib/reporting.js:26:5) at Object.configure (/app/node_modules/zigbee-herdsman-converters/devices/inovelli.js:1219:13) at Configure.configure (/app/lib/extension/configure.ts:115:13))
So if we want to use this patched converter before @koenkk pushes his next monthly release of z2m, how do we do it?
Edit: I’m running z2m in a docker-like setup (podman container on an Oh-La Labs Collective Core beta unit), with mosquitto and node-red rounding things out.
I’m using Home Assistant in a VM and the main branch of the Zigbee2MQTT add-on (currently 1.28.0-1). To make the above linked updated file work properly in that setup, I had to adjust the require statement paths slightly by replacing the ../ with zigbee-herdsman-convertors/ like so:
I’m using the Z2M Add On, so I’m waiting for that update. I suppose I could switch to the beta channel. But that would explain the Read Only error messages I’ve seen. Edit: It’s apparently running Z2M 1.28.0
When I try to put a “-” in front of the .js file name, it gives me a syntax error in Studio Code Server. The screenshot above is the only way I was able to get Z2M to restart, but it doesn’t seem to correct the power/energy readout.
That file looks like JSON and not YAML so you don’t need the “-” character. You can also just go to zigbee2mqtt and add it via the gui and avoid manually edit the configuration file altogether: