docs » hs.milight
Simple controls for the MiLight LED WiFi bridge (also known as LimitlessLED and EasyBulb)
- Constants - Useful values which cannot be changed
- maxBrightness
- minBrightness
- Constructors - API calls which return an object, typically one that offers API methods
- new
- Methods - API calls which can only be made on an object returned by a constructor
- delete
- disco
- send
- zoneBrightness
- zoneColor
- zoneOff
- zoneOn
- zoneWhite
Signature | hs.milight.maxBrightness |
---|---|
Type | Constant |
Description | Specifies the maximum brightness value that can be used. Defaults to 25 |
Signature | hs.milight.minBrightness |
---|---|
Type | Constant |
Description | Specifies the minimum brightness value that can be used. Defaults to 0 |
Signature | hs.milight.new(ip[, port]) -> bridge |
---|---|
Type | Constructor |
Description | Creates a new bridge object, which will be connected to the supplied IP address and port |
Parameters |
|
Returns |
|
Notes |
|
Signature | hs.milight:delete() |
---|---|
Type | Method |
Description | Deletes an hs.milight object |
Parameters |
|
Returns |
|
Signature | hs.milight:disco() -> bool |
---|---|
Type | Method |
Description | Cycles through the disco modes |
Parameters |
|
Returns |
|
Signature | hs.milight:send(cmd[, value]) -> bool |
---|---|
Type | Method |
Description | Sends a command to the bridge |
Parameters |
|
Returns |
|
Notes |
|
Signature | hs.milight:zoneBrightness(zone, value) -> integer |
---|---|
Type | Method |
Description | Sets brightness for the specified zone |
Parameters |
|
Returns |
|
Signature | hs.milight:zoneColor(zone, value) -> bool |
---|---|
Type | Method |
Description | Sets RGB color for the specified zone |
Parameters |
|
Returns |
|
Notes |
|
Signature | hs.milight:zoneOff(zone) -> bool |
---|---|
Type | Method |
Description | Turns off the specified zone |
Parameters |
|
Returns |
|
Signature | hs.milight:zoneOn(zone) -> bool |
---|---|
Type | Method |
Description | Turns on the specified zone |
Parameters |
|
Returns |
|
Signature | hs.milight:zoneWhite(zone) -> bool |
---|---|
Type | Method |
Description | Sets the specified zone to white |
Parameters |
|
Returns |
|