public function toggleLights($selector = 'all')
    {
        $request = new Request('POST', 'lights/' . $selector . '/toggle');
        $response = $this->sendRequest($request);

        return $response->getBody();
    }
public function toggleLights($selector = 'all')
    {
        $request = new Request('POST', 'lights/' . $selector . '/toggle');
        $response = $this->sendRequest($request);

        return $response->getBody();
    }
public function toggleLights ( $ selector = 'all' ) { $ request = new Request ( 'POST' , 'lights/' . $ selector . '/toggle' ) ; $ response = $ this -> sendRequest ( $ request ) ; return $ response -> getBody ( ) ; }
Toggle off lights if they are on, or turn them on if they are off.
Physically powered off lights are ignored.

@param string $selector Selector used to filter lights. Defaults to `all`.
@return \Psr\Http\Message\StreamInterface
Toggle off lights if they are on or turn them on if they are off . Physically powered off lights are ignored .