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

Add multi-homed IP interface support to increase device limit #1

Closed indigodomo closed 7 years ago

indigodomo commented 8 years ago

Using this:

socket.gethostbyname_ex(socket.gethostname())

will return a list, the last item of which is another list of IP addresses for the current Mac - so it's a single-link multi-homed IP address. This would theoretically allow us to open HTTP ports on each IP address, each of which could serve up 27 (the current limitation of Alexa's Hue support) devices, theoretically allowing an unlimited number. Not sure it will actually work, and the changes are pretty pervasive, so I left it as an exercise for the future (probably for someone else).

To set it up on your Mac, go in to the Network preferences and add another virtual interface on the existing ethernet or wifi interface, specify a different IP, and you're done.

indigodomo commented 7 years ago

This is no longer needed as the alexa integration no longer cares about IP. Version 2.0.2+ of the plugin supports multiple virtual Hue Bridges for an unlimited number of alexa devices.