Rust library for Phillips hue
src | ||
.gitignore | ||
Cargo.toml | ||
LICENSE | ||
README.md | ||
rustfmt.toml |
rhue
Phillips hue library for rust.
let bridge = Bridge::new("username", Url::parse("http://192.168.2.123"));
let lights = bridge.get_lights().await?;
for (id, _) in lights {
bridge.update_light(
id,
StateUpdate { on: Some(true), ..Default::default() }
).await?;
}
features
- registration
- bridge discovery
- light requesting & control
- group requesting & control