Skip to content

Commit 90919e7

Browse files
tinloaffrenck
authored andcommitted
Add documentation for YR forecast data (home-assistant#3059)
* Add documentation for YR forecast data * Update sensor.yr.markdown
1 parent 9c7562a commit 90919e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/_components/sensor.yr.markdown

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ha_iot_class: "Cloud Polling"
1414
---
1515

1616

17-
The `yr` platform uses [YR.no](http://www.yr.no/) as an source for current meteorological data for your location. The
17+
The `yr` platform uses [YR.no](http://www.yr.no/) as an source for current meteorological data for your location. The
1818
weather forecast is delivered by the Norwegian Meteorological Institute and the NRK.
1919

2020
To add YR to your installation, add the following to your `configuration.yaml` file:
@@ -28,6 +28,7 @@ sensor:
2828
Configuration variables:
2929
3030
- **name** (*Optional*): Additional name for the sensors. Default to platform name.
31+
- **forecast** integer (*Optional*): If you want to get forecast data instead of the current weather data, set this to the number of hours that you want to look into the future.
3132
- **monitored_conditions** array (*Optional*): Conditions to display in the frontend.
3233
- **symbol**: A symbol for the current weather.
3334
- **temperature**: The current temperature.
@@ -50,6 +51,7 @@ A full configuration example can be found below:
5051
sensor:
5152
- platform: yr
5253
name: Weather
54+
forecast: 24
5355
monitored_conditions:
5456
- temperature
5557
- symbol

0 commit comments

Comments
 (0)