Sorted most of the errors out by manually starting hass with sudo, I need to get the systemd script set up properly. I suspect I need to run hass --open-ui and also make it run with root privileges??
I am pretty much a linux noob.
Here is the main error I am seeing now.
17-03-15 07:36:23 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-03-15 07:36:27 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-03-15 07:36:47 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform hue
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/entity_component.py", line 153, in _async_setup_platform
entity_platform.schedule_add_entities, discovery_info
File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, 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 "/usr/local/lib/python3.5/dist-packages/homeassistant/components/light/hue.py", line 138, in setup_platform
allow_in_emulated_hue, allow_hue_groups)
File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/light/hue.py", line 149, in setup_bridge
config_file_path=hass.config.path(filename))
File "/root/.homeassistant/deps/phue.py", line 629, in __init__
self.connect()
File "/root/.homeassistant/deps/phue.py", line 753, in connect
self.register_app()
File "/root/.homeassistant/deps/phue.py", line 707, in register_app
response = self.request('POST', '/api', data)
File "/root/.homeassistant/deps/phue.py", line 666, in request
return json.loads(str(result.read(), encoding='utf-8'))
File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
17-03-15 07:38:22 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
17-03-15 09:09:26 WARNING (Thread-9) [netdisco.philips_hue_nupnp] Could not query server https://www.meethue.com/api/nupnp: HTTPSConnectionPool(host='www.meethue.com', port=443): Max retries exceeded with url: /api/nupnp (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0xb4930490>: Failed to establish a new connection: [Errno -2] Name or service not known',))