Meteoalarm integration not working

I’m using HA 0.93.2 on Hassio on raspberry.
I’m testing the integration of meteoalarm binary sensor. The sensor seems not working with nothing raised even if the website is currently displaying two alerts.

my config is:

platform: meteoalarm
country: "FR"
province: "Gers"
language: "fr"

I’ve found this error in the logs

Update for binary_sensor.meteoalarm fails
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/meteoalertapi/meteoalertapi.py", line 35, in get_alert
    file = urlopen('http://meteoalarm.eu/ATOM/'+ country +'.xml')
  File "/usr/local/lib/python3.7/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/lib/python3.7/urllib/request.py", line 525, in open
    response = self._open(req, data)
  File "/usr/local/lib/python3.7/urllib/request.py", line 543, in _open
    '_open', req)
  File "/usr/local/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python3.7/urllib/request.py", line 1345, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/local/lib/python3.7/urllib/request.py", line 1320, in do_open
    r = h.getresponse()
  File "/usr/local/lib/python3.7/http/client.py", line 1321, in getresponse
    response.begin()
  File "/usr/local/lib/python3.7/http/client.py", line 296, in begin
    version, status, reason = self._read_status()
  File "/usr/local/lib/python3.7/http/client.py", line 257, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/local/lib/python3.7/socket.py", line 589, in readinto
    return self._sock.recv_into(b)
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 220, in async_update_ha_state
    await self.async_device_update()
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 377, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/meteoalarm/binary_sensor.py", line 93, in update
    alert = self._api.get_alert()
  File "/usr/local/lib/python3.7/site-packages/meteoalertapi/meteoalertapi.py", line 39, in get_alert
    raise(WrongCountry())
meteoalertapi.meteoalertapi.WrongCountry

Any idea ?

Works perfectly here with:

platform: meteoalarm
country: 'FR'
province: 'Tarn'
language: 'fr'

I get an error for it now, it was working, or at least not giving errors, but now it just fails.
I have this set up:

  - platform: meteoalarm
    country: 'DK'
    province: 'København og Nordsjælland'
    language: 'da'

And today there actually is a weather warning.
From ha logfiles:

  File "/usr/local/lib/python3.7/site-packages/meteoalertapi/meteoalertapi.py", line 35, in get_alert
    file = urlopen('http://meteoalarm.eu/ATOM/'+ country +'.xml')
  File "/usr/local/lib/python3.7/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/lib/python3.7/urllib/request.py", line 525, in open
    response = self._open(req, data)
  File "/usr/local/lib/python3.7/urllib/request.py", line 543, in _open
    '_open', req)
  File "/usr/local/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python3.7/urllib/request.py", line 1345, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/local/lib/python3.7/urllib/request.py", line 1319, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 110] Operation timed out>

There’s some work in progress.
https://github.com/home-assistant/home-assistant/issues/23943#issuecomment-499273536

It’s failing for me also, is anyone else able to access

https://www.meteoalarm.eu/

? It sats timed out for me :frowning:

The meteoalarm.eu website can’t be trusted for alerts. Currently half of France is in alert. The website shows the alert but the RSS feed used by the component has a little part of the alerts.

It’s a NO GO for me. Too bad the PR to include the weather alert from metro France is till not reviewed (published 1,5 months ago).

I’ve been getting problems with this sensor also, I think I may end up removing it. Does anyone in the UK have it working OK and if so what Country Code did you use?

I got a notification yesterday for the first time.
So right now it’s working for Denmark.
I still need to figure out how to get the message shown on lovelace, I’ve been toying with that a bit.

Just started using this sensor at it turns out the sensor only deliver one alarm for a location, when there are several alarms for that location. Is this a bug, or has Meteoalarm made changes and the sensor has not kept up? Sometimes the sensor pics up the last, other days, the middle one.

I installed the binary in home assistant as follows:

- platform: meteoalarm
  country: "belgium"
  province: "liège"
  language: "fr"

Capture d’écran 2022-01-26 à 10.17.19

When I go to the site I have a yellow alert, on my binary it says green, no alert. do I need to change something in my binary?

i have this same problem. Is there any solution?

  - platform: meteoalarm
    country: "slovakia"
    province: "Senec"
    language: "sk"

Seems that the integration is somehow broken - I am not getting any alerts here in Switzerland either.
It worked with the exact same setup before - for about 2 months.

same here in austria…
binary_sensor:

  • platform: meteoalarm
    country: “austria”
    province: “Pucking”
    language: de_AT

Since last 2 days, my Meteoalarm Integration doesn’t create a binary sensor at all.
My yaml config:

# Configurazione Piattaforma MeteoAlarm  
  - platform: meteoalarm
    country: "italy"
    province: "Emilia e Romagna"
    language: "it-IT"
    scan_interval: 60

Before that, i have a binary_sensor.meteoalarm and it worked very well. Now it disappeared.
Any solution?