Rust library for Phillips hue
Go to file
2023-03-06 22:57:24 +01:00
src enumify light architype 2021-10-24 23:27:18 +02:00
.gitignore init 2021-10-21 17:00:42 +02:00
Cargo.toml chore: update deps 2023-03-06 22:57:24 +01:00
LICENSE init 2021-10-21 17:00:42 +02:00
README.md add some more features to the feature list 2021-10-21 17:09:34 +02:00
rustfmt.toml init 2021-10-21 17:00:42 +02:00

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
  • async/await support
  • miette diagnostic support