public function setLights($selector = 'all', $state = 'on', $duration = 1.0)
    {
        $request = new Request('PUT', 'lights/' . $selector . '/state');
        $response = $this->sendRequest($request, [
            'query' => [
                'power' => $state,
                'duration' => $duration
            ]
        ]);

        return $response->getBody();
    }