Hi
Anyone aware of any updated API of MeteoAlarm, or recent issues?
I noticed, now that we have severe weather warnings in Europe (wind), the MeteoAlarm integration stopped working.
When I restart my Home Assistant, this is what I see in the error logs:
2022-02-18 11:10:09 ERROR (MainThread) [homeassistant.components.binary_sensor] meteoalarm: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 709, in async_device_update
await task
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/meteoalarm/binary_sensor.py", line 82, in update
if alert := self._api.get_alert():
File "/usr/local/lib/python3.9/site-packages/meteoalertapi/meteoalertapi.py", line 63, in get_alert
alert_data = xmltodict.parse(text)
File "/usr/local/lib/python3.9/site-packages/xmltodict.py", line 327, in parse
parser.Parse(xml_input, True)
xml.parsers.expat.ExpatError: syntax error: line 1, column 0
My configuration:
binary_sensor:
- platform: meteoalarm
country: "belgium"
province: "Antwerp"
language: "nl-BE"
I noticed in the previous logs that it mentioned a peer connection reset, and in fact the MeteoAlarm website was not functioning properly as well. But that seems to be resolved now, however the sensor is still broken.
It was working fine about a week ago, so I know my configuration (unless the integration changed) should be correct.
This was the error before (connection reset by peer)
Logger: homeassistant.helpers.entity
Source: components/meteoalarm/binary_sensor.py:82
First occurred: 17 februari 2022 13:52:51 (1 occurrences)
Last logged: 17 februari 2022 13:52:51
Update for binary_sensor.meteoalarm failsTraceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 449, in _make_request
six.raise_from(e, None)
File "<string>", line 3, in raise_from
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 444, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/lib/python3.9/http/client.py", line 1371, in getresponse
response.begin()
File "/usr/local/lib/python3.9/http/client.py", line 319, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.9/http/client.py", line 280, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/local/lib/python3.9/socket.py", line 704, in readinto
return self._sock.recv_into(b)
File "/usr/local/lib/python3.9/ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "/usr/local/lib/python3.9/ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
ConnectionResetError: [Errno 104] Connection reset by peer
update
I also checked release notes of more recent HA core releases, but none mention a breaking change on the Meteolarm platform.