This adds FritzhomeDeviceLightBulb along with everything needed to control these light bulbs. Tests are included and pass.
The following examples all expect you to have done something like
from pyfritzhome import Fritzhome
f = Fritzhome("192.168.1.1", "fritz_smarthome", 'password')
f.login()
device=f.get_device_by_ain("13011 0003111-1") # substitute your own AIN
The Fritz!DECT 500 light bulb supports only a discrete set of colors, arbitrary colors are not possible:
Von den Colordefaults abweichende HueSaturation- oder Farbtemperatur-Werte sind unzulässsig. Abweichende Werte werden vom setcolor-switchcmd bzw. setcolortemperatur-switchcmd verworfen
source, see Section 3.5
I have verfied this also experimentally. Hence, it is necessary to first source the available colors and use one of them for setting the color of the light bulb:
This adds
FritzhomeDeviceLightBulb
along with everything needed to control these light bulbs. Tests are included and pass.The following examples all expect you to have done something like
Turn on, off, toggle light bulb
Dimming
The brightness can be set either via a raw value (ranging from 0 to 255) or via a percentage (from 0 to 100):
Colors
The Fritz!DECT 500 light bulb supports only a discrete set of colors, arbitrary colors are not possible:
I have verfied this also experimentally. Hence, it is necessary to first source the available colors and use one of them for setting the color of the light bulb:
The color names depend on the language of your Fritz!Box.
In this example, there are three variants of each color available, you can set one of them using, e.g.:
White temperature
Likewise, only distinct white temperatures between cold and warm white are supported. First, get the supported temperatures using
and use one of them to set a white light color: