[App][Pro] OpenWeather

New test version 1.8.1:

  • Added OneCall 4.0 API.

The OneCall devices now support OWM OneCall API 4.0.
You can select the API version while adding the “Location” device or in device settings.

There are some changes you have to know to calculate the amount of used API calls and find a matching polling interval.
The 4.0 API is not longe a “one call” API. OWN changed it. Every type of data must be read now with a seperate call.

  • If OneCall 4.0 is selected, the Location device is reading the current weather data (1 API call)
  • If you have assigned daily forecast devices, another call is done (1 call for the whole forecast data, so 1 call for all daily forecast devices).
  • If you have assigned hourly forecast devices, another call is done (1 call for the whole forecast data, so 1 call for all hourly forecast devices).
  • If you have alert devices assigned and alerts are present in current weather data, 1 call for every alert is done.

There are also changes in provided data. Daily forecast devices are not providing all data compared to 3.0. Description and weather type is missing. The capabilities will be empty in your devices.

In summary, you should stay at API 3.0 if you have already a subscription.
If you have to use 4.0 (if 3.0 is not possible to select for new users), you have to check the amount of API calls that are needed to find a matching polling interval.

@Bramweer FYI and test