Z2m sensor linking lost from HA UI after Sonoff ZigBee 3.0 firmware update

Hello,

I got a fun problem after updating my Sonoff ZigBee 3.0 dongle firmware. I lost my network key (it was not in the configuration.yaml file) and I couldn’t restore z2m configs (z2m failed to boot). So I had to pair every sensor again and now HA doesn’t link the UI buttons to sensors.

image

Is there an easy fix for this or do I just have to link everything again?

The easy fix is to rename the entity ids in the newly paired entities once you know what it used to be. If you do that, all places that you used the entity will immediately know which entity it is supposed to be again. If you go the other way, you need to replace every single use with the new entity id.

Ps. If I add a new integration and it spits out unrecognisable entity id’s, I immediately rename the entity id so it is readable. That makes it easier to write automations and replace devices afterwards.