Quickstart ========== Discover nearby Avea bulbs: .. code-block:: python import avea bulbs = avea.discover_avea_bulbs() for bulb in bulbs: print(bulb.get_name(), bulb.addr) Control a known bulb: .. code-block:: python import avea bulb = avea.Bulb("xx:xx:xx:xx:xx:xx") bulb.set_brightness(2000) bulb.set_rgb(0, 255, 0) print(bulb.get_rgb()) bulb.close() Value ranges ------------ ``set_brightness`` and ``set_color`` use 12-bit channel values from ``0`` to ``4095``. ``set_rgb`` and ``set_smooth_transition`` use regular RGB values from ``0`` to ``255`` and convert them internally.