Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to call 'Frontend' #25715

Closed
mcneilc opened this issue Jan 10, 2025 · 29 comments
Closed

Failed to call 'Frontend' #25715

mcneilc opened this issue Jan 10, 2025 · 29 comments
Labels
problem Something isn't working

Comments

@mcneilc
Copy link

mcneilc commented Jan 10, 2025

log.log

What happened?

Restarted previously working Zigbee2MWTT add on in Home Assistant. Z2M either halts on the error message below or hard crashes

What did you expect to happen?

Z2M to load up without errors

How to reproduce it (minimal and precise)

Start Z2M. No changes were made to a previously working set up

Zigbee2MQTT version

2.0.0.2

Adapter firmware version

2.6.8.dev26

Adapter

SLZB-06

Setup

Home Assistant Add On

Debug log

[07:59:36] INFO: Preparing to start...
[07:59:36] INFO: Socat not enabled
[07:59:36] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2025-01-10 08:00:52] error: z2m: Failed to call 'Frontend' 'stop' (TypeError: Cannot read properties of undefined (reading 'close')
at /app/lib/extension/frontend.ts:132:52
at new Promise ()
at Frontend.stop (/app/lib/extension/frontend.ts:132:15)
at Controller.callExtensions (/app/lib/controller.ts:368:17)
at Controller.stop (/app/lib/controller.ts:233:9)
at stop (/app/index.js:172:5)
at process.handleQuit (/app/index.js:180:13))

@mcneilc mcneilc added the problem Something isn't working label Jan 10, 2025
@mcneilc
Copy link
Author

mcneilc commented Jan 10, 2025

According to the debugs, Z2M is running and collecting data from zigbee devices but it's not passing the data on to Home Assistant. Whether this is related to the Frontend issue, I don't know.

@hemandk
Copy link

hemandk commented Jan 11, 2025

I have the same issue, Z2M add-on is running and connected to my Zigstar, but frontend fails to load and it is not possible to access any Zigbee devices in HA.

@Koenkk
Copy link
Owner

Koenkk commented Jan 11, 2025

Could you provide the debug log of this?

See this on how to enable debug logging.

Koenkk added a commit that referenced this issue Jan 11, 2025
@mcneilc
Copy link
Author

mcneilc commented Jan 11, 2025

@Koenkk
Copy link
Owner

Koenkk commented Jan 12, 2025

Could you provide the debug log directly from starting z2m?

@mcneilc
Copy link
Author

mcneilc commented Jan 12, 2025

I could’ve sworn those logs included that info. Unfortunately I don’t have access to the logs anymore as I restored to a backup then ended up installing the Z2M Edge version of the Home Assistant Add On. Happily for me, this fixed the issue but the logs are long gone now

@hemandk
Copy link

hemandk commented Jan 13, 2025

I can install 2.0 again and add full debug log later today if that helps?

@manuelkue
Copy link

manuelkue commented Jan 14, 2025

I have the same issue right now and zigbee2mqtt won't enable debug logs but keeps at the defaults as it seems 😒

[2025-01-14 10:56:56] error: 	z2m: Failed to call 'Frontend' 'stop' (TypeError: Cannot read properties of undefined (reading 'close')
    at /app/lib/extension/frontend.ts:132:52
    at new Promise (<anonymous>)
    at Frontend.stop (/app/lib/extension/frontend.ts:132:15)
    at Controller.callExtensions (/app/lib/controller.ts:368:17)
    at Controller.stop (/app/lib/controller.ts:233:9)
    at stop (/app/index.js:172:5)
    at process.handleQuit (/app/index.js:180:13))
[11:00:55] INFO: Preparing to start...
[11:00:55] INFO: Socat not enabled
[11:00:56] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.

I'll try to create debug logs later.

@manuelkue
Copy link

manuelkue commented Jan 14, 2025

After enabling debug in homeassistant/zigbee2mqtt/configuration.yaml instead of the homeassistant addon configuration it was possible to create debug logs containing the z2m start:

log.log

@maku-eso
Copy link

maku-eso commented Jan 15, 2025

