zyonse / homebridge-dreo

Apple HomeKit integration for Dreo Smart Devices
https://www.npmjs.com/package/homebridge-dreo
Apache License 2.0
29 stars 17 forks source link

Force HomeKit update when values change upstream #21

Closed mganjoo closed 8 months ago

mganjoo commented 9 months ago

While upstream Dreo app setting updates are reflected in the internal state of FanAccessory, this is not enough to trigger an update in HomeKit, which happen later, such as when refreshing the app, or when reloading the Accessories page in HomeBridge UI.

This change explicitly calls updateValue on the corresponding characteristic in response to this external trigger, which causes the accessory state to update instantaneously.

Tested this with DR-HAF003S on a local Homebridge installation.

zyonse commented 8 months ago

Thanks for the pull request! this should also fix #17