jtebbens / com.homewizard

Homewizard app for Homey
9 stars 7 forks source link

Response from HomeWizard Energy `api/v1/data` endpoint will be changed #79

Closed DCSBL closed 1 year ago

DCSBL commented 1 year ago

Hello! I am a developer @HomeWizard, and I would like to inform you about a change in the HomeWizard Energy local API;

In 1 or 2 months the local API response will be changed a bit; NULL datapoints are not send anymore. See https://homewizard-energy-api.readthedocs.io/changelog.html#id1

Also, all datapoints in api/v1/data are now optional. This means that data that is unknown is not send at all. This behaviour is chosen because the API is going to support more datapoints in the near future and we have to be more compatible with different telegrams.

For example, Sweden does not have tariffs and Hungary has 4 different tariffs, currently the API always sends two. In the future the API sends 0 to 4 totals (one for each tariff)

Examples are added to the API documentation here. If you have any question, feel free to ask!

jtebbens commented 1 year ago

Thank you for the heads up + email. Currently busy with the SDKv3 migration as that will be mandatory for the Homey Pro 2023 which requires the SDKv3 compatibility. I will adjust the code to at least make it conditional based data so fetch errors (no data points) will be covered.

jtebbens commented 1 year ago

Sorted