Свойство | Type | Description | |
---|---|---|---|
$host | string | Host address | |
$transport | Phue\Transport\TransportInterface | Transport | |
$username | string | Username |
Méthode | 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 ( ) : |
||
Résultat | List of Group objects |
public getLights ( ) : |
||
Résultat | List of Light objects |
public getRules ( ) : |
||
Résultat | List of Rule objects |
public getScenes ( ) : |
||
Résultat | List of Scene objects |
public getSchedules ( ) : |
||
Résultat | List of Schedule objects |
public getSensors ( ) : |
||
Résultat | List of Sensor objects |
public getTimezones ( ) : array | ||
Résultat | array | List of timezones |
public getTransport ( ) : Phue\Transport\TransportInterface | ||
Résultat | Phue\Transport\TransportInterface | Transport |
public getUsers ( ) : |
||
Résultat | List of User objects |
public sendCommand ( Phue\Command\CommandInterface $command ) : mixed | ||
$command | Phue\Command\CommandInterface | Phue command |
Résultat | mixed | Command result |
public setTransport ( Phue\Transport\TransportInterface $transport ) : self | ||
$transport | Phue\Transport\TransportInterface | Transport |
Résultat | self | This object |
public setUsername ( string $username ) : self | ||
$username | string | Username |
Résultat | self | This object |
protected TransportInterface,Phue\Transport $transport | ||
Résultat | Phue\Transport\TransportInterface |