Constructor
new Homey.Signal(id, frequency)
- Library:
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
The ID of the signal, as defined in the app's |
frequency |
string
|
The frequency of the signal |
Methods
cmd(commandId, optsopt, callbackopt) → {Promise}
Transmit a command
Parameters:
Name | Type | Attributes | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
commandId |
string
|
The ID of the command, as specified in |
|||||||||
opts |
object
|
<optional> |
Transmission options
|
||||||||
callback |
genericCallbackFunction
|
<optional> |
Returns:
- Type:
-
Promise
register(callbackopt) → {Promise}
Register the signal. This is a shorthand method for ManagerRF#registerSignal.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
genericCallbackFunction
|
<optional> |
Returns:
- Type:
-
Promise
tx(frame, optsopt, callbackopt) → {Promise}
Transmit a frame
Parameters:
Name | Type | Attributes | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
frame |
Array
|
An array of word indexes |
|||||||||
opts |
object
|
<optional> |
Transmission options
|
||||||||
callback |
genericCallbackFunction
|
<optional> |
Returns:
- Type:
-
Promise
unregister(callbackopt) → {Promise}
Unregister the signal. This is a shorthand method for ManagerRF#unregisterSignal.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
genericCallbackFunction
|
<optional> |
Returns:
- Type:
-
Promise