Phue\Group::setColorTemp PHP Method

setColorTemp() public method

Set Color temperature
public setColorTemp ( integer $value ) : self
$value integer Color temperature value
return self This object
    public function setColorTemp($value)
    {
        $x = new SetGroupState($this);
        $y = $x->colorTemp((int) $value);
        $this->client->sendCommand($y);
        // Change both internal color temp and colormode state
        $this->attributes->action->ct = (int) $value;
        $this->attributes->action->colormode = 'ct';
        return $this;
    }