/**
* Adjust individual light
*
* @param $id
* @param $brightness
* @return array
*/
public function adjustLight($id, $brightness)
{
try {
$light = $this->client->sendCommand(new \Phue\Command\GetLightById($id));
$light->setOn(true);
$command = new \Phue\Command\SetLightState($light);
$command->brightness($brightness);
$this->client->sendCommand($command);
return array('command' => true);
} catch (\Exception $e) {
dd($e);
return array('command' => $e->getMessage());
}
}