Pls help! lost one sensor, but quite strange? entites available but shown as not found?

hi,

first a little bit of history, what might be interesting:
i have a couple of aqara temperature zigbee sensors for quite a while, connected via sonoff usb stick and zigbe2mqtt over mosquito.
one of the “oldest” and (most important) stopped working after 2 years, i thought about battery. As it is my outdoor sensor and it was raining, i could have been replaced battery earlies after a couple of weeks off time. usually i have to replace batteries and instantly sensors coming back, or additionally i have to push with zigbee2mqtt permit join and pressing paring button on sensor for some seconds… for all sensor this works quite good, sometimes i have to wait a couple of hours beeing available again. same this time. my outdoor sensor came back in z2m, good and stable lqi >150 . after some days sensor was off again. quite strange at it drops from stable 150lqi. i was curious device has some misfunctions over the time (it´s rainsheltered, but exposed to air moisture and outdoor temperatures), but anyhow. so i had redo paring with zig2mqtt, it came back again and since then it worked for some weeks until i was unavailable again? grrr… due to rainy days it took once again at least 2 weeks for taking care of that sensor
but now the strange things happend!
as it was not longer unavailable in hassio overall i realized this sensor (or device) was not longer in my zig2mqtt device list? such things never happend to my 2 years and aprox. 150 zigbee devices?
i had NO udpates in meantime for HASSIO, zigbee etc. (latest update in Sept, but now prob started in end of Oct/begin of Nov…), i had just “restarted” zig2mqtt integration manually (instead of rebooting hole decice as i had done usually)

ok so i tryied first to reboot of my hole raspi system, but this dit not helped either: device still lost in z2m!
so in a dry timesplot, i does an device reapairing as usual and device came back to zigbe2 , stable aprox 150 lqi, nearly 100% battery (and all names of device and all related single entities of that device do have exact the old names, whats good, because is not not the default z2m usually creates it, so it remembers “some how” and had not created “new” device id?) showing states, mosquito shows all sensors (temp, battery etc.) i can access history from entities search in hasio and from mosquito device page.
BUT in all dashboards and automations it´s broken! even simple entity cards showing sensor as “Entity not found”


and all integrations and automations etc, what uses that entities showing similar errors…

i created new entity card and it shows it well… so i started “replacing” the same entity in cards and it works now (unfortunately this entity i have on nearly all of my dashbards, automations etc.), quite anoying…

question(s):

  • how could a whole device get lost in zig2mqtt? usually if devices physically broke or run out of power, they still appear in device list of z2m for years until manually deleted? is my z2m installation unstable or corrupted?
  • why are all entities (with same names) not available after recreation of device in dashboards only? some how internal ids not matching anymore or what? because history and device pages are showing it alive and recording in the same history of last two years?
    quite strange? i´m a little bit afraid about the stability and safety of my data and installation?
    note. i had downloaded via HACS “Plotly Graph Card v3.3.5”, but this wa at 8st nov

could i do somehow a healing of that entity, or do i have to “reenter” this entitys in all my dashboards and automations manually, what is literally not a change anyhow just reasigning the same entity again? maybe some caching in hassio folders, or deleting some files what will be reacteated be restart of hassio an all will be good? so any fency developers hacks to heal this?

some help is apreciated!
thanx in advance
br
Frank

ps: edited. entity is shown anyhow as broken…

one additional thought: is there anyhow a limit for zigbee devices to the sonoff usb stick coordinator? or/and zigbee2mqtt?

at the moment i do have 121 devices in z2m (including 9 sonoff routers). mesh is now for months/years, just added some temp or door sensors this year…

sorry i was wrong, all the newly re-paired sensor entities got new names, according the “friendly name” i had given the device in zigbee2mqtt in the past?

i usually rename my zigbee devices in z2m once with option “update Home Assistant ID”, then rename it twice and add an area to the name, but without updating HA-IDs. seems the re-creation of the missing decive by reapiring used the “remembered” device name and created entities with that name without my interaction…



i could rename all entities manually, but i used zigbee2mqtt to do it for all at once. so i renamed it the “old name” with zigbee2mqtt and updated all entities too, in good hopes it will follow the historical data too.
And it did! :face_exhaling:

sorry for consuing.

nevertheless i would like to know how it could happend that a single device will be “invisible/deleted” in z2m by accident?

You said it was placed outside for a couple of years. I wouldn’t rule out corrosion or moisture. All it takes is for the tiny gap in the solder points under the button to short out for a couple of seconds to simulate a long button press and cause your device to unpair from the network.

Either disassemble it and give the circuit board a good clean with isopropyl alcohol and a toothbrush, or replace the sensor with a new one.