darksky platform uses the Dark Sky web service as a source for meteorological data for your location. The location is based on the
latitude coordinates configured in your
configuration.yaml file. The coordinates are auto-detected but to take advantage of the hyper-local weather reported by Dark Sky, you can refine them down to your exact home address. GPS coordinates can be found by using Google Maps and clicking on your home or Openstreetmap.
You need an API key which is free but requires registration. You can make up to 1000 calls per day for free which means that you could make one approximately every 86 seconds.
Dark Sky will charge you $0.0001 per API call if you enter your credit card details and create more than 1000 calls per day.
To add Dark Sky to your installation, add the following to your
# Example configuration.yaml entry sensor: - platform: darksky api_key: YOUR_API_KEY forecast: - 0 hourly_forecast: - 0 - 1 monitored_conditions: - summary - icon - temperature
Your API key.
Additional name for the sensors.
List of days in the 7-day forecast you would like to receive data on, starting with today as day 0 and ending with day 7. Any condition from
monitored_conditionswith a daily forecast by Dark Sky will generate a sensor with entity_id
List of hours in the 48-hour forecast you would like to receive data on, starting with this hour as hour 0 and ending with hour 48. Any condition from
monitored_conditionswith an hourly forecast by Dark Sky will generate a sensor with entity_id
The desired language of the summary properties. The valid options are further down in a table.
Latitude coordinate to monitor weather of (required if longitude is specified).
coordinates defined in your
Longitude coordinate to monitor weather of (required if latitude is specified).
coordinates defined in your
Conditions to display in the frontend.
A human-readable text summary.
A machine-readable text summary, suitable for selecting an icon for display. See Dark Sky API documentation for the list of possible values.
The type of precipitation occurring at the given time. If
precip_intensityis zero, then this property will be
unknown. See Dark Sky API documentation for the list of possible values.
The intensity of precipitation occurring at the given time. This value is conditional on probability (that is, assuming any precipitation occurs at all).
The probability of precipitation occurring, in percents.
The amount of snowfall accumulation expected to occur. If no snowfall is expected, this property will be
The air temperature.
The apparent (or “feels like”) temperature.
The dew point.
The wind speed.
The wind gust speed.
The direction that the wind is coming from in degrees, with true north at 0° and progressing clockwise. If
wind_speedis 0, then this value is
The percentage of sky occluded by clouds.
The relative humidity.
The sea-level air pressure in millibars.
The average visibility.
The columnar density of total atmospheric ozone at the given time in Dobson units.
A human-readable text summary for the next hour.
A human-readable text summary for the next two days.
A human-readable text summary for the next week.
The daytime high temperature.
The overnight low temperature.
The daytime high apparent temperature.
The overnight low apparent temperature.
The maximum value of
precip_intensityduring a given day.
The UV index.
The fractional part of the lunation number during the given day: a value of 0 corresponds to a new moon, 0.25 to a first quarter moon, 0.5 to a full moon, and 0.75 to a last quarter moon.
The time of when the sun will rise during a given day.
The time of when the sun will set during a given day.
The approximate distance to the nearest storm in miles.
The approximate direction of the nearest storm in degrees, with true north at 0° and progressing clockwise.
Current severe weather advisories.
Specify the unit system. Valid options are
autowill let Dark Sky decide the unit system based on location.
us, based on the temperature preference in Home Assistant.
Minimum time interval between updates. Supported formats:
scan_interval: 'HH:MM'and Time period dictionary (see example below).
Please note that some monitored conditions, such as
temperature_low, may only work when setting the
forecast attribute to at least
0 (current day).
scan_interval: # At least one of these must be specified: days: 0 hours: 0 minutes: 3 seconds: 30 milliseconds: 0
All language options are described in this table that you can use for the dark sky sensor.
More details about the API are available in the Dark Sky API documentation.