Notifications not working - could be unifi related?

A while back notifications stopped working.
I had them working for a long time using the IOS app, without any issues.
Today I have tried to fix it, and even another notification service (Twilio), but I keep getting the same errors.
Looking back , it seems like it stopped working around the time I upgraded my wifi from my old netgear to a new Unifi setup - so I’m thinking it could be related to that - but I haven’t been able to find what it would be?

When I try to send a message, I get a very long error message, which I have copied below. The error message is similar between an iOS notification and a Twilio notification.

further details on my setup:

  • Hassio - 0.85.0 - but have had the issue on lower versions too, it’s not newly introduced
  • using duckdns addon for external access
  • running on RPI
  • rpi connected to a unifi switch, which is connected to a USG, which is connected to internet modem
  • only one LAN setup on the network, so no specific IOT network that is shielded
  • i also run pihole, but deactivating that didnt make any difference

any suggestions as to what could cause this?
thanks!

PS: I also have issues using TTS to my google homes, that also stopped working a while back. Could that be related?

error message I’m getting:

Log Details (ERROR)
Sun Jan 13 2019 20:20:14 GMT+1000 (Australian Eastern Standard Time)

Error handling message: {‘type’: ‘call_service’, ‘domain’: ‘notify’, ‘service’: ‘dennis’, ‘service_data’: {‘message’: ‘test’, ‘target’: ‘+mysecretphonenumber’}, ‘id’: 14}
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/urllib3/connection.py”, line 159, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw)
File “/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py”, line 57, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File “/usr/local/lib/python3.6/socket.py”, line 745, 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.6/site-packages/urllib3/connectionpool.py”, line 600, in urlopen
chunked=chunked)
File “/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 343, in _make_request
self._validate_conn(conn)
File “/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 839, in _validate_conn
conn.connect()
File “/usr/local/lib/python3.6/site-packages/urllib3/connection.py”, line 301, in connect
conn = self._new_conn()
File “/usr/local/lib/python3.6/site-packages/urllib3/connection.py”, line 168, in _new_conn
self, “Failed to establish a new connection: %s” % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x6c0d4890>: 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.6/site-packages/requests/adapters.py”, line 449, in send
timeout=timeout
File “/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File “/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py”, line 398, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘api.twilio.com’, port=443): Max retries exceeded with url: /2010-04-01/Accounts/ACc5e1bf12eac4874ef1ea3a56e3d8d456/Messages.json (Caused by NewConnectionError(‘<urllib3.connection.VerifiedHTTPSConnection object at 0x6c0d4890>: 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.6/site-packages/homeassistant/components/websocket_api/decorators.py”, line 17, in _handle_async_response
await func(hass, connection, msg)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/websocket_api/commands.py”, line 148, in handle_call_service
connection.context(msg))
File “/usr/local/lib/python3.6/site-packages/homeassistant/core.py”, line 1121, in async_call
self._execute_service(handler, service_call))
File “/usr/local/lib/python3.6/site-packages/homeassistant/core.py”, line 1143, in execute_service
await handler.func(service_call)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/notify/init.py”, line 117, in async_notify_message
await notify_service.async_send_message(**kwargs)
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/notify/twilio_sms.py”, line 55, in send_message
to=target, body=message, from
=self.from_number)
File “/usr/local/lib/python3.6/site-packages/twilio/rest/api/v2010/account/message/init.py”, line 92, in create
data=data,
File “/usr/local/lib/python3.6/site-packages/twilio/base/version.py”, line 205, in create
allow_redirects=allow_redirects,
File “/usr/local/lib/python3.6/site-packages/twilio/base/version.py”, line 47, in request
allow_redirects=allow_redirects
File “/usr/local/lib/python3.6/site-packages/twilio/base/domain.py”, line 46, in request
allow_redirects=allow_redirects
File “/usr/local/lib/python3.6/site-packages/twilio/rest/init.py”, line 126, in request
allow_redirects=allow_redirects
File “/usr/local/lib/python3.6/site-packages/twilio/http/http_client.py”, line 68, in request
timeout=timeout,
File “/usr/local/lib/python3.6/site-packages/requests/sessions.py”, line 646, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python3.6/site-packages/requests/adapters.py”, line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘api.twilio.com’, port=443): Max retries exceeded with url: /2010-04-01/Accounts/ACc5e1bf12eac4874ef1ea3a56e3d8d456/Messages.json (Caused by NewConnectionError(‘<urllib3.connection.VerifiedHTTPSConnection object at 0x6c0d4890>: Failed to establish a new connection: [Errno -3] Try again’,))