White Lights¶
-
class
applamp.
WhiteLight
(ip='192.168.1.100', port=50000)¶ Create an object for controlling white 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.
White AppLamp bulbs have a “group” future, allowing for partitioning of light sources into multiple groups. Most methods of this class supports this feature via an optional group attribute. The default value of 0 means the method will be applied to all light sources in all groups. Values between 1 and 4 will be interpreted as group identifiers, and the method will be applied only to light sources within a given group.
-
bright_down
(group=0)¶ Makes the light less bright.
-
bright_up
(group=0)¶ Makes the light brighter.
-
cooler
(group=0)¶ Makes the light less warm.
-
fade_in
(duration=3, group=0)¶ 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, group=0)¶ Turns off the light by gradually fading it out. The optional duration parameter allows for control of the fade out duration (in seconds)
-
full_brightness
(group=0)¶ Sets brightness to 100%.
-
night_mode
(group=0)¶ Switches the lights into night mode (very low brightness).
-
off
(group=0)¶ Turns the lights off.
-
on
(group=0)¶ Turns the lights on.
-
warmer
(group=0)¶ Makes the light warmer.
-