Simple controls for the MiLight LED WiFi bridge (also known as LimitlessLED and EasyBulb)
Signature | hs.milight.maxBrightness |
---|---|
Type | Constant |
Description |
Specifies the maximum brightness value that can be used. Defaults to 25 |
Source | extensions/milight/milight.lua line 14 |
Signature | hs.milight.minBrightness |
---|---|
Type | Constant |
Description |
Specifies the minimum brightness value that can be used. Defaults to 0 |
Source | extensions/milight/milight.lua line 9 |
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 |
|
Source | extensions/milight/libmilight.m line 73 |
Signature | hs.milight:delete() |
---|---|
Type | Method |
Description |
Deletes an |
Parameters |
|
Returns |
|
Source | extensions/milight/libmilight.m line 121 |
Signature | hs.milight:disco() -> bool |
---|---|
Type | Method |
Description |
Cycles through the disco modes |
Parameters |
|
Returns |
|
Source | extensions/milight/milight.lua line 90 |
Signature | hs.milight:send(cmd[, value]) -> bool |
---|---|
Type | Method |
Description |
Sends a command to the bridge |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/milight/libmilight.m line 140 |
Signature | hs.milight:zoneBrightness(zone, value) -> integer |
---|---|
Type | Method |
Description |
Sets brightness for the specified zone |
Parameters |
|
Returns |
|
Source | extensions/milight/milight.lua line 107 |
Signature | hs.milight:zoneColor(zone, value) -> bool |
---|---|
Type | Method |
Description |
Sets RGB color for the specified zone |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/milight/milight.lua line 121 |
Signature | hs.milight:zoneOff(zone) -> bool |
---|---|
Type | Method |
Description |
Turns off the specified zone |
Parameters |
|
Returns |
|
Source | extensions/milight/milight.lua line 64 |
Signature | hs.milight:zoneOn(zone) -> bool |
---|---|
Type | Method |
Description |
Turns on the specified zone |
Parameters |
|
Returns |
|
Source | extensions/milight/milight.lua line 77 |
Signature | hs.milight:zoneWhite(zone) -> bool |
---|---|
Type | Method |
Description |
Sets the specified zone to white |
Parameters |
|
Returns |
|
Source | extensions/milight/milight.lua line 154 |
© 2014–2017 Hammerspoon contributors
Licensed under the MIT License.
https://www.hammerspoon.org/docs/hs.milight.html