Fixed an issue in the BOND Home Integration
app code that was not properly updating a fan's light device's status in Hubitat when the device was operated using the Bond native (local) control.
Because the bug was in the core app code, this requires updating your installed instance of app code instead of creating a new file and switching to it like as with drivers.
Get the updated code here: BOND_Home_Integration.groovy
Open up BOND Home Integration
under Apps code
and replace the entire code base with the code from my file linked above. Once you have save the update, go to each instance of BOND Home Integration
under Apps
and click Next
, Next
, Done
to reload the code base.
You may or may not see [error] getDeviceById: 404 - null
in the logs. If only seen when you perform the app reload, it can safely be ignored.
The app, by default, pulls the latest Bond device state every thirty seconds (you can change the interval in the app configuration). So changes to the device using the native/local Bond interface will be reflected in the light driver state within 30 seconds of any change. This will keep the Hubitat driver in sync with the light and also facilitate proper behavior with other apps that monitor and react to device driver state such as Rule Machine
and Switch Bindings 2.0.
Edit - Footnote: my Bond fans only have one light. if you have a Bond fan with a top and bottom light, I'd appreciate feedback if this code change works with both light devices in Hubitat. The code as DMan had it is slightly different from a single light so my fix for the dual light is a blind edit.