On this page
hs.milight
Simple controls for the MiLight LED WiFi bridge (also known as LimitlessLED and EasyBulb)
API Overview
- Constants - Useful values which cannot be changed
- Constructors - API calls which return an object, typically one that offers API methods
- Methods - API calls which can only be made on an object returned by a constructor
API Documentation
Constants
maxBrightness
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 |
minBrightness
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 |
Constructors
new
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 |
Methods
delete
Signature | hs.milight:delete() |
---|---|
Type | Method |
Description | Deletes an |
Parameters |
|
Returns |
|
Source | extensions/milight/libmilight.m line 121 |
disco
Signature | hs.milight:disco() -> bool |
---|---|
Type | Method |
Description | Cycles through the disco modes |
Parameters |
|
Returns |
|
Source | extensions/milight/milight.lua line 90 |
send
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 |
zoneBrightness
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 |
zoneColor
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 |
zoneOff
Signature | hs.milight:zoneOff(zone) -> bool |
---|---|
Type | Method |
Description | Turns off the specified zone |
Parameters |
|
Returns |
|
Source | extensions/milight/milight.lua line 64 |
zoneOn
Signature | hs.milight:zoneOn(zone) -> bool |
---|---|
Type | Method |
Description | Turns on the specified zone |
Parameters |
|
Returns |
|
Source | extensions/milight/milight.lua line 77 |
zoneWhite
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