Hey @NotoriousBDG so everything now seems to be working rock solid, except for suffering some type of keep alive connection issue, which means i need to say a command to GH once to wake the connection and then again for it to action the request.
example:
1st attempt = Hey Google turn on the kitchen lights = nothing
2nd attempt = Hey Google turn on the kitchen lights = action completed ok
I am seeing the following in my logs not long after i restart home assistant service and am wondering if you know what it could mean?
017-08-06 13:09:44 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform hue
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py”, line 164, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File “/usr/lib/python3.6/asyncio/tasks.py”, line 352, in wait_for
return fut.result()
File “/usr/lib/python3.6/asyncio/futures.py”, line 244, in result
raise self._exception
File “/usr/lib/python3.6/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/lib/python3.6/site-packages/homeassistant/components/light/hue.py”, line 138, in setup_platform
allow_in_emulated_hue, allow_hue_groups)
File “/usr/lib/python3.6/site-packages/homeassistant/components/light/hue.py”, line 264, in setup_bridge
update_lights()
File “/usr/lib/python3.6/site-packages/homeassistant/util/init.py”, line 303, in wrapper
result = method(*args, **kwargs)
File “/usr/lib/python3.6/site-packages/homeassistant/util/init.py”, line 303, in wrapper
result = method(*args, **kwargs)
File “/usr/lib/python3.6/site-packages/homeassistant/components/light/hue.py”, line 182, in update_lights
api = bridge.get_api()
File “/usr/lib/python3.6/site-packages/phue.py”, line 838, in get_api
return self.request(‘GET’, ‘/api/’ + self.username)
TypeError: must be str, not NoneType
I’ve done some quick searches, but i’d be grasping at straws if I was even close to understanding. seem to indicate that the hue.py script is expecting one thing and getting another? It doesn’t seem to be impacting anything though can’t be sure.
Cheers
Edit:
So the more I look at it, the error looks like its referring to credentials not being present. What i’ve noticed with this version is that it doesn’t create a phue.conf file like the last version, which contained the username and pairing or password string. Could this be the issue?
Cheers