This project integrates Swedish Meteorological and Hydrological Institute (SMHI) weather data into Home Assistant, providing users with comprehensive weather information across Sweden.
- Interactive Weather Map: Displays real-time weather data across Sweden.
- Weather Alerts and Warnings: Provides updates on weather-related warnings.
- Lightning Impact Visualization: Shows areas affected by lightning strikes.
- Fire Risk Indicators: Highlights regions with high fire risk levels.
- Radar Movement on Dashboard: Visualizes weather radar movements.
- Docker installed on your machine.
- Visual Studio Code.
Install Docker: Follow the instructions on the Docker website to download and install Docker for your operating system.
Clone the Repository:
- Open Visual Studio Code.
- Run the command to clone the repository into a Docker container:
vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https%3A%2F%2Fgithub.com%2Fpillezu%2FcoreGM4
Configure state variables
The new features require state variables to be added in the configuration.yaml file.
Add the following code at the end of the file:
input_boolean: display_fire_risk: name: Display Fire Risk initial: off icon: mdi:fire-alert display_weather: name: Display Weather initial: off icon: mdi:weather-partly-cloudy display_warnings: name: Display Warnings initial: off icon: mdi:alert-circle display_lightning: name: Display Lightning initial: off icon: mdi:weather-lightning
- Run Home Assistant:
- For Mac: Press
Shift+Command+P - For Windows/Linux: Press
Ctrl+Shift+P - Select
Tasks: Run Task. - Choose
Run Home Assistant.
- For Mac: Press
Add the SMHI integration
- Navigate to
Settings. - Choose
Add integration. - Search for smhi and add it.
- Navigate to
Edit Dashboard:
- Navigate to your Home Assistant dashboard.
- Click on
Edit Dashboard.
Show perticipation amount:
- Click
Editon the smhi card. - Select
Secondary info attributeand addPerticipationthen save.
- Click
Add Entities Card:
- Choose
Add Cardand select theEntities Card. - Add the following entities:
Display Fire RiskDisplay LightningDisplay WarningsDisplay Weather
These entities control what information is displayed on the map.
- Choose
Add Picture Card for Radar Map:
- Add a
Picture Cardto your dashboard. - Include the
SMHI Radar Mapentity. - This displays the radar movement.
- Add a
- Swedish Meteorological and Hydrological Institute (SMHI) for providing the weather data.