Comments (4)
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.
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.
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.
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)
- Can't access interface after local setup on MacOS + Docker HOT 2
- 6.1.0b1: commission_with_code fails (AttestationVerification)? HOT 11
- Provide underlying errors back to client HOT 1
- ImportError after upgrading from 5.7.0 to 6.1.2 HOT 1
- Developer Build Lacking Http 5580 Dashboard
- OSError: [Errno 105] No buffer space available
- Web Interface - Entity Name Issue
- Python Matter Server - Repeats Attribute Information for Clusters HOT 2
- Chip error HOT 1
- ATTENTION: Node x (yz) did not complete setup in 30 minutes. - Nodes stuck in setup HOT 2
- 6.3.0: Bluetooth commissioning is not available HOT 8
- Feature request: Ability to set Binding (x/30/0) attribute from dashboard HOT 9
- Feature request: Ability to send arbitrary commands from dashboard HOT 1
- Checksum mismatch even though checksum is correct HOT 3
- Feature request: Ability to update node firmware from provided Url HOT 11
- matter server doesn't properly handle SIGTERM when server failed to start HOT 2
- pip dependency chain is broken HOT 3
- Error 502: Bad Gateway HOT 1
- Bridged devices add/remove issues
- Generate Descriptions failing in dashboard script/setup HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-matter-server.