As many people are aware of, DarSky was bought by Apple, and they immediatly discontinued the option for new users to get an API Key and also announced that the service for existing users will stop working by the end of 2021.
I, as many others, started to look for alternatives to get weather data in to Home Assistant, and there are allready a lot of great Weather components available for Home Assistant. Never the less, I decided to see what else was out there, that had a Global precense for data, and I stumbled on Weatherbit.io. It has a Free Tier API Key and a Global precense, so I decided to write a Home Assistant Integration to support it.
There is currently support for the following device types within Home Assistant:
There is only support for daily forecasts, as the hourly forecast requires a paid API Key.
This Integration is part of the default HACS store, so search for Weatherbit in HACS.
For further installation options, please see the README.md on Github
The Weatherbit weather service is free under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 Generic License. Weather data will be pulled once every 30 minutes.
To add Weatherbit weather forecast to your installation, go to the Integrations page inside the configuration panel and add a location by providing the API Key for Weatherbit and longitude/latitude of your location.
If the location is configured in Home Assistant, it will be selected as the default location. After that, you can add additional locations.
During setup you will have the option of installing Individual sensors for each of the Current Day values plus the next seven days of Forecast. This will be setup by default, but you can opt not to install them by deselecting the checkbox. If you deselect, and later want the sensors installed, you will have to remove the Integration and then set it up again.
You can only add locations through the integrations page, not in configuration files.
API Key for Weatherbit
This integration requires an API Key that can be retrieved for free from the Weatherbit Webpage. Please go here to apply for your personal key.
This key allows you to make 500 calls pr. day, and as this Integration uses 4 calls per hour (96 pr day), you can add a maximum of 5 locations to your setup, without exceeding the limit per day.
Use this post in the forum to ask myself and other users questions, and if you find an issue, please report it on the Issues section on Github