Coder Social home page Coder Social logo

Comments (4)

marcelveldt avatar marcelveldt commented on September 27, 2024

the client device defines how often it sends attribute changes. all we do is define a floor and ceiling.
We set the floor to 0 seconds (so as soon as possible) and the ceiling depends on of the device is battery powered or not but is a rather high value of a few minutes to detect if the device is still alive. Within those limits the device sends attribute updates as soon as it wants

from python-matter-server.

olavt avatar olavt commented on September 27, 2024

Ok, so if I understand it correctly a Matter Accessory Device updating the attribute will immediately be picked up by the Python Matter Server and then sent over the web socket to the client?

I haven't looked closely, but to mee it seemed that updates from several devices where sent to the client at the same time (like every minute). But, I need to test this more.

What happens if I have a device not sending any attribute updates for a long time? That could happen with a lot of devices (like movement sensors)?

from python-matter-server.

marcelveldt avatar marcelveldt commented on September 27, 2024

Ok, so if I understand it correctly a Matter Accessory Device updating the attribute will immediately be picked up by the Python Matter Server and then sent over the web socket to the client?

YES

I haven't looked closely, but to mee it seemed that updates from several devices where sent to the client at the same time (like every minute). But,, I need to test this more.

Some devices are flaky. For example I've seen matter bridges that jus send all attributes at every ceiling interval (so every minute). In fact I've added some code today to filter out those redundant messages.

What happens if I have a device not sending any attribute updates for a long time? That could happen with a lot of devices (like movement sensors)?

If a device misses its interval ceiling repot interval, it gets marked as offline and polled for status until its back again.
So as long as a device is still working, it will send updates at each interval. So a battery node such as a motion sensor will wake up at that interval as well to inform the controller(s) that its still there

from python-matter-server.

olavt avatar olavt commented on September 27, 2024

I have tested this and updates are arriving when the Matter Accessory devices are changing attributes. I have tested this with a Smart RGBTW Bulb and when changing color, the updates are arriving quite frequent (multiple messages per second).

from python-matter-server.

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.