python-matter-server icon indicating copy to clipboard operation
python-matter-server copied to clipboard

Attribute timestamp?

Open olavt opened this issue 1 year ago • 3 comments

Ideally each attribute should have a timestamp in order for the client to be able to determine the time for when the attribute value was last updated.

olavt avatar Mar 29 '24 21:03 olavt

For now I don't see much benefit in this - it requires a big change in the datamodel and its less efficient. What I can imagine as a middle-ground is a timestamp on node level to update when ANY attribute updates.

What we do in HA is just treat all attributes as new/updated at startup and then just listen to all attribute changed events.

marcelveldt avatar May 15 '24 09:05 marcelveldt

It would certainly help to have a timestamp at the node level.

olavt avatar May 16 '24 07:05 olavt

It would certainly help to have a timestamp at the node level.

OK, I'll see if I can add that quickly in somewhere in the next couple of days

marcelveldt avatar May 20 '24 15:05 marcelveldt