After getting a Google Home for Father’s Day, Am having problems setting up my Google Home with Hue emulator.
emulated_hue:
type: google_home
host_ip: 192.168.1.28
advertise_ip: 192.168.1.28
# Must be 80 for Google Home to see it.
listen_port: 80
advertise_port: 80
exposed_domains:
- light
- switch
- script
2017-06-30 15:46:02 ERROR (MainThread) [homeassistant.components.http] Failed to create HTTP server at port 80: [Errno 99] error while attempting to bind on address (‘192.168.1.28’, 80): cannot assign requested address
2017-06-30 15:46:36 INFO (MainThread) [homeassistant.components.light] Setting up light.hue
2017-06-30 15:46:36 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform hue
Traceback (most recent call last):
File “/srv/hass/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 161, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File “/usr/lib/python3.4/asyncio/tasks.py”, line 372, in wait_for
return fut.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/hass/lib/python3.4/site-packages/homeassistant/components/light/hue.py”, line 138, in setup_platform
allow_in_emulated_hue, allow_hue_groups)
File “/srv/hass/lib/python3.4/site-packages/homeassistant/components/light/hue.py”, line 149, in setup_bridge
config_file_path=hass.config.path(filename))
File “/home/hass/.homeassistant/deps/phue.py”, line 629, in init
self.connect()
File “/home/hass/.homeassistant/deps/phue.py”, line 753, in connect
self.register_app()
File “/home/hass/.homeassistant/deps/phue.py”, line 707, in register_app
response = self.request(‘POST’, ‘/api’, data)
File “/home/hass/.homeassistant/deps/phue.py”, line 666, in request
return json.loads(str(result.read(), encoding=‘utf-8’))
File “/usr/lib/python3.4/json/init.py”, line 318, in loads
return _default_decoder.decode(s)
File “/usr/lib/python3.4/json/decoder.py”, line 343, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python3.4/json/decoder.py”, line 361, in raw_decode
raise ValueError(errmsg(“Expecting value”, s, err.value)) from None
ValueError: Expecting value: line 1 column 1 (char 0)
I have tried the sudo setcap 'cap_net_bind_service=+ep' /srv/bin/python3.4
http://<HA IP Address>:80/description.xml
or/and
http://<HA IP Address>:80/api/pi/lights
I Get back this.
<major>1</major>
<minor>0</minor>
</specVersion>
<URLBase>http://192.168.1.22:80/</URLBase>
<device>
<deviceType>urn:schemas-upnp-org:device:Basic:1</deviceType>
<friendlyName>Philips hue (192.168.1.22)</friendlyName>
<manufacturer>Royal Philips Electronics</manufacturer>
<manufacturerURL>http://www.philips.com</manufacturerURL>
<modelDescription>Philips hue Personal Wireless Lighting</modelDescription>
<modelName>Philips hue bridge 2015</modelName>
<modelNumber>BSB002</modelNumber>
<modelURL>http://www.meethue.com</modelURL>
<serialNumber>b827eb3f2f1f</serialNumber>
<UDN>uuid:2f402f80-da50-11e2-9b23-b827eb3f2f2f</UDN>
<serviceList>
<service>
<serviceType>(null)</serviceType>
<serviceId>(null)</serviceId>
<controlURL>(null)</controlURL>
<eventSubURL>(null)</eventSubURL>
<SCPDURL>(null)</SCPDURL>
</service>
</serviceList>
<presentationURL>index.html</presentationURL>
<iconList>
<icon>
<mimetype>image/png</mimetype>
<height>48</height>
<width>48</width>
<depth>24</depth>
<url>hue_logo_0.png</url>
</icon>
<icon>
<mimetype>image/png</mimetype>
<height>120</height>
<width>120</width>
<depth>24</depth>
<url>hue_logo_3.png</url>
</icon>
</iconList>
</device>
</root>
Also when i run the Google Home App and try to add in Hue it asks me to log in.
Not sure what to do
Any help please.