Closed gruijter closed 3 years ago
athom api: 2.1.220 homey fw: 3.1.0
const device = await this.api.devices.getDevice(id);
results in a device instance of which the capabilitiesObj is not updated on every change in capability. It seems to be updated only a few times per hour. This means the capability values do not reflect the actual values of the device.
You should use Device.makeCapabilityInstance to get the latest values of value and lastChanged.
value
lastChanged
athom api: 2.1.220 homey fw: 3.1.0
const device = await this.api.devices.getDevice(id);
results in a device instance of which the capabilitiesObj is not updated on every change in capability. It seems to be updated only a few times per hour. This means the capability values do not reflect the actual values of the device.