When using the GET /devices/{serialNumber}/battery endpoint with both query parameters start and end provided, the response could include battery history before the provided time range. This has now been fixed.
The issue was present only when using the start and end parameters together and with relatively low-time ranges (e.g., 10 hours). It was a fallback mechanism to ensure that the response always includes the latest battery status. The fallback mechanism has now been removed. You can increase the time range or use the latest battery endpoint to fetch the latest battery status.
As a part of improving and introducing a major update on our Webhook service, we've updated the payload format for hub-meta-data-feed events. The main change is that the value of the "data" key is now an array instead of an object. The reason for this change is to;
Improve consistency between the event types, as all other events follow this format
Allow more data to be sent in one Webhook, to reduce the amount of events you receive.
Here, is the updated the payload posted from the new webhook system.
Now, there are two new properties in the response:
airflow - cubic meters per hour (mΒ³/h)
airExchangeRate - air changes per hour (ACH)
The availability of the virtual sensors will depend on your device type, and if the feature is enabled for the device in
the Dashboard. airflow is only available for devices where room size information has been entered.
As we are moving away from using measurement system (Metric or Imperial) to define sensor units in Webhooks,
and making it possible to select units per sensor instead, we're making some updates to the API
In summary:
measurementSystem is removed from the response to requests about webhooks
sensorUnits is mandatory when adding a webhook
Changes to the webhook system is documented in the Webhook changelog.
As we are moving away from using measurement system (Metric or Imperial) to define sensor units, and making it possible to select units per sensor instead, we're making some updates to Webhooks.
sensorUnits was introduced on 2021-12-06 to eventually replace measurementSystem, so measurementSystem will now be removed from webhook payloads coming from the new system.
Changes to the API is documented in the API changelog.