Voici l’erreur associé à mon cas :
Logger: homeassistant.components.automation.test_alarme_d_intrusion
Source: components/pushbullet/notify.py:175
Integration: Automatisation (documentation, issues)
First occurred: 22:27:18 (3 occurrences)
Last logged: 22:27:18
Test - Alarme d'intrusion: Choose at step 1: choice 2: Error executing script. Unexpected error for call_service at pos 1: HTTPSConnectionPool(host='api.pushbullet.com', port=443): Max retries exceeded with url: /v2/pushes (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9feda970>: Failed to establish a new connection: [Errno -3] Try again'))
Test - Alarme d'intrusion: Error executing script. Unexpected error for choose at pos 1: HTTPSConnectionPool(host='api.pushbullet.com', port=443): Max retries exceeded with url: /v2/pushes (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9feda970>: Failed to establish a new connection: [Errno -3] Try again'))
While executing automation automation.test_alarme_d_intrusion
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 169, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 73, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/local/lib/python3.8/socket.py", line 918, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 353, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 181, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9feda970>: Failed to establish a new connection: [Errno -3] Try again
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.pushbullet.com', port=443): Max retries exceeded with url: /v2/pushes (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9feda970>: Failed to establish a new connection: [Errno -3] Try again'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 250, in _async_step
await getattr(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 457, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1445, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1480, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/components/notify/__init__.py", line 149, in _async_notify_message_service
await self.async_send_message(**kwargs)
File "/usr/src/homeassistant/homeassistant/components/notify/__init__.py", line 128, in async_send_message
await self.hass.async_add_executor_job(partial(self.send_message, message, **kwargs)) # type: ignore
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/pushbullet/notify.py", line 83, in send_message
self._push_data(message, title, data, self.pushbullet)
File "/usr/src/homeassistant/homeassistant/components/pushbullet/notify.py", line 175, in _push_data
pusher.push_note(title, message, **email_kwargs)
File "/usr/local/lib/python3.8/site-packages/pushbullet/pushbullet.py", line 286, in push_note
return self._push(data)
File "/usr/local/lib/python3.8/site-packages/pushbullet/pushbullet.py", line 304, in _push
r = self._session.post(self.PUSH_URL, data=json.dumps(data))
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 590, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.pushbullet.com', port=443): Max retries exceeded with url: /v2/pushes (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9feda970>: Failed to establish a new connection: [Errno -3] Try again'))
Après modification des étapes de l’automatisation : j’ai fait passé le déclenchement de la sirène avant l’envoi de notificagion pushbullet et là, ça a marcher.
Conclusion : une action qui ne peut pas s’effectuer bloque les actions qui là suivent dans une automatisation ! @Clemalex a raison. Je vais corriger au mieux mon automatisation pour prioriser les étapes critiques.