Skip to content

Home Assistant sensor with meteo warnings in Poland, fresh data from IMGW-PIB.

License

Notifications You must be signed in to change notification settings

duchu-net/meteo-warnings-poland

Repository files navigation

Home Assistant sensor with meteo alerts in Poland.
Version 0.0.5 contain 48 sensors, divided by eg. warning level, phenomenon, activity.

Data source

Data comes from meteo service of IMGW-PIB - Instytut Meteorologii i Gospodarki Wodnej, Państwowy Instytut Badawczy, with fallowing endpoints:

Instalation

Warning

Just in case: if you have an earlier version, please remove all devices before migrating to 0.0.4!

Use HACS for instalation, just add https://github.com/duchu-net/meteo-warnings-poland as custom repo.

Config

Search and add in integration manager [Meteo Warnings Poland], selected your region for watching (rest is optional) - check your region on dynamic map.

Changelog

  • 0.0.5 (dev, main branch) - contain 2 new sensors with max warning level divided by activity (ogłoszony/aktywny).
  • 0.0.4 - contain 46 sensors, divided by warning level, phenomenon and activity.

Examples

automation

automation:
  - alias: "Set Light Color Based on Warning Level"
    trigger:
      - platform: state
        entity_id: sensor.ostrzezenia_krosno_poziom_ogloszony
    action:
      - choose:
          - conditions:
              - "{{ states('sensor.ostrzezenia_krosno_poziom_ogloszony') | int == 0 }}"
            sequence:
              - service: light.turn_on
                target:
                  entity_id: light.my_rgb_lamp_entity
                data:
                  rgb_color: [0, 255, 0] # Green
          - conditions:
              - "{{ states('sensor.ostrzezenia_krosno_poziom_ogloszony') | int == 1 }}"
            sequence:
              - service: light.turn_on
                target:
                  entity_id: light.my_rgb_lamp_entity
                data:
                  rgb_color: [255, 255, 0]  # Yellow
          - conditions:
              - "{{ states('sensor.ostrzezenia_krosno_poziom_ogloszony') | int == 2 }}"
            sequence:
              - service: light.turn_on
                target:
                  entity_id: light.my_rgb_lamp_entity
                data:
                  rgb_color: [255, 165, 0]  # Orange
          - conditions:
              - "{{ states('sensor.ostrzezenia_krosno_poziom_ogloszony') | int == 3 }}"
            sequence:
              - service: light.turn_on
                target:
                  entity_id: light.my_rgb_lamp_entity
                data:
                  rgb_color: [255, 0, 0]  # Red

Alternatives and complements

  • Burze.dzis.net sensor - lightning tracking service, data source: burze.dzis.net > blitzortung.org (Germany)
  • MeteoAlarm - service aggregating weather warnings in Europe, data source: Federal Institute for Geology, Geophysics, Climatology and Meteorology (Austria)

Todo

  • multi-sensor coordinator
  • warnings in progress
  • forecast warnings
  • language support
  • MeteoalarmCard integration

Links

About

Home Assistant sensor with meteo warnings in Poland, fresh data from IMGW-PIB.

Resources

License

Stars

Watchers

Forks

Languages