IndigoDomotics / alexa-hue-bridge

An Indigo plugin that exposes devices as Hue lights for Amazon Alexa devices (Echo, Fire TV)
The Unlicense
22 stars 2 forks source link

must be string, not None #12

Closed troya2 closed 6 years ago

troya2 commented 6 years ago

I have the tried versions 3.0.20 and 3.0.23 with Indigo 7.1.1 on Mac OS High Sierra 10.13.2 and I get this error every time I try to turn Discovery on. I add a new "Alexa-Hue Bridge" device, set the model to "Emulated Hue Bridge [Devices]", and leave all the settings as their defaults.

When I Save, then close, then turn Discovery on for the newly created device, I get this error: StandardError detected in Responder.Run for 'Test'. Line '146' has error='must be string, not None'

I have isolated this to line 146 of discovery.py. Is it that PLUGIN.globals['alexaHueBridge'][self.ahbDevId]['host'] not what it should be?

troya2 commented 6 years ago

Digging in further (and looking at the plugin's startup logs), I noticed that it is reporting that there is no hostname. It turns out my host name was overridden by another process, and that was not resolving properly to an IP address. I ended up having to add an entry in my "/etc/hosts" file with the machine's IP address to match what is being reported by hostname. Odd.