Skip to content

redlukas/wetter-alarm

Repository files navigation

Wetter-Alarm

GitHub Release GitHub Activity License

pre-commit Ruff Validate with Hassfest

hacs Project Maintenance

Discord Community Forum

This component will set up the following platforms.

Platform Description
sensor Show info from Wetter-Alarm API.

Overview

Wetter-Alarm is an app that alerts you of severe weather events in Switzerland. This Integration will poll the Wetter-Alarm API and expose the available Alerts to Home Assistant.

Installation

Automated (suggested):

Just click here: Open in HACS.

Manual:

  1. Using the tool of choice open the directory (folder) for your HA configuration (where you find configuration.yaml).
  2. If you do not have a custom_components directory (folder) there, you need to create it.
  3. In the custom_components directory (folder) create a new folder called wetter_alarm.
  4. Download all the files from the custom_components/wetter_alarm/ directory (folder) in this repository.
  5. Place the files you downloaded in the new directory (folder) you created.
  6. Restart Home Assistant

Using your HA configuration directory (folder) as a starting point you should now also have this:

custom_components/wetter_alarm/__init__.py
custom_components/wetter_alarm/api.py
custom_components/wetter_alarm/config_flow.py
custom_components/wetter_alarm/const.py
custom_components/wetter_alarm/coordinator.py
custom_components/wetter_alarm/data.py
custom_components/wetter_alarm/entity.py
custom_components/wetter_alarm/manifest.json
custom_components/wetter_alarm/sensor.py
custom_components/wetter_alarm/translations/en.json

Configuration

No matter which way you installed the Integration, you need to restart Home Assistant before configuring the integration.

Go to the Settings -> Devices & Services -> Integrations tab of your Home Assistant instance. Click ADD INTEGRATION and search for "Wetter-Alarm". The Configuration flow will start when you click install.

How to find the ID of your location

Method 1

Go to [https://redlukas.github.io/poi-presenter/], select the desired canton and find the location on the map.

Method 2

Look at the POIs folder in this repo. In there you'll find a JSON with all the POIs as well as a site for each Canton where the POIs are listed by kind.

Contributions are welcome!

If you want to contribute to this please read the Contribution guidelines

Credits

Code template was mainly taken from @Ludeeus's integration_blueprint template


About

Home Assistant Sensors for the swiss Wetter-Alarm API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors 3

  •  
  •  
  •