Coder Social home page Coder Social logo

Comments (2)

mdeweerd avatar mdeweerd commented on August 19, 2024

This is something regarding an event that is generated and discarded in zigpy itself.

Raising (enqueing the event):
https://github.com/zigpy/zigpy/blob/0.53.1/zigpy/appdb.py#L275-L282

Discarding:
https://github.com/zigpy/zigpy/blob/0.53.1/zigpy/appdb.py#L199

The reason why it is discarded seems to be because the PersistingListener is not know to be "running".
Which seems to be set as soon as the Listener object is created:
https://github.com/zigpy/zigpy/blob/0.53.1/zigpy/appdb.py#L275-L282

And it will not be set when there is some issue when initialising the tables, or when the listener is shut down (which I suppose would happen when HA is stopped/restarted).

My best guess is that there is some issue with the zigbee database, maybe you find hints for that in the log. I do not think this is related to zha-toolkit, but I believe that the reads "enqueue" the events and when it is treated in the queue it is discarded because that listener is not set as "running".

Beyond analyzing the log, you could probably check the sqlite3 database(s) for errors.
The listener's initialiser checks for the integrity itself and should then result in a message in the log:
https://github.com/zigpy/zigpy/blob/0.53.1/zigpy/appdb.py#L275-L282

from zha-toolkit.

antfurn avatar antfurn commented on August 19, 2024

A restart of my Home Assistant instance did indeed fix it.
When I have some time I'll try to dig into the logs.

Thanks for the looking at this and explaining it.

from zha-toolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.