Property | Type | Description | |
---|---|---|---|
$host | string | Host address | |
$transport | Phue\Transport\TransportInterface | Transport | |
$username | string | Username |
Method | Description | |
---|---|---|
__construct ( string $host, string $username = null ) | Construct a Phue Client | |
getBridge ( ) : |
Get bridge | |
getGroups ( ) : |
Get groups | |
getHost ( ) : string | Get host | |
getLights ( ) : |
Get lights | |
getRules ( ) : |
Get rules | |
getScenes ( ) : |
Get scenes | |
getSchedules ( ) : |
Get schedules | |
getSensors ( ) : |
Get sensors | |
getTimezones ( ) : array | Get timezones | |
getTransport ( ) : Phue\Transport\TransportInterface | Get transport | |
getUsername ( ) : string | Get username | |
getUsers ( ) : |
Get users | |
sendCommand ( Phue\Command\CommandInterface $command ) : mixed | Send command to server | |
setHost ( string $host ) : self | Set host | |
setTransport ( Phue\Transport\TransportInterface $transport ) : self | Set transport | |
setUsername ( string $username ) : self | Set username |
public __construct ( string $host, string $username = null ) | ||
$host | string | Host address |
$username | string | Username |
public getGroups ( ) : |
||
return | List of Group objects |
public getLights ( ) : |
||
return | List of Light objects |
public getScenes ( ) : |
||
return | List of Scene objects |
public getSchedules ( ) : |
||
return | List of Schedule objects |
public getSensors ( ) : |
||
return | List of Sensor objects |
public getTimezones ( ) : array | ||
return | array | List of timezones |
public getTransport ( ) : Phue\Transport\TransportInterface | ||
return | Phue\Transport\TransportInterface | Transport |
public sendCommand ( Phue\Command\CommandInterface $command ) : mixed | ||
$command | Phue\Command\CommandInterface | Phue command |
return | mixed | Command result |
public setTransport ( Phue\Transport\TransportInterface $transport ) : self | ||
$transport | Phue\Transport\TransportInterface | Transport |
return | self | This object |
public setUsername ( string $username ) : self | ||
$username | string | Username |
return | self | This object |
protected TransportInterface,Phue\Transport $transport | ||
return | Phue\Transport\TransportInterface |