Small python app to run UDP servers emulating LimitlessLED / Milight / Applamp WiFi Bridge 4.0 units. Originally forked from riptidewave93/RFLED-Server to add support for multiple milight bridges. As the original project has been ported to Go and this fork was in the end a nearly complete reimplementation anyway, both projects drifted strongly apart. As a consequence, this fork has been detached and is now offered as a separate project.
See http://servernetworktech.com/2014/09/limitlessled-wifi-bridge-4-0-conversion-raspberry-pi/
python3
and python3-yaml
on your machine. On new linux distributions, python3-serial
is also needed.Start main.py, e.g. with python3 main.py
.
For each additional milight bridge, add a virtual interface with it's own IP and MAC address. Please consider that DHCP probably won't work with these virtual interfaces, so you have to assign static IPs to them. Make sure that iproute2
is installed.
Method 1: You can create virtual interfaces by adding the following lines to /etc/network/interfaces:
auto vlan.milight1
iface vlan.milight1 inet static
address 192.168.0.52
netmask 255.255.255.0
gateway 192.168.0.1
pre-up ip link add link eth0 vlan.milight1 address 00:11:22:33:44:55 type macvlan mode bridge
post-down ip link delete dev vlan.milight1
Method 2: On newer operating systems (like Debian Jessie) you could also use systemd-networkd to configure your VLAN. Do it like that:
[NetDev]
Name=eth0.milight1
Kind=macvlan
MACAddress=00:11:22:33:44:55
[MACVLAN] Mode=bridge
* Create /etc/systemd/network/eth0.milight1.network
[Match] Name=eth0.milight1
[Network] IPForward=yes Address=192.168.0.52 Gateway=192.168.0.1
* Create /etc/systemd/network/eth0.network
[Match] Name=eth0
[Network] MACVLAN=eth0.milight1
You may also interested in: