Add MiLight/LimitlessLED bulbs to Hubitat (requires the ESP8266 MiLight Hub by sidoh)
- Setup your ESP8266 MiLight Hub, and make sure it has a fixed IP address
- Add
lightbulbdriver.groovy
to your Hubitat as a new Driver (underDrivers Code
) - Add a new device for each bulb group to your Hubitat, set device Type to your User driver of 'MiLight Light'
- Configure the Hubitat bulb device with:
- the IP address of the hub
- your hex Hub address (see the hub documentation for how to discover/set this)
- your light type (
cct
for a White-only bulb,rgb
for an RGB bulb, orrgb_cct
for an RGBW bulb) - your light Group ID (or
0
for the 'All' group /0
for an RGB bulb)
You can also monitor the status of the MiLight hub (online/offline) if your hub is version 1.9.0 or higher and you have an MQTT broker:
- Configure your ESP8266 MiLight Hub for MQTT:
- Enter your MQTT broker address under
MQTT server
- Enter your desired topic under
MQTT Client Status Topic
, eg.milight/status
- Enter your MQTT broker address under
- Add
hubdriver.groovy
to your Hubitat as a new Driver (underDrivers Code
) - Add a new device to your Hubitat, set device Type to your User driver of 'MiLight Gateway'
- Configure the new Hubitat MiLight Gateway device with:
- the MQTT broker address of the hub ip:port (eg.
127.0.0.1:1883
) - the MQTT topic you chose earlier (eg.
milight/status
)
- the MQTT broker address of the hub ip:port (eg.
- Save your settings - if they're correct and the hub is online, refreshing the device page will show the hub as
present
as well as listing its IP address and firmware version
Credits:
- bworby for adding bulb Type and Colour bulb support