Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit 1b6a204

Browse files
committed
Reverted last commit due to new api version.
1 parent 86d827f commit 1b6a204

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libsrc/leddevice/LedDevicePhilipsHue.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ int LedDevicePhilipsHue::write(const std::vector<ColorRgb> & ledValues) {
166166
CiColor xy = lamp.rgbToCiColor(color.red / 255.0f, color.green / 255.0f, color.blue / 255.0f);
167167
// Write color if color has been changed.
168168
if (xy != lamp.color) {
169+
// Switch on if the lamp has been previously switched off.
170+
if (switchOffOnBlack && lamp.color == lamp.black) {
171+
put(getStateRoute(lamp.id), QString("{\"on\": true}"));
172+
}
169173
// Send adjust color and brightness command in JSON format.
170174
// We have to set the transition time each time.
171175
put(getStateRoute(lamp.id),

0 commit comments

Comments
 (0)