Kane610/deconz

Last Time Message

Closed this issue ยท 6 comments

I would like to have a property for each sensor that it will return the timestamp of the lastest message received.

It will be very useful in order to understand if a sensor is available or not.

What do you think?

Sure it can be added to pydeconz

@Kane610 if you want I can help to develop it or to test it

Feel free to contribute ๐Ÿ‘๐Ÿป

@Kane610 awesome! Just to be sure to do a useful work, where is, in your opinion the correct point to add this property? And also, is there already a similar property in the rest api or you are thinking about deriving it?

It is probably available for all devices and groups and everything so I guess https://github.com/Kane610/deconz/blob/master/pydeconz/deconzdevice.py is the place to put it. IIRC that attribute does exist yes, you can even check the mock data in tests might already contain it

Immagine

i solved in this way, the state has been alread implemented :) thanks again!