huelib-rs
Rust bindings for the Philips Hue API.
About
This library sends HTTP requests to the bridge using the ureq crate. The responses/requests are deserialized/serialized using the serde, serde_json and serde_repr crates.
Example
Register a user and set the brightness and saturation of a light.
use ;
use ;
let bridge_ip = V4;
let username = match register_user ;
let bridge = new;
let state_modifier = new
.brightness
.saturation;
match bridge.set_light_state ;
Todo
- Lights API
- Groups API
- Scenes API
- Configuration API
- Capabilities API
- Schedules API
- Rules API
- Resourcelinks API
- Sensors API