A simple C++ library to control Philips Hue lights on Linux, MacOS, Windows, Espressif ESP32 SDK and Arduino. Full documentation at
hueplusplus
->src
, hueplusplus/include
-> include/hueplusplus
)hueplusplus
Hue
-> hueplusplus::Bridge
HueFinder
-> hueplusplus::BridgeFinder
HueFinder::HueIdentification
-> hueplusplus::BridgeFinder::BridgeIdentification
HueLight
-> hueplusplus::Light
bridge.getLight(id)
-> bridge.lights().get(id)
(also return type changed from HueLight&
to hueplusplus::Light
(by value))bridge.getAllLights()
-> bridge.lights().getAll()
(also return type changed from std::vector<std::reference_wrapper<HueLight>>
to std::vector<hueplusplus::Light>
)bridge.removeLight(id)
-> bridge.lights().remove(id)
bridge.lightExists(id)
-> bridge.lights().exists(id)
light.setColorHueSaturation(hue, sat)
-> light.setColorHueSaturation(hueplusplus::HueSaturation{hue, sat})
(or light.setColorHueSaturation({hue, sat})
)light.setColorXY(x,y)
-> light.setColorXY(hueplusplus::XYBrightness{{x,y},bri})
(or light.setColorXY({{x,y},bri})
)light.getColorHueSaturation()
, light.getColorXY()
, light.setColorRGB()
, light.alertHueSaturation()
, light.alertXY()
light.alertRGB()
, use light.alertXY()
or light.alertHueSaturation()
instead and convert RGB firstbridge.getPictureOfModel(model_id)
to ModelPictures.h
as a free function, remove bridge.getPictureOfLight(id)
. Get modelid from light insteadkelvinToMired()
, miredToKelvin()
from HueLight
to ColorUnits.h
as a free functionlight.on()
, light.off()
, bridgeFinder.addUsername()
, bridgeFinder.getBridge()
, bridgeFinder.findBridges()
, hueplusplus::BridgeFinder::normalizeMac()
, kelvinToMired()
, miredToKelvin()