50 Light createLight(
const nlohmann::json& lightState,
int id,
const std::shared_ptr<APICache>& baseCache = {});
59 ColorType getColorType(
const nlohmann::json& lightState,
bool hasCt)
const;
63 std::chrono::steady_clock::duration refreshDuration;
64 std::shared_ptr<BrightnessStrategy> simpleBrightness;
65 std::shared_ptr<ColorTemperatureStrategy> simpleColorTemperature;
66 std::shared_ptr<ColorTemperatureStrategy> extendedColorTemperature;
67 std::shared_ptr<ColorHueStrategy> simpleColorHue;
68 std::shared_ptr<ColorHueStrategy> extendedColorHue;
Light createLight(const nlohmann::json &lightState, int id, const std::shared_ptr< APICache > &baseCache={})
Create a Light with the correct type from the JSON state.
Definition HueDeviceTypes.cpp:72