RGB Lights¶
-
class
applamp.
RgbLight
(ip='192.168.1.100', port=50000)¶ Create an object for controlling RGB AppLamp light bulbs. Optional attributes ip and port allow for a custom AppLamp Wifi Box setup. By default those values are 192.168.1.100 and 50000.
-
bright_down
()¶ Makes the light less bright.
-
bright_up
()¶ Makes the light brighter.
-
fade_in
(duration=3)¶ Turns on the light by gradually fading it in. The optional duration parameter allows for control of the fade in duration (in seconds)
-
fade_out
(duration=3)¶ Turns off the light by gradually fading it out. The optional duration parameter allows for control of the fade out duration (in seconds)
-
faster_effect
()¶ Makes the current built-in light effect faster
-
hue
(value)¶ Changes the light color to value, which must be a hue value (a number between 0 and 255)
-
next_effect
()¶ Switches to a next built-in light effect
-
off
()¶ Turns the lights off.
-
on
()¶ Turns the lights on.
-
previous_effect
()¶ Switches to a previous built-in light effect
-
slower_effect
()¶ Makes the current built-in light effect slower
-