edit: my bad. not a darksky issue and not a HA issue. For some reason my automation Pi was missing a default gateway. Been running for months like that, never noticed an issue until now.
Trying to set up some weather forecasting for my homeassistant instance but DarkSky is fighting me…
“sensor:” from configuration.yaml-
sensor:
- platform: moon
- platform: google_travel_time
api_key: !secret google_api_key
origin: !secret google_home
destination: !secret google_work
name: Drive to Work
options:
arrival_time: '07:30:00'
- platform: darksky
api_key: !secret darksky_api_key
# forecast:
# - 2
monitored_conditions:
- summary
# - icon
# - temperature
# - daily_summary
# - moon_phase
update_interval: '00:15:00'
From home-assistant.log-
2019-01-09 06:03:02 ERROR (Thread-3) [homeassistant.components.sensor.darksky] Unable to connect to Dark Sky: nPool(host='api.darksky.net', port=443): Max retries exceeded with url: /forecast/apikey/lat/long?units=us&lang=en (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x6bdf2ef0>: Failed to establish a new connection: [Errno 101] Network is unreachable',))
2019-01-09 06:03:08 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
result = coro.throw(exc)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/discovery.py", line 172, in scan_devices
results = await hass.async_add_job(_discover, netdisco)
File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/discovery.py", line 198, in _discover
netdisco.scan()
File "/srv/homeassistant/lib/python3.5/site-packages/netdisco/discovery.py", line 63, in scan
self.gdm.scan()
File "/srv/homeassistant/lib/python3.5/site-packages/netdisco/gdm.py", line 22, in scan
self.update()
File "/srv/homeassistant/lib/python3.5/site-packages/netdisco/gdm.py", line 79, in update
sock.sendto(gdm_msg, (gdm_ip, gdm_port))
OSError: [Errno 101] Network is unreachable
I’ve gone through my yaml, i’ve tried breaking stuff on purpose to see if /that/ comes before or after the darksky fault… I’ve checked my API usage on the darksky dev chart, i’ve reset my api key… thoughts?
(I really hope my formatting comes out right)