Rust library for Phillips hue
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LordMZTE 0a42a4fabc
enumify light architype
1 year ago
src enumify light architype 1 year ago
.gitignore init 1 year ago
Cargo.toml init 1 year ago
LICENSE init 1 year ago
README.md add some more features to the feature list 1 year ago
rustfmt.toml init 1 year ago

README.md

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