Skip to main content
#yeelightsunflower

[![Build Status](https://travis-ci.org/lindsaymarkward/python-yeelight-sunflower.svg?branch=master)](https://travis-ci.org/lindsaymarkward/python-yeelight-sunflower)

yeelightsunflower is a Python package for interacting with Yeelight Sunflower light bulbs.

Product details for these bulbs can be found at the following website (but note that they may not be available any more): https://www.yeelight.com/en_US/product/yeelight-sunflower

This library was written primarily to work with Home Assistant: https://home-assistant.io

Communication is via TCP commands, e.g.
Sending `GL,,,,0,\r\n` to the IP address of the Yeelight hub gets the current state of all lights and would return something like: `GLB 143E,1,1,22,255,10,10,0,0;287B,1,1,64,255,10,10,0,0;0001,1,1,0,255,10,10,0,0;`
Sending `C 143F,255,0,255,50,\r\n` would set the light identified by `143F` to magenta at 50% brightness.

The library wraps these commands in a form suitable as a platform for the Home Assistant light component, and could be used by other modules.

This library does not implement the SSDP hub identification that Yeelight Sunflower hubs support.

Changelog for yeelightsunflower
===============================

0.0.10 (2018-03-09)
------------------

- Correct string check and missing CHANGELOG (again :)


0.0.9 (2018-03-09)
------------------

- Handle and log invalid responses when getting lights (avoid IndexError)


0.0.8 (2017-02-25)
------------------

- Correct problem with CHANGELOG missing in PyPi package (update MANIFEST.in)


0.0.7 (2017-02-25)
------------------

- Try to reconnect socket when there's a send/receive error
- Set availability of lights to False if hub is unavailable


0.0.6 (2017-02-23)
------------------

- Add time check to use cached data instead of fetching new data via TCP. This is useful since multiple bulb objects will get the hub's data in short succession, and all should just use the same values.

0.0.5 (2017-02-17)
------------------
- Make library thread safe with threading.Lock

Release files for yeelightsunflower 0.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yeelightsunflower 0.0.10
File Size Uploaded
yeelightsunflower-0.0.10.tar.gz 6.0 kB Details

Release files / yeelightsunflower-0.0.10.tar.gz

Download URL yeelightsunflower-0.0.10.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
978465e964822baf3f5c1c029dda2736ede478f0d77d2b3fb885da0a4ac84fb8
BLAKE2b-256 checksum
How to use checksums
32275460a60572d2a78339f33bfc2752eee8a90b2b8e046770d19b2734c110bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.10 This release

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page