zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

TypeError: Cannot read property 'ID' of undefined

Open paavokurkela opened this issue 5 years ago • 6 comments

Hey. My network has been unchanged for a while and everything worked fine. Just out of the blue one of my Ikea buttons didn't work anymore. Assumed battery and replaced it without success. I gave a look to logs and found this out:

https://pastebin.com/G8pmJTst

Effectively I can't add or remove any devices from web frontend or change log level but I can use most of my devices and my automations at Home Assistant / Nodered works.

I have TI2531 reflashed to latest source routing firmware. Home assistant runs in container under Debian and Z2M is on latest version as well.

Please see my config here: https://pastebin.com/5SKzwe5b

Cheers, Paavo

paavokurkela avatar Nov 20 '21 08:11 paavokurkela

Could you provide your data/database.db?

Koenkk avatar Nov 20 '21 12:11 Koenkk

Absolutely, please fin it here: https://pastebin.com/BF4PZC8E

paavokurkela avatar Nov 20 '21 12:11 paavokurkela

Thanks, could you also post your data/configuration.yaml? (not the one from HA)

Koenkk avatar Nov 20 '21 13:11 Koenkk

Not sure do I follow. Would you like to see Z2M's configuration.yaml? https://pastebin.com/5SKzwe5b

paavokurkela avatar Nov 20 '21 13:11 paavokurkela

Could you:

  • stop z2m
  • remove this line from data/database.db: {"id":14,"type":"Group","groupID":null,"members":[],"meta":{}}
  • start z2m
  • see if they problem has been fixed

Koenkk avatar Nov 20 '21 18:11 Koenkk

Yes, that does it!

I suspected it as well but didnnt realize z2m should be stop before editing database.

Thank you for your help!

paavokurkela avatar Nov 20 '21 18:11 paavokurkela