Add sensor platform to smhi (#39307)

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
G Johansson 2025-07-16 12:31:33 +02:00 committed by GitHub
parent a97d03139b
commit 90168172bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,7 @@ title: SMHI
description: Instructions on how to integrate SMHI forecasts within Home Assistant.
ha_category:
- Hub
- Sensor
- Weather
ha_release: 0.81
ha_iot_class: Cloud Polling
@ -10,24 +11,46 @@ ha_config_flow: true
ha_domain: smhi
ha_platforms:
- weather
- sensor
ha_codeowners:
- '@gjohansson-ST'
ha_integration_type: integration
---
The `smhi` integration adds support for the [SMHI.se](https://www.smhi.se/) web service as a source for meteorological data for your location.
The **SMHI** {% term integration %} adds support for the [SMHI.se](https://www.smhi.se/) web service as a source for meteorological data for your location.
There is currently support for the following device types within Home Assistant:
{% important %}
- Weather
Only locations close to Sweden can be added. See [SMHI.se area](https://opendata.smhi.se/metfcst/pmp/geographic_area) for more details which locations are supported.
{% endimportant %}
{% include integrations/config_flow.md %}
## Weather
The weather entity provides the current state of the weather as well as detailed forecasts for daily, hourly, and twice-daily weather.
## Sensors
The integration creates entities showing the current state of some additional weather metrics.
| Sensor | Type | Description |
| ------------------------- | ----------------- | --------------------------------------------------------------------------------------------------------------------------- |
| Thunder probability | % | Probability of thunder. |
| Total cloud coverage | % | Mean value of total cloud cover. |
| Low cloud coverage | % | Mean value of low level cloud cover. |
| Medium cloud coverage | % | Mean value of medium level cloud cover. |
| High cloud coverage | % | Mean value of high level cloud cover. |
| Precipitation category | None | Precipitation category can be any of: No precipitation, Snow, Snow and rain, Rain, Drizzle, Freezing rain, Freezing drizzle. |
| Frozen precipitation | % | Percent of precipitation in frozen form. |
The cloud sensors are not enabled by default.
The SMHI weather service is free under the Creative Commons Attribution 4.0, international license. Weather data will be pulled once every 30 minutes.
{% important %}
Only location close to Sweden can be added. See [SMHI.se area](https://opendata.smhi.se/apidocs/metfcst/geographic_area.html) for more details what locations are supported.
{% endimportant %}
Details about the API are available in the [SMHI API documentation](https://opendata.smhi.se/metfcst/pmp/introduction).
Details about the API are available in the [SMHI API documentation](https://opendata.smhi.se/apidocs/metfcst/index.html).
## Remove the integration
{% include integrations/remove_device_service.md %}