PHP Class Phue\Command\CreateSensor

Inheritance: implements Phue\Command\CommandInterface
Afficher le fichier Open project: sqmk/phue Class Usage Examples

Protected Properties

Свойство Type Description
$attributes array Sensor attributes
$config array Config
$state array Sensor state

Méthodes publiques

Méthode Description
__construct ( string $name = null ) Constructs a command
configAttribute ( string $key, mixed $value ) : self Config attribute
manufacturerName ( string $manufacturerName ) : self Set manufacturer name
modelId ( string $modelId ) : self Set model Id
name ( string $name ) : self Set name
send ( Client $client ) : integer Send command
softwareVersion ( string $softwareVersion ) : self Set software version
stateAttribute ( string $key, mixed $value ) : self State attribute
type ( string $type ) : self Set type
uniqueId ( string $uniqueId ) : self Set unique Id

Method Details

__construct() public méthode

Constructs a command
public __construct ( string $name = null )
$name string Name

configAttribute() public méthode

Config attribute
public configAttribute ( string $key, mixed $value ) : self
$key string Key
$value mixed Value
Résultat self This object

manufacturerName() public méthode

Set manufacturer name
public manufacturerName ( string $manufacturerName ) : self
$manufacturerName string Manufacturer name
Résultat self This object

modelId() public méthode

Set model Id
public modelId ( string $modelId ) : self
$modelId string Model Id
Résultat self This object

name() public méthode

Set name
public name ( string $name ) : self
$name string Name
Résultat self This object

send() public méthode

Send command
public send ( Client $client ) : integer
$client Phue\Client Phue Client
Résultat integer Sensor Id

softwareVersion() public méthode

Set software version
public softwareVersion ( string $softwareVersion ) : self
$softwareVersion string Software version
Résultat self This object

stateAttribute() public méthode

State attribute
public stateAttribute ( string $key, mixed $value ) : self
$key string Key
$value mixed Value
Résultat self This object

type() public méthode

Set type
public type ( string $type ) : self
$type string Type of sensor
Résultat self This object

uniqueId() public méthode

Set unique Id
public uniqueId ( string $uniqueId ) : self
$uniqueId string Unique Id
Résultat self This object

Property Details

$attributes protected_oe property

Sensor attributes
protected array $attributes
Résultat array

$config protected_oe property

Config
protected array $config
Résultat array

$state protected_oe property

Sensor state
protected array $state
Résultat array