mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-14 21:06:50 +00:00
Update sensor.yr.markdown
This commit is contained in:
parent
43c201ef01
commit
db61b9c076
@ -12,29 +12,46 @@ ha_category: Weather
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
The `yr` platform uses [YR](http://www.yr.no/) as an source for current meteorological data for your location.
|
The `yr` platform uses [YR.no](http://www.yr.no/) as an source for current meteorological data for your location. The
|
||||||
|
weather forecast is delivered by the Norwegian Meteorological Institute and the NRK.
|
||||||
|
|
||||||
To add YR to your installation, add the following to your `configuration.yaml` file:
|
To add YR to your installation, add the following to your `configuration.yaml` file:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Will show a symbol for the current weather as default:
|
||||||
|
sensor:
|
||||||
|
platform: yr
|
||||||
|
|
||||||
|
# Will show temperatue and wind direction:
|
||||||
sensor:
|
sensor:
|
||||||
platform: yr
|
platform: yr
|
||||||
monitored_conditions:
|
monitored_conditions:
|
||||||
- weather
|
|
||||||
- temperature
|
- temperature
|
||||||
- wind_speed
|
- windDirection
|
||||||
- humidity
|
|
||||||
|
# Will show all available sensors:
|
||||||
|
sensor:
|
||||||
|
platform: yr
|
||||||
|
monitored_conditions:
|
||||||
|
- temperature
|
||||||
|
- symbol
|
||||||
|
- precipitation
|
||||||
|
- windSpeed
|
||||||
- pressure
|
- pressure
|
||||||
- clouds
|
- windDirection
|
||||||
- rain
|
- humidity
|
||||||
- snow
|
- fog
|
||||||
|
- cloudiness
|
||||||
|
- lowClouds
|
||||||
|
- mediumClouds
|
||||||
|
- highClouds
|
||||||
|
- dewpointTemperature
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
|
|
||||||
- **monitored_conditions** array (*Required*): Conditions to display in the frontend.
|
- **monitored_conditions** array (*Optional*): Conditions to display in the frontend.
|
||||||
- **symbol**: A human-readable text summary.
|
- **symbol**: A symbol for the current weather.
|
||||||
- **temperature**: The current temperature.
|
- **temperature**: The current temperature.
|
||||||
- **humidity**: The relative humidity.
|
- **humidity**: The relative humidity.
|
||||||
- **fog**: Fog.
|
- **fog**: Fog.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user