This integration is designed to replace the defunct Dark Sky integration in Home Assistant with a modified and updated, but fully compatible version that relies on the Pirate Weather API instead!
To get a feel for the data returned by this API, check out https://merrysky.net! To view the current API status check out the status page.
Configuration now includes an optional field to exclude specific weather models from the forecast.
To view or change your saved API key, open Pirate Weather under Settings > Devices & services and select Configure. The API key field shows the current key and can be edited. Saving validates the key before applying the settings and automatically reloads the integration; no Home Assistant restart is needed. If validation fails, the saved settings are kept.
I'm really hoping to keep free access going for this API, but it does take money to run the AWS back-end. If you'd like to support this project, I have a sponsorship link setup on my profile! This project (especially the free tier) wouldn't be possible without the ongoing support from the project sponsors, so they're the heros here!
New integration entries are named Pirate Weather automatically. To rename an entry, use its menu under Settings > Devices & services. Setup and Configure no longer ask for a name. Existing entry titles and entity IDs are preserved; legacy name values in stored settings or YAML imports are ignored. New entries receive a permanent random instance ID, so changing the location, API key, or other settings keeps their entity identities. Existing entries retain their original IDs. Duplicate setup checks the currently configured location and platform choices separately from identity.
Choose Weather entity, Sensors, or Weather entity and sensors during setup or under Configure. Monitored conditions and forecast controls appear immediately when sensors are selected. Enable daily forecasts to pick Today, Tomorrow, or later days. Enable hourly forecasts to choose specific hour offsets, the next N hours, or regular intervals with a start, end, and spacing. Hour offsets run from 0 to 167; 0 means the current forecast hour, while Next N hours starts at 1. A review step shows the daily and hourly sensor counts before saving. All sensors use the same monitored conditions list, and current-condition sensor creation is unchanged. Existing forecast selections and entity IDs are retained. Switching to weather only keeps your saved sensor selections for later use. Inline visibility requires Home Assistant 2026.10 or later.
Weather model exclusions, rounding, endpoint, and units are grouped in a collapsed Advanced section in setup and Configure. Expand it to edit these settings; their existing values are kept when the section stays closed.
Weather and sensor entities become unavailable after a failed API update and recover after the next successful update. Missing numeric measurements and forecast offsets beyond the returned horizon are reported as unknown.
Forecast sections are read from scheduled asynchronous updates. Missing optional sections do not trigger extra HTTP requests from entity properties.
While this integration is designed to be compatible with Dark Sky, the underlying code is significantly different. This version is designed to work with more modern versions of Home Assistant, and relies on asyncio, unified data update coordinators, and setup via the UI! A legacy branch that is a 1:1 replacement for the previous Dark Sky integration is also available, but is not recommended.
The underlying API should return similar results, but specific weather variables may be missing, and additional testing is needed to find and correct these edge cases. Please document any issues, and I can either update this integration or the weather API.
Since the Dark Sky API has shut down, I set out to write an alternative API that would return results with the identical syntax, allowing it to be used as a drop in replacement. This culminated in the Pirate Weather API, which is a series of AWS lambda functions that read, process, and serve NOAA weather forecasts in same style and syntax as the Dark Sky API did.
This integration allows for any Home Assistant setup that uses Dark Sky to continue operating after it shut down. While other weather integrations are available, this preserves anything that relies on unique aspects of Dark Sky (such as the minute-by-minute forecast) and let’s existing dashboards keep working. Plus, if you're interested in knowing exactly how your weather forecasts are generated, this is the "show me the numbers" approach, since the data returned is directly from NOAA, and every processing step I do is documented. If you're the sort of person who wants a dense 34-page PowerPoint about why it rained when the forecast said it wouldn't, then this might be for you.
Since this integration returns the same type of data as the default Dark Sky integration, the parameter documentation is the same as described at https://web.archive.org/web/20230128172320/https://www.home-assistant.io/integrations/weather.darksky/ for the weather card and here: https://web.archive.org/web/20230326100953/https://www.home-assistant.io/integrations/darksky for the sensor.
To view the full integration documentation and installation instructions visit https://docs.pirateweather.net/en/latest/ha/
