Bouke/HAP

Async get characteristic

makleso6 opened this issue · 5 comments

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 commented

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

I'll try to add it

This is implemented in Pull request #55

Bouke commented

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.

Yes, periodic update sometimes needed.