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

Async get characteristic #103

Open
makleso6 opened this issue Feb 18, 2020 · 5 comments
Open

Async get characteristic #103

makleso6 opened this issue Feb 18, 2020 · 5 comments

Comments

@makleso6
Copy link
Contributor

Hi! Is it possible to notify that accessory characteristic will/did get and async return new characteristic value
(trying to remove overhead with update characteristic by timer)

@Bouke
Copy link
Owner

Bouke commented Feb 19, 2020

I think what you want is tracked by #13. There’s currently no support for that, but I would welcome a PR for that!

@makleso6
Copy link
Contributor Author

I'll try to add it

@gbrooker
Copy link
Contributor

This is implemented in Pull request #55

@Bouke
Copy link
Owner

Bouke commented Jun 6, 2020

Beware that updating the characteristic async will return stale data until a refresh is performed. Also if there's no periodic update, any defined triggers based on value thresholds will not fire. So I'd advice to still perform a periodic update with a certain frequency to match your use-case.

@makleso6
Copy link
Contributor Author

makleso6 commented Jul 3, 2020

Yes, periodic update sometimes needed.

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

3 participants