dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.89k stars 496 forks source link

0x26220500: Hue motion sensor lost #771

Closed ebaauw closed 5 years ago

ebaauw commented 6 years ago

I've been running v2.05.37 and 0x26220500 for over a day now. Yesterday evening, two of my Hue motion sensors were blinking red on detecting motion, but they seem to have recovered automagically. As of this afternoon, deCONZ no longer receives reports from another Hue motion sensor. Tried removing/re-inserting the batteries, as well as a brief press on the reset button, but no joy. I had to reset and re-pair the motion sensor, to solve the situation.

manup commented 5 years ago

IS this just a frontend bugg i Phoscan App? Or is this indicating that something is broken in my system?

Yes there is a open bug in the App sometimes not showing current firmware (as shown in the logs) this will be fixed soon.

Im running headless ubuntu server and my setup has been running super smoothly until there was a power outage in the building. When i got booted up again no lights where found anymore, and this resulted in doing firmware updates and updating deconz to the latest version. Now it seems like nothing is working anymore. Any ideas for what problem i'm running into here?

It looks like the database or filesystem got a hit, only a assumption but deCONZ might have restored a previous setting /network on which your lights aren't part anymore.

You may check the zll.db file with sqlitebrowser if the old configuration is still there table is zbconfig (I think) and any change to network settings are recorded there.

When you run a device scan in the old webapp you should get some result where the lights are (channel, network pan id).

To prevent this in future please always create a backup as mentioned above.

mansdahlstrom1 commented 5 years ago

Thanks for the info @manup !

I've tried what u said and got no result unfortunately... I will keep trying a bit more later. One question thou.

The table zbconf was empty. and i clear all rows from the devices table. But no change it seems like. I also did the network scan i the old app. And nothing shows upp there :/

Is it posible for the lights to connect to open network? A open network in my building recently popped up and what I'm thinking is that the lights auto connected to that network while my network / server was down. Is that even posible ?

manup commented 5 years ago

The table zbconf was empty. and i clear all rows from the devices table. But no change it seems like. I also did the network scan i the old app. And nothing shows upp there :/

That's not good, I guess in worst case you need to rejoin all devices.

Is it posible for the lights to connect to open network? A open network in my building recently popped up and what I'm thinking is that the lights auto connected to that network while my network / server was down. Is that even posible ?

Only when the lights where reset, but more likely they are just on the old network while your gateway is on a other one.

When you scan for devices in the old webapp you might see where the other network is (network channel and pan id).

mansdahlstrom1 commented 5 years ago

That's not good, I guess in worst case you need to rejoin all devices.

That's my goal. I've reset all my lights and update FW + Deconz.

but more likely they are just on the old network while your gateway is on a other one.

Can you explain in more detail what you mean with "old network"? My network is stil the same, and i've plugged the ConBee into the server that is running without wifi, only ethernet cable (Not even an antenna connected). Can the issue be linked to the router?

EDIT:

Just took another look at the old web app and found one of my lights! It's disappeared equally fast again but i managed to find that the light was on a different channel and had a different network id, even thou it has been reset multiple times since the problem first occurred. Should the device have a network id even thou it has been reset?