PHP Class Phue\Command\UpdateSensorState

Inheritance: extends CreateSensor
Mostra file Open project: sqmk/phue Class Usage Examples

Protected Properties

Property Type Description
$sensorId string Sensor Id
$state array Sensor state

Public Methods

Method Description
__construct ( mixed $sensor ) Constructs a command
send ( Client $client ) Send command
stateAttribute ( string $key, mixed $value ) : self State attribute

Method Details

__construct() public method

Constructs a command
public __construct ( mixed $sensor )
$sensor mixed Sensor Id or Sensor object

send() public method

Send command
public send ( Client $client )
$client Phue\Client Phue Client

stateAttribute() public method

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

Property Details

$sensorId protected_oe property

Sensor Id
protected string $sensorId
return string

$state protected_oe property

Sensor state
protected array $state
return array