Extends
- Homey.Device
Properties
CAPABILITIES
CAPABILITIES: objectType
- object
RX_ENABLED
RX_ENABLED: booleanType
- boolean
Methods
onCapability
(async) onCapability(capabilityId, value, opts): Promise.<void>Device-specific methods
Parameters
Name | Type | Description |
---|---|---|
capabilityId
|
string | |
value
|
* | |
opts
|
object |
Returns
Promise.<void>
onCommand
(async) onCommand(command, args): Promise.<void>Parameters
Name | Type | Description |
---|---|---|
command
|
||
args
|
object | |
isFirst
|
boolean | |
|
Returns
Promise.<void>
onCommandFirst
(async) onCommandFirst(command, flags): Promise.<void>Parameters
Name | Type | Description |
---|---|---|
command
|
||
flags
|
object |
Returns
Promise.<void>
onCommandMatch
(async) onCommandMatch(command): Promise.<*>Parameters
Name | Type | Description |
---|---|---|
command
|
Returns
Promise.<*>
onDeleted
(async) onDeleted(): Promise.<void>Returns
Promise.<void>
onInit
(async) onInit(): Promise.<void>Do not use this method, but use RFDevice#onRFInit instead.
Returns
Promise.<void>
onRFDeleted
(async) onRFDeleted(): Promise.<void>Returns
Promise.<void>
onRFInit
(async) onRFInit(): Promise.<void>Returns
Promise.<void>
onRFUninit
(async) onRFUninit(): Promise.<void>Returns
Promise.<void>
onRX
(async) onRX(command, args): Promise.<void>Parameters
Name | Type | Description |
---|---|---|
command
|
||
args
|
object | |
isFirst
|
boolean | |
flags
|
object | |
|
Returns
Promise.<void>