diff --git a/library/Phue/Light.php b/library/Phue/Light.php index 9373c3c..062134b 100644 --- a/library/Phue/Light.php +++ b/library/Phue/Light.php @@ -437,7 +437,7 @@ public function setColorTemp($value) */ public function getColorMode() { - return $this->attributes->state->colormode; + return property_exists($this->attributes->state, 'colormode') ? $this->attributes->state->colormode : null; } /**