Same issue on my updated z2m install.
Failed to call 'Frontend' 'stop' (TypeError: Cannot read properties of undefined (reading 'close') without any zigbee devices reporting to homeassistant (?)

So, no zigbee works in my homeassistant currently :(

@dominicusmento
Copy link

dominicusmento commented Jan 15, 2025

to me this started to happen after fw update on tube-zb-gw-cc2652p2-v2 (2023 -> 2024 fw versions).. I updated because some of the buttons stopped sending action even when using legacy.. Some buttons was working, others didnt.

@dominicusmento
Copy link

ok, I found the reason.. don't know how and why but the config server location in configuration.yaml for z2m has changed to mqtt://core-mosquitto:1883.. don't know what caused it as I certainly haven't changed that.. but it should be mqtt://localhost:1883
Fixed it.. Hopefully it works for others.. I see in the provided log file that it's the same.

@manuelkue
Copy link

manuelkue commented Jan 15, 2025

I finally managed to start my broken zigbee2mqtt addon again.
In my case, the reason were entries of my thermostats Popp 701721 in the database.db. After I deleted them there, z2m started again.

@Koenkk Can it be that the frontend cannot start with some specific database entries after the recent update?
When I re-pair the devices during runtime, everything works flawlessly.
After a restart of z2m the frontend won't start anymore with this paired devices, again.

My now removed entries in the db:

{"id":35,"type":"EndDevice","ieeeAddr":"0x3410f4fffe21b62b","nwkAddr":26931,"manufId":4678,"manufName":"D5X84YU\u0000","powerSource":"Battery","modelId":"eT093WRG","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":769,"inClusterList":[0,1,3,10,32,513,516,2821],"outClusterList":[0,25],"clusters":{"genBasic":{"attributes":{"modelId":"eT093WRG","manufacturerName":"D5X84YU\u0000","powerSource":3,"zclVersion":3,"appVersion":20,"stackVersion":8,"hwVersion":69,"dateCode":"20230928","swBuildId":"00.28.0008 00.28"}},"genPollCtrl":{"attributes":{"checkinInterval":1200}},"genPowerCfg":{"attributes":{"batteryPercentageRemaining":160}},"hvacThermostat":{"attributes":{"localTemp":1201,"danfossWindowOpenFeatureEnable":1,"danfossWindowOpenExternal":0,"danfossDayOfWeek":4,"danfossTriggerTime":660,"danfossAlgorithmScaleFactor":1,"danfossHeatAvailable":1,"danfossMountedModeControl":0,"danfossMountedModeActive":0,"danfossExternalMeasuredRoomSensor":-8000,"danfossRadiatorCovered":0,"danfossLoadBalancingEnable":1,"danfossLoadRoomMean":-8000,"danfossAdaptionRunControl":0,"danfossAdaptionRunSettings":1,"systemMode":4,"danfossLoadEstimate":1301,"occupiedHeatingSetpoint":1700,"setpointChangeSource":0,"danfossHeatRequired":1,"pIHeatingDemand":100,"danfossWindowOpenInternal":0,"danfossAdaptionRunStatus":2,"danfossPreheatStatus":0,"danfossPreheatTime":0,"programingOperMode":0}},"hvacUserInterfaceCfg":{"attributes":{"keypadLockout":0}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0x00212effff065527","endpointID":1},{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0x00212effff065527","endpointID":1},{"cluster":513,"type":"endpoint","deviceIeeeAddress":"0x00212effff065527","endpointID":1}],"configuredReportings":[{"cluster":1,"attrId":33,"minRepIntval":3600,"maxRepIntval":65000,"repChange":0},{"cluster":513,"attrId":0,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":8,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":18,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":16402,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16384,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16433,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16405,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16461,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16463,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678}],"meta":{}}},"appVersion":20,"stackVersion":8,"hwVersion":69,"dateCode":"20230928","swBuildId":"00.28.0008 00.28","zclVersion":3,"interviewCompleted":true,"meta":{"configured":1977182463},"lastSeen":1736939282440,"checkinInterval":300}
{"id":36,"type":"EndDevice","ieeeAddr":"0x3410f4fffe21b595","nwkAddr":30086,"manufId":4678,"manufName":"D5X84YU\u0000","powerSource":"Battery","modelId":"eT093WRG","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":769,"inClusterList":[0,1,3,10,32,513,516,2821],"outClusterList":[0,25],"clusters":{"genBasic":{"attributes":{"modelId":"eT093WRG","manufacturerName":"D5X84YU\u0000","powerSource":3,"zclVersion":3,"appVersion":20,"stackVersion":8,"hwVersion":69,"dateCode":"20230928","swBuildId":"00.20.0008 00.20"}},"genPollCtrl":{"attributes":{"checkinInterval":1200}},"genPowerCfg":{"attributes":{"batteryPercentageRemaining":156}},"hvacThermostat":{"attributes":{"danfossWindowOpenFeatureEnable":1,"danfossWindowOpenExternal":0,"danfossDayOfWeek":4,"danfossTriggerTime":660,"danfossAlgorithmScaleFactor":1,"danfossHeatAvailable":1,"danfossMountedModeControl":1,"danfossMountedModeActive":0,"danfossExternalMeasuredRoomSensor":-8000,"danfossRadiatorCovered":1,"danfossLoadBalancingEnable":1,"danfossLoadRoomMean":-8000,"danfossAdaptionRunControl":0,"danfossAdaptionRunSettings":1,"systemMode":4,"localTemp":1761,"danfossHeatRequired":1,"danfossLoadEstimate":496,"occupiedHeatingSetpoint":1750,"setpointChangeSource":2,"pIHeatingDemand":22,"danfossWindowOpenInternal":1,"danfossAdaptionRunStatus":2,"danfossPreheatStatus":0,"programingOperMode":0}},"hvacUserInterfaceCfg":{"attributes":{"keypadLockout":0}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0x00212effff065527","endpointID":1},{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0x00212effff065527","endpointID":1},{"cluster":513,"type":"endpoint","deviceIeeeAddress":"0x00212effff065527","endpointID":1}],"configuredReportings":[{"cluster":1,"attrId":33,"minRepIntval":3600,"maxRepIntval":65000,"repChange":0},{"cluster":513,"attrId":0,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":8,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":18,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":16402,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16384,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16433,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16405,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16461,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16463,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678}],"meta":{}}},"appVersion":20,"stackVersion":8,"hwVersion":69,"dateCode":"20230928","swBuildId":"00.20.0008 00.20","zclVersion":3,"interviewCompleted":true,"meta":{"configured":1977182463},"lastSeen":1736939056449,"checkinInterval":300}
{"id":37,"type":"EndDevice","ieeeAddr":"0x3410f4fffe21b2b8","nwkAddr":18882,"manufId":4678,"manufName":"D5X84YU\u0000","powerSource":"Battery","modelId":"eT093WRG","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":769,"inClusterList":[0,1,3,10,32,513,516,2821],"outClusterList":[0,25],"clusters":{"genPollCtrl":{"attributes":{"checkinInterval":1200}},"genPowerCfg":{"attributes":{"batteryPercentageRemaining":152}},"hvacThermostat":{"attributes":{"localTemp":2307,"danfossExternalMeasuredRoomSensor":2235,"danfossWindowOpenFeatureEnable":1,"danfossWindowOpenExternal":0,"danfossDayOfWeek":4,"danfossTriggerTime":660,"danfossAlgorithmScaleFactor":1,"danfossHeatAvailable":1,"danfossMountedModeControl":0,"danfossMountedModeActive":1,"danfossRadiatorCovered":0,"danfossLoadBalancingEnable":1,"danfossLoadRoomMean":-8000,"danfossAdaptionRunControl":0,"danfossAdaptionRunSettings":1,"systemMode":4,"occupiedHeatingSetpoint":550,"setpointChangeSource":2,"danfossLoadEstimate":1286}},"hvacUserInterfaceCfg":{"attributes":{"keypadLockout":0}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0x00212effff065527","endpointID":1},{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0x00212effff065527","endpointID":1},{"cluster":513,"type":"endpoint","deviceIeeeAddress":"0x00212effff065527","endpointID":1}],"configuredReportings":[{"cluster":1,"attrId":33,"minRepIntval":3600,"maxRepIntval":65000,"repChange":0},{"cluster":513,"attrId":0,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":8,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":18,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":16402,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16384,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16433,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16405,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16461,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16463,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678}],"meta":{}}},"appVersion":20,"stackVersion":8,"hwVersion":69,"dateCode":"20230928","swBuildId":"AAAABBBBCCCCDDDD","zclVersion":3,"interviewCompleted":true,"meta":{"configured":2121757828},"lastSeen":1736798457997,"checkinInterval":300}
{"id":38,"type":"EndDevice","ieeeAddr":"0x3410f4fffe21bf35","nwkAddr":2671,"manufId":4678,"manufName":"D5X84YU\u0000","powerSource":"Battery","modelId":"eT093WRG","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":769,"inClusterList":[0,1,3,10,32,513,516,2821],"outClusterList":[0,25],"clusters":{"genBasic":{"attributes":{"modelId":"eT093WRG","manufacturerName":"D5X84YU\u0000","powerSource":3,"zclVersion":3,"appVersion":20,"stackVersion":8,"hwVersion":69,"dateCode":"20230928","swBuildId":"00.28.0008 00.28"}},"genPollCtrl":{"attributes":{"checkinInterval":1200}},"genPowerCfg":{"attributes":{"batteryPercentageRemaining":170}},"hvacThermostat":{"attributes":{"localTemp":1759,"occupiedHeatingSetpoint":1750,"danfossWindowOpenFeatureEnable":1,"danfossWindowOpenExternal":0,"danfossDayOfWeek":4,"danfossTriggerTime":660,"danfossAlgorithmScaleFactor":1,"danfossHeatAvailable":1,"danfossMountedModeControl":0,"danfossMountedModeActive":0,"danfossExternalMeasuredRoomSensor":-8000,"danfossRadiatorCovered":0,"danfossLoadBalancingEnable":1,"danfossLoadRoomMean":-8000,"danfossAdaptionRunControl":0,"danfossAdaptionRunSettings":1,"systemMode":4,"setpointChangeSource":2,"danfossHeatRequired":1,"danfossLoadEstimate":690,"pIHeatingDemand":14,"danfossWindowOpenInternal":1,"danfossAdaptionRunStatus":2,"danfossPreheatStatus":0,"danfossPreheatTime":0,"programingOperMode":0}},"hvacUserInterfaceCfg":{"attributes":{"keypadLockout":0}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0x00212effff065527","endpointID":1},{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0x00212effff065527","endpointID":1},{"cluster":513,"type":"endpoint","deviceIeeeAddress":"0x00212effff065527","endpointID":1}],"configuredReportings":[{"cluster":1,"attrId":33,"minRepIntval":3600,"maxRepIntval":65000,"repChange":0},{"cluster":513,"attrId":0,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":8,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":18,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":16402,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16384,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16433,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16405,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16461,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16463,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678}],"meta":{}}},"appVersion":20,"stackVersion":8,"hwVersion":69,"dateCode":"20230928","swBuildId":"00.28.0008 00.28","zclVersion":3,"interviewCompleted":true,"meta":{"configured":1977182463},"lastSeen":1736939118408,"checkinInterval":300}
{"id":39,"type":"EndDevice","ieeeAddr":"0x3410f4fffe21b597","nwkAddr":64362,"manufId":4678,"manufName":"D5X84YU\u0000","powerSource":"Battery","modelId":"eT093WRG","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":769,"inClusterList":[0,1,3,10,32,513,516,2821],"outClusterList":[0,25],"clusters":{"genBasic":{"attributes":{"modelId":"eT093WRG","manufacturerName":"D5X84YU\u0000","powerSource":3,"zclVersion":3,"appVersion":20,"stackVersion":8,"hwVersion":69,"dateCode":"20230928","swBuildId":"AAAABBBBCCCCDDDD"}},"genPollCtrl":{"attributes":{"checkinInterval":1200}},"genPowerCfg":{"attributes":{"batteryPercentageRemaining":168}},"hvacThermostat":{"attributes":{"danfossWindowOpenFeatureEnable":1,"danfossWindowOpenExternal":0,"danfossDayOfWeek":4,"danfossTriggerTime":660,"danfossAlgorithmScaleFactor":1,"danfossHeatAvailable":1,"danfossMountedModeControl":0,"danfossMountedModeActive":0,"danfossExternalMeasuredRoomSensor":-8000,"danfossRadiatorCovered":0,"danfossLoadBalancingEnable":1,"danfossLoadRoomMean":-8000,"danfossAdaptionRunControl":0,"danfossAdaptionRunSettings":1,"systemMode":4,"localTemp":1581,"occupiedHeatingSetpoint":1600,"setpointChangeSource":2,"danfossThermostatOrientation":0,"danfossHeatRequired":1,"danfossLoadEstimate":676,"danfossWindowOpenInternal":1,"danfossAdaptionRunStatus":2,"pIHeatingDemand":9,"danfossPreheatStatus":0,"danfossPreheatTime":0}},"hvacUserInterfaceCfg":{"attributes":{"keypadLockout":0}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0x00212effff065527","endpointID":1},{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0x00212effff065527","endpointID":1},{"cluster":513,"type":"endpoint","deviceIeeeAddress":"0x00212effff065527","endpointID":1}],"configuredReportings":[{"cluster":1,"attrId":33,"minRepIntval":3600,"maxRepIntval":65000,"repChange":0},{"cluster":513,"attrId":0,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":8,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":18,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":16402,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16384,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16433,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16405,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16461,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16463,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678}],"meta":{}}},"appVersion":20,"stackVersion":8,"hwVersion":69,"dateCode":"20230928","swBuildId":"AAAABBBBCCCCDDDD","zclVersion":3,"interviewCompleted":true,"meta":{"configured":1977182463},"lastSeen":1736939237895,"checkinInterval":300}

And here my full database.db

Could it be something with the cluster problem that was noted here?
Koenkk/zigbee-herdsman#1286

At least in my log from above I found some frameparser errors of it:

debug: 	zh:deconz:frameparser: DATA_INDICATION RESPONSE - Error: Unsupported response reading for cluster ID '6'.

@manuelkue
Copy link

manuelkue commented Jan 16, 2025

@mcneilc can you try removing the entries of your zigbee database.db device by device and look when/if the z2m frontend starts again?

(backup your original database somewhere before)

Possibly you also have a device type in your database that prevents the frontend from starting like in my case the Popp thermostats, mentioned in the above comment.

@dommolHA
Copy link

Hi Folks,
Same problem here - I have 4 such devices Danfoss Ally (one of the clone of Popp) and after removing 1 of them from database.db FE became accessible.

What I noticed? In the same time, when the problems started, this device switched to mounting state (M on device) and lost connection.

@manuelkue
Copy link

@dommolHA Oh nice, at your setup it works with the 3 other Danfoss thermostats, though? So only one of the 4 devices caused z2m to break?
Could you compare the database-entries and find differences in them? Maybe it's some malformed data or some attribute that's incompatible.
Does z2m break when you copy this deviations to the non-breaking thermostats?

@dommolHA
Copy link

dommolHA commented Jan 16, 2025

@manuelkue yes, it works with these 3 Danfoss thermostats

I wasn't able to find differences, these database-entries look similar for me:

  • problematic one:
{"id":24,"type":"EndDevice","ieeeAddr":"0xMACmacMAC","nwkAddr":33800,"manufId":4678,"manufName":"Danfoss\u0000","powerSource":"Battery","modelId":"eTRV0103","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":769,"inClusterList":[0,1,3,10,32,513,516,2821],"outClusterList":[0,25],"clusters":{"genBasic":{"attributes":{"modelId":"eTRV0103","manufacturerName":"Danfoss\u0000","powerSource":3,"zclVersion":3,"appVersion":28,"stackVersion":8,"hwVersion":69,"dateCode":"20241126","swBuildId":"00.28.0008 00.28"}},"genPollCtrl":{"attributes":{"checkinInterval":1200}},"genPowerCfg":{"attributes":{"batteryPercentageRemaining":170}},"hvacThermostat":{"attributes":{"danfossLoadEstimate":529,"localTemp":2121,"pIHeatingDemand":28,"danfossPreheatStatus":0,"danfossWindowOpenFeatureEnable":1,"danfossWindowOpenExternal":0,"danfossDayOfWeek":4,"danfossTriggerTime":660,"danfossAlgorithmScaleFactor":1,"danfossHeatAvailable":1,"danfossMountedModeControl":0,"danfossMountedModeActive":0,"danfossExternalMeasuredRoomSensor":-8000,"danfossRadiatorCovered":0,"danfossLoadBalancingEnable":1,"danfossLoadRoomMean":-8000,"danfossAdaptionRunControl":0,"danfossAdaptionRunSettings":1,"systemMode":4,"danfossWindowOpenInternal":1,"occupiedHeatingSetpoint":2100,"danfossHeatRequired":1,"danfossAdaptionRunStatus":2,"setpointChangeSource":0}},"hvacUserInterfaceCfg":{"attributes":{"keypadLockout":0}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0xMACmacMAC","endpointID":1},{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0xMACmacMAC","endpointID":1},{"cluster":513,"type":"endpoint","deviceIeeeAddress":"0xMACmacMAC","endpointID":1}],"configuredReportings":[{"cluster":1,"attrId":33,"minRepIntval":3600,"maxRepIntval":65000,"repChange":0},{"cluster":513,"attrId":0,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":8,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":18,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":16402,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16384,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16433,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16405,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16461,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16463,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678}],"meta":{}}},"appVersion":28,"stackVersion":8,"hwVersion":69,"dateCode":"20241126","swBuildId":"00.28.0008 00.28","zclVersion":3,"interviewCompleted":true,"meta":{"configured":1977182463},"lastSeen":1736098332039,"checkinInterval":300}
  • non-problematic ones:
{"id":25,"type":"EndDevice","ieeeAddr":"0xMACmacMAC","nwkAddr":62015,"manufId":4678,"manufName":"Danfoss\u0000","powerSource":"Battery","modelId":"eTRV0103","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":769,"inClusterList":[0,1,3,10,32,513,516,2821],"outClusterList":[0,25],"clusters":{"genPollCtrl":{"attributes":{"checkinInterval":1200}},"genPowerCfg":{"attributes":{"batteryPercentageRemaining":158}},"hvacThermostat":{"attributes":{"danfossMountedModeActive":0,"localTemp":2188,"danfossWindowOpenFeatureEnable":1,"danfossWindowOpenExternal":0,"danfossDayOfWeek":4,"danfossTriggerTime":660,"danfossAlgorithmScaleFactor":1,"danfossHeatAvailable":1,"danfossMountedModeControl":0,"danfossExternalMeasuredRoomSensor":-8000,"danfossRadiatorCovered":0,"danfossLoadBalancingEnable":1,"danfossLoadRoomMean":-8000,"danfossAdaptionRunControl":0,"danfossAdaptionRunSettings":1,"systemMode":4,"danfossLoadEstimate":556,"danfossHeatRequired":1,"danfossWindowOpenInternal":1,"danfossPreheatStatus":0,"danfossAdaptionRunStatus":2,"occupiedHeatingSetpoint":2200,"setpointChangeSource":2,"pIHeatingDemand":31}},"hvacUserInterfaceCfg":{"attributes":{"keypadLockout":0}},"genBasic":{"attributes":{"modelId":"eTRV0103","manufacturerName":"Danfoss\u0000","powerSource":3,"zclVersion":3,"appVersion":28,"stackVersion":8,"hwVersion":69,"dateCode":"20230928","swBuildId":"00.28.0008 00.28"}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0xMACmacMAC","endpointID":1},{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0xMACmacMAC","endpointID":1},{"cluster":513,"type":"endpoint","deviceIeeeAddress":"0xMACmacMAC","endpointID":1}],"configuredReportings":[{"cluster":1,"attrId":33,"minRepIntval":3600,"maxRepIntval":65000,"repChange":0},{"cluster":513,"attrId":0,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":8,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":18,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":16402,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16384,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16433,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16405,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16461,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16463,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678}],"meta":{}}},"appVersion":28,"stackVersion":8,"hwVersion":69,"dateCode":"20230928","swBuildId":"00.28.0008 00.28","zclVersion":3,"interviewCompleted":true,"meta":{"configured":1977182463},"lastSeen":1736979867771,"checkinInterval":300}
{"id":26,"type":"EndDevice","ieeeAddr":"0xMACmacMAC","nwkAddr":36771,"manufId":4678,"manufName":"Danfoss\u0000","powerSource":"Battery","modelId":"eTRV0103","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":769,"inClusterList":[0,1,3,10,32,513,516,2821],"outClusterList":[0,25],"clusters":{"genBasic":{"attributes":{"modelId":"eTRV0103","manufacturerName":"Danfoss\u0000","powerSource":3,"zclVersion":3,"appVersion":28,"stackVersion":8,"hwVersion":69,"dateCode":"20241126","swBuildId":"00.28.0008 00.28"}},"genPollCtrl":{"attributes":{"checkinInterval":1200}},"genPowerCfg":{"attributes":{"batteryPercentageRemaining":156}},"hvacThermostat":{"attributes":{"pIHeatingDemand":44,"localTemp":2098,"danfossWindowOpenFeatureEnable":1,"danfossWindowOpenExternal":0,"danfossDayOfWeek":4,"danfossTriggerTime":660,"danfossAlgorithmScaleFactor":1,"danfossHeatAvailable":1,"danfossMountedModeControl":0,"danfossMountedModeActive":0,"danfossExternalMeasuredRoomSensor":-8000,"danfossRadiatorCovered":0,"danfossLoadBalancingEnable":1,"danfossLoadRoomMean":-8000,"danfossAdaptionRunControl":0,"danfossAdaptionRunSettings":1,"systemMode":4,"danfossLoadEstimate":556,"danfossHeatRequired":1,"danfossWindowOpenInternal":1,"danfossPreheatStatus":0,"danfossAdaptionRunStatus":2,"occupiedHeatingSetpoint":2100,"setpointChangeSource":2}},"hvacUserInterfaceCfg":{"attributes":{"keypadLockout":0}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0xMACmacMAC","endpointID":1},{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0xMACmacMAC","endpointID":1},{"cluster":513,"type":"endpoint","deviceIeeeAddress":"0xMACmacMAC","endpointID":1}],"configuredReportings":[{"cluster":1,"attrId":33,"minRepIntval":3600,"maxRepIntval":65000,"repChange":0},{"cluster":513,"attrId":0,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":8,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":18,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":16402,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16384,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16433,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16405,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16461,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16463,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678}],"meta":{}}},"appVersion":28,"stackVersion":8,"hwVersion":69,"dateCode":"20241126","swBuildId":"00.28.0008 00.28","zclVersion":3,"interviewCompleted":true,"meta":{"configured":1977182463},"lastSeen":1736979798543,"checkinInterval":300}
{"id":27,"type":"EndDevice","ieeeAddr":"0xMACmacMAC","nwkAddr":59844,"manufId":4678,"manufName":"Danfoss\u0000","powerSource":"Battery","modelId":"eTRV0103","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":769,"inClusterList":[0,1,3,10,32,513,516,2821],"outClusterList":[0,25],"clusters":{"genBasic":{"attributes":{"modelId":"eTRV0103","manufacturerName":"Danfoss\u0000","powerSource":3,"zclVersion":3,"appVersion":28,"stackVersion":8,"hwVersion":69,"dateCode":"20230928","swBuildId":"00.28.0008 00.28"}},"genPollCtrl":{"attributes":{"checkinInterval":1200}},"genPowerCfg":{"attributes":{"batteryPercentageRemaining":200}},"hvacThermostat":{"attributes":{"danfossWindowOpenFeatureEnable":1,"danfossWindowOpenExternal":0,"danfossDayOfWeek":4,"danfossTriggerTime":660,"danfossAlgorithmScaleFactor":1,"danfossHeatAvailable":1,"danfossMountedModeControl":0,"danfossMountedModeActive":0,"danfossExternalMeasuredRoomSensor":-8000,"danfossRadiatorCovered":0,"danfossLoadBalancingEnable":1,"danfossLoadRoomMean":-8000,"danfossAdaptionRunControl":0,"danfossAdaptionRunSettings":1,"systemMode":4,"danfossLoadEstimate":377,"danfossHeatRequired":1,"localTemp":2097,"danfossWindowOpenInternal":1,"danfossPreheatStatus":0,"danfossAdaptionRunStatus":2,"pIHeatingDemand":9,"occupiedHeatingSetpoint":2100,"danfossPreheatTime":0,"setpointChangeSource":2}},"hvacUserInterfaceCfg":{"attributes":{"keypadLockout":0}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0xMACmacMAC","endpointID":1},{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0xMACmacMAC","endpointID":1},{"cluster":513,"type":"endpoint","deviceIeeeAddress":"0xMACmacMAC","endpointID":1}],"configuredReportings":[{"cluster":1,"attrId":33,"minRepIntval":3600,"maxRepIntval":65000,"repChange":0},{"cluster":513,"attrId":0,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":8,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":18,"minRepIntval":0,"maxRepIntval":3600,"repChange":10},{"cluster":513,"attrId":16402,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16384,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16433,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16405,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16461,"minRepIntval":60,"maxRepIntval":3600,"repChange":1,"manufacturerCode":4678},{"cluster":513,"attrId":16463,"minRepIntval":60,"maxRepIntval":65000,"repChange":1,"manufacturerCode":4678}],"meta":{}}},"appVersion":28,"stackVersion":8,"hwVersion":69,"dateCode":"20230928","swBuildId":"00.28.0008 00.28","zclVersion":3,"interviewCompleted":true,"meta":{"configured":1977182463},"lastSeen":1736979935944,"checkinInterval":300}

EDIT:
I performed such test - put

"id":24,
"ieeeAddr":"0xMACmacMAC","nwkAddr":33800,

into row with data with "id":26 - without success, FE doesn't start.

@manuelkue
Copy link

manuelkue commented Jan 17, 2025

@dommolHA do you probably use a ConBee adapter as well? E.g. a ConBee II / III?
In the next few days I will receive a SLZB-07p7 and will try if the thermostats work with it.

into row with data with "id":26 - without success, FE doesn't start.

Do you mean by that, when you just add the "nwkAddr":33800 to the previously working entry z2m won't start afterwards?

Temporary fix:
Remove the affected devices, start z2m and re-pair them. Sideeffect: Next restart of z2m will crash again.

@dommolHA
Copy link

@manuelkue ConBee II, SLZB-06 is waiting for replacement...

into row with data with "id":26 - without success, FE doesn't start.

Do you mean by that, when you just add the "nwkAddr":33800 to the previously working entry z2m won't start afterwards?

I replaced "ieeeAddr" too.

One more thing about these 3 devices - I was able to start FE, but not able to set temperature, gauges were greyed out.

I fixed it by removing all of these devices and re-pairing. FE doesn't crash after restarts.

@10Thirty
Copy link

I'm also experiencing the same issue but with Hive UK7004240 TRV`s which also show as Danfoss in the database.db.

I currently run 2 Zigbee2MQTT instances, one running the HA addon and one running via docker in unraid, both using UZG-1. The valves were originally on the addon instance a couple of weeks ago which refused to start after rebooting the Pi4 HA is running on. I removed all the valves from that instance and paired them with the one on unraid just to get the heating running again. I manually edited the database.db to remove the valves and the HA addon started without issue and I though "wierd, but ok". The unraid instance had been running fine, even surviving a few restarts due to backups and OS updates. Then last night that instance crashed and refused to start up. I removed them from the database.db and re-paired them last night and they all seemed to work fine after that, then this morning I tried restarting Zigbee2MQTT and it once again hung on startup. Rolled back to 1.42.0 and everything started up fine.

@Koenkk if you still need debug logs I should be able to supply them tomorrow assuming my house survives storm Éowyn and we still have power.

@manuelkue
Copy link

In the next few days I will receive a SLZB-07p7 and will try if the thermostats work with it.

The SLZB-07p7 arrived, I re-paired all devices including the TRVs and restarted the server multiple times since then. So far, no z2m- crashes happened since the coordinator replacement 🤷‍♂️
But as @10Thirty reported this also happening with another coordinator than the ConBee, I don't have too much trust in this setup yet.

@mcneilc
Copy link
Author

mcneilc commented Jan 24, 2025

@mcneilc can you try removing the entries of your zigbee database.db device by device and look when/if the z2m frontend starts again?

(backup your original database somewhere before)

Possibly you also have a device type in your database that prevents the frontend from starting like in my case the Popp thermostats, mentioned in the above comment.

I ended up moving to Z2M Edge which worked first time so I don't have any logs to provide. Very interesting that it's been narrowed down to Danfoss TRVs as I've got about 12 Hive TRVs plus the Hive thermostat and boiler control which to my knowledge are just the same as Danfoss. Whatever the issue was/ is, it's went away in Edge

@HungryZebra563
Copy link

I have the same issue with Danfoss Ally TRV. Lots of frameparser errors and no frontend. However, in my case the frontend would not be accessible immediately, but somehow it became accessible after 1 day or so. Really strange.

Moved Z2M Edge, the frontend is immediately available after a restart, but the frameparser errors persist, and the entities are unavailable in home assistant

[2025-01-25 08:52:56] debug: zh:deconz:frameparser: DATA_INDICATION RESPONSE - Error: Unsupported response reading for cluster ID '0'.

@spookoly
Copy link

spookoly commented Jan 26, 2025

Same problem for me with lots of errors, no frontend, and no communication with HA or node-red. Also just paired four Danfoss Ally TRVs, but I have a SLZB-06. So the issues doesn't appear to be linked to the coordinator from what others have said.

Everything runs as normal when the TRVs are removed from my db.

@michaelsidenius
Copy link

Removed my 10 Danfoss Ally TRVs from the database.db and frontend runs now again. Seems like it stopped during the backup this night.

@libussa
Copy link

libussa commented Jan 30, 2025

SLZB-06M here, same issue.
I have 5 Danfoss TRVs, tried removing one by one, but only one ended up fixing the situation (I re added all but one in the end)

@stkr22
Copy link

stkr22 commented Feb 1, 2025

At least for me the issues was fixed by updating to latest-dev. I guess the fix by @Koenkk helped.

@Koenkk
Copy link
Owner

Koenkk commented Feb 2, 2025

Should be fixed in z2m 2.1.0 indeed!

@Koenkk Koenkk closed this as completed Feb 2, 2025
@spookoly
Copy link

spookoly commented Feb 2, 2025

Should be fixed in z2m 2.1.0 indeed!

Have updated to 2.1.0 and looking great so far. Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests