Reporting tab interface completely broken after 1.33.1 update
What happened?
After upgrading to 1.33.1, my VINDSTYRKA devices were no longer updating at the rate that I had previously configured them. Upon going to the reporting tab, I noticed that all the clusters were listed twice, once with my original settings, and once with what appears to be the default. It also appears to be impossible to fix. I can disable all the extra entries except for pm25measurement, where I first have to change the attribute to measuredValueIkea, otherwise I get a Request 'zigbee2mqtt/bridge/request/device/configure_reporting' failed with error: 'ConfigureReporting 0x385cfbfffea36292/1 pm25Measurement([{"attribute":"measuredValue","minimumReportInterval":60,"maximumReportInterval":65535,"reportableChange":2}], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'INVALID_DATA_TYPE')'
However, attempting to change any of the settings results in more duplicates returning, though they seem to match my settings.
Screenshot of what this looks like after any attempt at editing:
What did you expect to happen?
A) zigbee2mqtt does not erase my previous reporting settings B) I can actually use the reporting tab to adjust the settings.
How to reproduce it (minimal and precise)
Unsure what the minimum requirement is. As mentioned above, I'm using VINDSTYRKA devices (don't know if it's specific to them), and simply trying to set reporting settings.
Zigbee2MQTT version
1.33.1
Adapter firmware version
0x26580700
Adapter
ConBee2/RaspBee2
Debug log
I connected my new sensor E2112 yesterday - and there is no data from it except LQI.
Zigbee2MQTT version 1.33.1 dev
Hi, After noticing my ZLinky did'nt update properly for some values, I noticed the same problem in reporting page. Some duplicates can be deleted, others not, and when I try to change a value (min rep interval or min rep change), a duplicate reporting is added again instead of changing the adequate line. This is on a raspberry pi 4 and HA supervised: Core 2023.11.1 Supervisor 2023.11.0 Frontend 20231030. Zigbee2mqtt 1.33.2
@alexh3o could you provide your data/database.db?
Here is the part for ZLinky
{"id":58,"type":"Router","ieeeAddr":"0x00158d000966cc3e","nwkAddr":43723,"manufId":4151,"manufName":"LiXee","powerSource":"Mains (single phase)","modelId":"ZLinky_TIC\u0000","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":83,"inClusterList":[0,3,1794,2820,2817,65382,1],"outClusterList":[25],"clusters":{"genBasic":{"attributes":{"modelId":"ZLinky_TIC\u0000","manufacturerName":"LiXee","powerSource":1,"zclVersion":3,"appVersion":12,"stackVersion":2,"hwVersion":1,"dateCode":"20230214","swBuildId":"4000-0013"}},"liXeePrivate":{"attributes":{"linkyMode":0,"currentTarif":"BASE\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000","warnDPS":0}},"haElectricalMeasurement":{"attributes":{"rmsCurrentMax":90,"apparentPower":1950,"rmsCurrent":7}},"seMetering":{"attributes":{"meterSerialNumber":{"type":"Buffer","data":[48,51,49,55,54,50,48,52,53,49,49,53]},"activeRegisterTierDelivered":"TH..","currentSummDelivered":[0,39755333]}},"haMeterIdentification":{"attributes":{"availablePower":60}}},"binds":[{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c82c76","endpointID":1},{"cluster":2817,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c82c76","endpointID":1},{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c82c76","endpointID":1},{"cluster":65382,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c82c76","endpointID":1}],"configuredReportings":[{"cluster":1794,"attrId":0,"minRepIntval":60,"maxRepIntval":900,"repChange":100},{"cluster":2820,"attrId":1288,"minRepIntval":60,"maxRepIntval":900,"repChange":1},{"cluster":2820,"attrId":1295,"minRepIntval":60,"maxRepIntval":900,"repChange":1},{"cluster":65382,"attrId":5,"minRepIntval":60,"maxRepIntval":900,"repChange":1},{"cluster":65382,"attrId":5,"minRepIntval":60,"maxRepIntval":900,"repChange":1,"manufacturerCode":null},{"cluster":1794,"attrId":0,"minRepIntval":60,"maxRepIntval":900,"repChange":10,"manufacturerCode":null},{"cluster":2820,"attrId":1295,"minRepIntval":15,"maxRepIntval":900,"repChange":1,"manufacturerCode":null}],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[33],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":12,"stackVersion":2,"hwVersion":1,"dateCode":"20230214","swBuildId":"4000-0013","zclVersion":3,"interviewCompleted":true,"meta":{"configured":1745911956},"lastSeen":1699468392019,"defaultSendRequestWhen":"immediate"}
I can send the whole database.db if it's useful, should I do it here or through a more private channel ?
I'm also affected by this. In my case, duplication occurs when I'm updating values in the Reporting tab.
Same issue with freshly released 1.34.0. Despite no error reported, it looks like it happens when the original value cannot be changed.
After updating activePower min rep change value from 10 to 1:
- A new line is added at the bottom with the requested value.
- The old line remain with its value field updated to the requested value.
After a page reload, value is back and new row is still here:
- The original line value has changed to the original value. As if it has not changed.
- The new line remain with the requested value.
I can remove the new line. On another device, the same behavior was fixed by repairing (removing/pairing).
Hi, if you remove and repair your device, you can configure reporting without having duplicates after ?
Just updated to 1.34.0 and now (without doing anything) many "entities" in database.db are duplicated and reported with default/wrong Reporting times/repo_changes together with the new "manufacturerCode: null" JSON attribute.....
Those duplicated entities are the same that was previously affected by this duplication bug when we was trying to update their values.
A questions: should we keep the ones with "manufacturerCode: null" (because it's the new/right standard ATM) or the old ones without this new attribute?
Pushed a fix! After upgrading, click Apply on the configured reportings to get rid of the duplicates.
Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)
Pushed a fix! After upgrading, click
Applyon the configured reportings to get rid of the duplicates.Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)
Unfortunately switching to Dev branch doesn't solve anything. Now Z2M neither starts.....
[email protected] start node index.js Building Zigbee2MQTT... (initial build), failed Error: Command failed: npm run build at ChildProcess.exithandler (node:child_process:419:12) at ChildProcess.emit (node:events:513:28) at maybeClose (node:internal/child_process:1091:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
Can you try to execute rm -f tsconfig.tsbuildinfo in the z2m folder first?
Different error but unable to run Z2M.
[email protected] start node index.js Building Zigbee2MQTT... (hash changed), failed Error: Command failed: npm run build at ChildProcess.exithandler (node:child_process:419:12) at ChildProcess.emit (node:events:513:28) at maybeClose (node:internal/child_process:1091:16) at Socket.
(node:internal/child_process:449:11) at Socket.emit (node:events:513:28) at Pipe. (node:net:321:12)
What if you execute npm run build?
What if you execute
npm run build?
Using latest DEV there isn't any issue during start. Duplicated entities seems gone when I clicked "Apply" to some of those values.
Just a small "glitch": just after click "Apply" the duplicated entry still remains there, but a page refresh fixes this.
docker exec -it z2m grep version package.json
"version": "1.34.0",
I appear to be running the "fixed" version, but pressing "Apply" does not fix the issue for me (even after a page refresh)
Also tried on a device without duplicates... I now have duplicates :-(
Same here. I tried few days ago and duplication is still here.
@nplawes
Also tried on a device without duplicates... I now have duplicates :-(
Could you provide the data/database.db entry of this device?
I'm not sure which version broke this for me, it's been happening for a few months at least.
It also happens for SPLZB-134 smart plugs.
Looking at the data from the database I see that the duplicated entries all have "manufacturerCode": null
Thanks
/nick
{ "id": 18, "type": "EndDevice", "ieeeAddr": "0x00178801032ab969", "nwkAddr": 11099, "manufId": 4107, "manufName": "Philips", "powerSource": "Battery", "modelId": "SML001", "epList": [ 1, 2 ], "endpoints": { "1": { "profId": 49246, "epId": 1, "devId": 2128, "inClusterList": [ 0 ], "outClusterList": [ 0, 3, 4, 6, 8, 768, 5 ], "clusters": {}, "binds": [], "configuredReportings": [], "meta": {} }, "2": { "profId": 260, "epId": 2, "devId": 263, "inClusterList": [ 0, 1, 3, 1030, 1024, 1026 ], "outClusterList": [ 25 ], "clusters": { "genPowerCfg": { "attributes": { "batteryPercentageRemaining": 45 } }, "msTemperatureMeasurement": { "attributes": { "measuredValue": 1745 } }, "msIlluminanceMeasurement": { "attributes": { "measuredValue": 15635 } }, "msOccupancySensing": { "attributes": { "48": 2, "occupancy": 0, "pirOToUDelay": 0 } } }, "binds": [ { "cluster": 1, "type": "endpoint", "deviceIeeeAddress": "0x00124b00238da250", "endpointID": 1 }, { "cluster": 1024, "type": "endpoint", "deviceIeeeAddress": "0x00124b00238da250", "endpointID": 1 }, { "cluster": 1026, "type": "endpoint", "deviceIeeeAddress": "0x00124b00238da250", "endpointID": 1 }, { "cluster": 1030, "type": "endpoint", "deviceIeeeAddress": "0x00124b00238da250", "endpointID": 1 } ], "configuredReportings": [ { "cluster": 1, "attrId": 33, "minRepIntval": 900, "maxRepIntval": 3600, "repChange": 1 }, { "cluster": 1030, "attrId": 0, "minRepIntval": 0, "maxRepIntval": 3600, "repChange": 0 }, { "cluster": 1026, "attrId": 0, "minRepIntval": 300, "maxRepIntval": 3600, "repChange": 10 }, { "cluster": 1024, "attrId": 0, "minRepIntval": 60, "maxRepIntval": 3600, "repChange": 200 }, { "cluster": 1, "attrId": 33, "minRepIntval": 900, "maxRepIntval": 3600, "repChange": 1, "manufacturerCode": null } ], "meta": {} } }, "appVersion": 2, "stackVersion": 1, "hwVersion": 1, "dateCode": "20190219", "swBuildId": "6.1.1.27575", "zclVersion": 1, "interviewCompleted": true, "meta": { "configured": 2 }, "lastSeen": 1703149418656, "defaultSendRequestWhen": "immediate" }
On 21 Dec 2023, at 06:47, Koen Kanters @.***> wrote:
@nplawes https://github.com/nplawes Also tried on a device without duplicates... I now have duplicates :-(
Could you provide the data/database.db entry of this device?
— Reply to this email directly, view it on GitHub https://github.com/Koenkk/zigbee2mqtt/issues/19317#issuecomment-1865648201, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHWUMJL2A2YPDK6XGUQBH3YKPLO5AVCNFSM6AAAAAA6DD4C22VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRVGY2DQMRQGE. You are receiving this because you were mentioned.
I'm not sure which version broke
Are you sure you're running 1.34-dev version? My duplicated values were fixed just by pressing "Apply" on those values, and then refresh the web page.
I don't see a docker tag for 1.34-dev. There is a latest-dev, which hopefully is stable enough to not break my live environment :-)
And indeed that does seem to fix matters, with 'apply' and refresh page.
Also fixes the annoying persistent pop-ups, which I was going to report on next :-)
Thanks
/nick
On 21 Dec 2023, at 15:05, emandt @.***> wrote:
I'm not sure which version broke
Are you sure you're running 1.34-dev version? My duplicated values were fixed just by pressing "Apply" on those values, and then refresh the web page.
— Reply to this email directly, view it on GitHub https://github.com/Koenkk/zigbee2mqtt/issues/19317#issuecomment-1866442097, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHWUMIFJDPFUHGFT7BZOM3YKRF4VAVCNFSM6AAAAAA6DD4C22VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRWGQ2DEMBZG4. You are receiving this because you were mentioned.