Property | Type | Description | |
---|---|---|---|
$attributes | array | Sensor attributes | |
$config | array | Config | |
$state | array | Sensor state |
Method | 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 ( |
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 |
public __construct ( string $name = null ) | ||
$name | string | Name |
public configAttribute ( string $key, mixed $value ) : self | ||
$key | string | Key |
$value | mixed | Value |
return | self | This object |
public manufacturerName ( string $manufacturerName ) : self | ||
$manufacturerName | string | Manufacturer name |
return | self | This object |
public softwareVersion ( string $softwareVersion ) : self | ||
$softwareVersion | string | Software version |
return | self | This object |
public stateAttribute ( string $key, mixed $value ) : self | ||
$key | string | Key |
$value | mixed | Value |
return | self | This object |