The Devices
Current weather (location)
First, you need a location for which you want to get weather data.
So add a new device and select the device type “Current weather (location)”:
In the next step you can set the device properties:
- The OWM API key
- A city name. Leave blank to use Homeys location.
- A polling interval in minutes. Take a interval to keep below 1000 API calls a day. Every current weather device is calling the API at this interval.
The next step displays a list of found cities:
Select your city and the device gets added.
You can change the device settings at any time:
Forecast devices
A forecast device is a “child” device of a “Current weather” device.
If you add a forecast device it’s connected to a early added current weahter device (the location). The main device is calling the API, which includes current data and forecasts, and forwards the forecast data to its child device. This way you can save many API calls and you can add as many forecast devices as you want.
If you delete a main device, all depending forecast devices will get unavailable and mus be deleted, too.
To add a forecast device, just use a hourly or daily forecast device type:
You can set now the time offset of your forecast.
Iy you set “0” hours/days, you get the forecast of the current time. If you set “12” hours, you will get the forecast 12 hours ahead.
Now you can select the location to use:
After this step, the device is added.