philips_hue 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/philips_hue/light.rb +5 -0
- data/lib/philips_hue/version.rb +1 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/lib/philips_hue/light.rb
CHANGED
@@ -176,6 +176,11 @@ module PhilipsHue
|
|
176
176
|
:bri => 255
|
177
177
|
}
|
178
178
|
|
179
|
+
# blink instead if the color is not going to change
|
180
|
+
if xy == original["xy"] && original["colormode"] == "xy"
|
181
|
+
flash_state["alert"] = "select"
|
182
|
+
end
|
183
|
+
|
179
184
|
# blink repeatedly if crazymode flag is set
|
180
185
|
# (works best for delay >2 seconds)
|
181
186
|
flash_state["alert"] = "lselect" if crazymode
|
data/lib/philips_hue/version.rb
CHANGED