yeelib_rs
A Rust library for easy interfacing with Yeelight products, including LAN light discovery with multicast and SSDP, with intended implementation of all major parts of the Yeelight Third-party Control Protocol.
Getting started
Unless otherwise specified, methods to adjust the light's parameters have the method name and behavior exactly as specified in the above spec.
use Duration;
use sleep;
use ;
use ;
See main.rs for some more examples.
Currently supported methods
set_ct_abx
set_rgb
set_hsv
set_bright
set_power
toggle
adjust_bright
adjust_ct
To do
- Document every component
Flatten public exports- Finish implementation of the API
- Improve test coverage
- Handle API errors
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.