This module is the interface to a Milight Bridge which is connected to the network using a Wifi connection. It uses a UDP protocal with no acknowledgement so there is no guarantee that your command was received.
The Milight system is sold under various brands around the world including "LimitlessLED, EasyBulb, AppLamp"
The API documentation is available here: http://www.limitlessled.com/dev/
Define
define <name> MilightBridge <host/ip:port>
Specifies the MilightBridge device.
<host/ip> is the hostname or IP address of the Bridge with optional port (defaults to 8899 if not defined, use 50000 for V1,V2 bridges)
Readings
-
state
[Initialized|ok|unreachable]: Shows reachable status of bridge using "ping" check every 10 (checkInterval) seconds.
-
sendFail
0 if everything is OK. 1 if the send function was unable to send the command - this would indicate a problem with your network and/or host/port parameters.
-
slot[0|1|2|3|4|5|6|7|8]
The slotX reading will display the name of the MilightDevice that is defined with this Bridge as it's IODev. It will be blank if no device is defined for that slot.
Attributes
-
sendInterval
Default: 100ms. The bridge has a minimum send delay of 100ms between commands.
-
checkInterval
Default: 10s. Time after the bridge connection is re-checked.
If this is set to 0 checking is disabled and state = "Initialized".
-
protocol
Default: udp. Change to tcp if you have enabled tcp mode on your bridge.
-
tcpPing
If this attribute is defined, ping will use TCP instead of UDP.
=end html
=cut