1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! # govee-api2
//!
//! A Rust client for Govee's v2 router-based platform API
//! (`https://openapi.api.govee.com`).
//!
//! Supported:
//! - Device and group discovery
//! - Device state queries
//! - Device control (power, brightness, color, color temperature)
//! - Dynamic light scenes and DIY scenes (list + activate)
//! - Per-segment color and brightness for segmented lights
//! - Configurable timeout and retry with backoff, typed rate-limit errors
//!
//! ## Example
//!
//! ```rust,no_run
//! use govee_api2::GoveeClient;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let client = GoveeClient::new("your-api-key");
//!
//! // List all devices
//! let devices = client.get_devices().await?;
//! println!("Found {} devices", devices.len());
//!
//! // Control a device
//! if let Some(device) = devices.first() {
//! client.turn_on(&device.device, &device.sku).await?;
//! client.set_brightness(&device.device, &device.sku, 80).await?;
//! }
//!
//! Ok(())
//! }
//! ```
/// Compile the README's code examples as doctests.
;
pub use ;
pub use ;
pub use *;