Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last Time Message #80

Closed
cagnulein opened this issue Nov 15, 2020 · 6 comments
Closed

Last Time Message #80

cagnulein opened this issue Nov 15, 2020 · 6 comments

Comments

@cagnulein
Copy link

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?

@Kane610
Copy link
Owner

Kane610 commented Nov 15, 2020

Sure it can be added to pydeconz

@cagnulein
Copy link
Author

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

@Kane610
Copy link
Owner

Kane610 commented Nov 15, 2020

Feel free to contribute 👍🏻

@cagnulein
Copy link
Author

@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?

@Kane610
Copy link
Owner

Kane610 commented Nov 15, 2020

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

@cagnulein
Copy link
Author

Immagine

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants