App as returned by HomeyAPIV2.ManagerApps.
Extends
Instance Properties
autoupdate
autoupdate: booleanType
- boolean
brandColor
brandColor: stringType
- string
channel
channel: stringType
- string
compatibility
compatibility: stringType
- string
crashed
crashed: booleanType
- boolean
crashedMessage
crashedMessage: stringType
- string
enabled
enabled: booleanType
- boolean
exitCode
exitCode: numberType
- number
exitCount
exitCount: numberType
- number
exitSignal
exitSignal: stringType
- string
hasDrivers
hasDrivers: booleanType
- boolean
homey
homey: HomeyAPIV3icon
icon: stringType
- string
iconObj
iconObj: objectType
- object
id
id: stringType
- string
images
images: objectType
- object
manager
manager: HomeyAPIV3.Managername
name: stringType
- string
origin
origin: stringType
- string
permissions
permissions: arrayType
- array
ready
ready: booleanType
- boolean
sdk
sdk: numberType
- number
session
session: stringType
- string
settings
settings: booleanType
- boolean
state
state: stringType
- string
updateAvailable
updateAvailable: objectType
- object
uri
uri: stringThe URI of the Item, e.g. homey:foo:bar
.
Type
- string
usage
usage: objectType
- object
version
version: stringType
- string
Instance Methods
call
(async) call(opts): Promise.<any>Call the app's API endpoint.
Parameters
Name | Type | Description |
---|---|---|
opts
|
Object | |
method
|
'GET' | 'POST' | 'PUT' | 'DELETE' | HTTP Method of the API endpoint. |
path
|
String | Path to the API endpoint. |
body
|
mixed | |
|
Returns
Promise.<any>
connect
(async) connect()Connect to this item's Socket.io namespace.
delete
(async) delete(opts): Promise.<any>Make a DELETE request to the App's Web API.
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
path
|
string | |
|
Returns
Promise.<any>
disconnect
(async) disconnect()Discconnect from this item's Socket.io namespace.
get
(async) get(opts): Promise.<any>Make a GET request to the App's Web API.
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
path
|
string | |
|
Returns
Promise.<any>
post
(async) post(opts): Promise.<any>Make a POST request to the App's Web API.
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
path
|
string | |
body
|
object | |
|
Returns
Promise.<any>
put
(async) put(opts): Promise.<any>Make a PUT request to the App's Web API.
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
path
|
string | |
body
|
object | |
|
Returns
Promise.<any>
Events
delete
.on('delete')update
.on('update')Parameters
Name | Type | Description |
---|---|---|
app
|
object |