Skip to content

Commit fd99773

Browse files
rpiterafabaff
authored andcommitted
Update yweather component docs (home-assistant#2347)
Clarify the use of the forecast option and provide an example of its usage.
1 parent 707c51d commit fd99773

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

source/_components/sensor.yweather.markdown

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ha_release: 0.24
1313
---
1414

1515

16-
The `yweather` platform uses [Yahoo Weather](https://www.yahoo.com/news/weather/) as an source for current meteorological data. The `forecast` will show you the condition for 5 days, 0 is the current day. You can use only `weather`, `temp_min`, and `temp_max` with forecast.
16+
The `yweather` platform uses [Yahoo Weather](https://www.yahoo.com/news/weather/) as an source for current meteorological data. The `forecast` will show you the condition for 5 days, 0 is the current day. You can use only `weather`, `temp_min`, and `temp_max` with forecast. It's important to note that a yweather sensor will only show ONE days forecast at a time so to show multiple days forecasts, you will need to use the 'name:' option and give each sensor a unique name.
1717

1818
<p class='note warning'>
1919
Use of the Yahoo Weather API should not exceed reasonable request volume. Access is limited to 2,000 signed calls per day.
@@ -55,6 +55,37 @@ Configuration variables:
5555
- **pressure**: The sea-level air pressure in millibars.
5656
- **visibility**: The average visibility.
5757

58+
Example of forecast using multiple days. In example, first sensor shows tomorrow's forecast, second sensor shows the next day and so on:
59+
60+
```yaml
61+
# Example configuration.yaml entry
62+
sensor:
63+
- platform: yweather
64+
forecast: 1
65+
name: yw_day1
66+
monitored_conditions:
67+
- weather
68+
- temp_min
69+
- temp_max
70+
71+
- platform: yweather
72+
forecast: 2
73+
name: yw_day2
74+
monitored_conditions:
75+
- weather
76+
- temp_min
77+
- temp_max
78+
79+
- platform: yweather
80+
forecast: 3
81+
name: yw_day3
82+
monitored_conditions:
83+
- weather
84+
- temp_min
85+
- temp_max
86+
87+
```
88+
5889

5990
Details about the API are available in the [Yahoo! Developer Network](https://developer.yahoo.com/weather/).
6091

0 commit comments

Comments
 (0)