home-assistant.io/source/_components/sensor.forecast.markdown
2016-05-07 13:58:27 +02:00

3.2 KiB

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, featured, ha_release
layout title description date sidebar comments sharing footer logo ha_category featured ha_release
page Forecast.io How to integrate Forecast.io within Home Assistant. 2015-04-25 9:06 true false true true forecast.png Weather true pre 0.7

The forecast platform uses the Forecast.io web service as a source of meteorological data for your location. The location is based on the longitude and latitude coordinates configured in configuration.yaml. The coordinates are auto-detected but to take advantage of the hyper-local weather reported by forecast.io, you can refine them down to your exact home address. GPS coordinates can be found by using Google Maps and clicking on your home.

You need an API key which is free but requires registration. You can make up to 1000 requests per day which means that you could make one approximately every 86 seconds.

To add Forecast.io to your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
sensor:
  platform: forecast
  api_key: YOUR_APP_KEY
  monitored_conditions:
    - summary
    - icon
    - nearest_storm_distance
    - nearest_storm_bearing
    - precip_type
    - precip_intensity
    - precip_probability
    - temperature
    - apparent_temperature
    - dew_point
    - wind_speed
    - wind_bearing
    - cloud_cover
    - humidity
    - pressure
    - visibility
    - ozone
    - minutely_summary
    - hourly_summary
    - daily_summary

Configuration variables:

  • api_key (Required): Your API key for http://forecast.io/.
  • monitored_conditions array (Required): Conditions to display in the frontend.
    • summary: A human-readable text summary of the current conditions.
    • precip_type: The type of precipitation occurring.
    • precip_intensity: The average expected intensity of precipitation occurring.
    • precip_probability: A value between 0 and 1 which is representing the probability of precipitation.
    • temperature: The current temperature.
    • apparent_temperature: A numerical value representing the apparent (or "feels like") temperature.
    • dew_point: The dew point.
    • wind_speed: The wind speed.
    • wind_bearing: Where the wind is coming from in degrees, with true north at 0° and progressing clockwise.
    • cloud_cover: The percentage of sky occluded by clouds.
    • humidity: The relative humidity.
    • pressure: The sea-level air pressure in millibars.
    • visibility: The average visibility.
    • ozone: The columnar density of total atmospheric ozone in Dobson.
    • minutely_summary: A human-readable text summary for the next hour.
    • hourly_summary: A human-readable text summary for the next 24 hours.
    • daily_summary: A human-readable text summary for the next 7 days.
  • units (Optional): Specify the unit system. Default to si or us based on the temperature preference in Home Assistant. Other options are auto, us, si, ca, and uk2. auto will let forecast.io decide the unit system based on location.

Details about the API are available in the Forecast.io documentation.