Huehue
A Rust wrapper for Hue API v2.
Note that the Hue API v2 is in early access at the time of writing, so an upgrade to it could break applications in unpredictable way.
Features
- Hue Bridge certificate validation.
- Bridge discovery:
- through mDNS.
- through discovery.meethue.com.
- user specified IPv4 address.
- Devices:
- list devices.
- Light:
- switch on/off.
- color in the CIE 1931 color space.
- color in the sRGB color space.
- dimming.
- Smart plug:
- switch on/off.
- note: smart plug is exposed as a light, since it is also listed as a light by Hue.
- XY to RGB and RGB to XY conversion.
Examples
The examples folder has fully functional sample applications to demonstrate some implemented features. The examples aim to be trivial to understand by focusing on specific functionality, and should be easy to copy and build your own application.
Simply use cargo to run the desired example:
> Bridge #1: