View Source TpLink.Type.Bulb (tp_link v0.4.1)

Link to this section Summary

Functions

Sets the lighting state.

Link to this section Functions

Link to this function

set_light_state(device, opts)

View Source

Sets the lighting state.

options

Options

  • :brightness - Brightness (0-100).

  • :color_temp - Color temp in kelvin (0-9000). Must be set to 0 for color options to take effect.

  • :hue - Hue (0-360).

  • :ignore_default (boolean/0)

  • :on_off (boolean/0) - Boolean to turn bulb on/off.

  • :saturation - Saturation (0-100).