Access this instance at HomeyAPIV2.updates
.
Extends
Instance Properties
homey
homey: HomeyAPIV3uri
uri: StringThe URI of the Item, e.g. homey:manager:bar
.
Type
- String
Instance Methods
addListener
addListener(event, callback)Parameters
Name | Type | Description |
---|---|---|
event
|
string | |
callback
|
function |
connect
(async) connect(): Promise.<void>Connect to this manager's Socket.io namespace.
Returns
destroy
destroy()Destroy this Manager by cleaning up all references, unbinding event listeners and disconnecting from the Socket.io namespace.
disconnect
(async) disconnect(): Promise.<void>Disconnect from this manager's Socket.io namespace.
Returns
emit
emit(event, …data)Parameters
Name | Type | Description |
---|---|---|
event
|
string | |
data
|
any
<repeatable> |
getOptionAutoupdate
(async) getOptionAutoupdate(): Promise.<any>Scopes
UPDATES_READONLY
HTTP
GET /api/manager/updates/option/autoupdate
Returns
getOptionChannel
(async) getOptionChannel(): Promise.<any>Scopes
UPDATES_READONLY
HTTP
GET /api/manager/updates/option/channel
Returns
getOptionForceChannel
(async) getOptionForceChannel(): Promise.<any>Scopes
UPDATES_READONLY
HTTP
GET /api/manager/updates/option/forceChannel
Returns
getOptionUpdateNotifications
(async) getOptionUpdateNotifications(): Promise.<any>Scopes
UPDATES_READONLY
HTTP
GET /api/manager/updates/option/updateNotifications
Returns
getState
(async) getState(): Promise.<any>Scopes
UPDATES_READONLY
HTTP
GET /api/manager/updates/state
Returns
getUpdates
(async) getUpdates(opts): Promise.<any>Scopes
homey.updates.readonly
HTTP
GET /api/manager/updates/update
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
flags
|
string
<optional> |
|
cache
|
string
<optional> |
|
|
Returns
getWhatsNew
(async) getWhatsNew(): Promise.<any>Scopes
homey.updates.readonly
HTTP
GET /api/manager/updates/whatsnew/
Returns
installUpdate
(async) installUpdate(): Promise.<any>Scopes
homey.updates
HTTP
POST /api/manager/updates/update
Returns
isConnected
isConnected(): BooleanIf this manager's namespace is connected to Socket.io.
Returns
off
off(event, callback)Parameters
Name | Type | Description |
---|---|---|
event
|
string | |
callback
|
function |
on
on(event, callback)Parameters
Name | Type | Description |
---|---|---|
event
|
string | |
callback
|
function |
once
once(event, callback)Parameters
Name | Type | Description |
---|---|---|
event
|
string | |
callback
|
function |
removeAllListeners
removeAllListeners(eventopt)Parameters
Name | Type | Description |
---|---|---|
event
|
string
<optional> |
removeListener
removeListener(event, callback)Shortcut to EventEmitter#off
Parameters
Name | Type | Description |
---|---|---|
event
|
string | |
callback
|
function |
setOptionAutoupdate
(async) setOptionAutoupdate(opts): Promise.<any>Scopes
UPDATES
HTTP
PUT /api/manager/updates/option/autoupdate
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
value
|
boolean | |
|
Returns
setOptionChannel
(async) setOptionChannel(opts): Promise.<any>Scopes
UPDATES
HTTP
PUT /api/manager/updates/option/channel
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
value
|
string | |
|
Returns
setOptionForceChannel
(async) setOptionForceChannel(opts): Promise.<any>Scopes
UPDATES
HTTP
PUT /api/manager/updates/option/forceChannel
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
value
|
string | |
|
Returns
setOptionUpdateNotifications
(async) setOptionUpdateNotifications(opts): Promise.<any>Scopes
UPDATES
HTTP
PUT /api/manager/updates/option/updateNotifications
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
value
|
array | |
|
Returns
setWhatsNewRead
(async) setWhatsNewRead(opts): Promise.<any>Scopes
homey.updates.readonly
HTTP
DELETE /api/manager/updates/whatsnew/:id
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
id
|
string | |
|
Returns
unsetOptionAutoupdate
(async) unsetOptionAutoupdate(): Promise.<any>Scopes
UPDATES
HTTP
DELETE /api/manager/updates/option/autoupdate
Returns
unsetOptionChannel
(async) unsetOptionChannel(): Promise.<any>Scopes
UPDATES
HTTP
DELETE /api/manager/updates/option/channel
Returns
unsetOptionForceChannel
(async) unsetOptionForceChannel(): Promise.<any>Scopes
UPDATES
HTTP
DELETE /api/manager/updates/option/forceChannel
Returns
unsetOptionUpdateNotifications
(async) unsetOptionUpdateNotifications(): Promise.<any>Scopes
UPDATES
HTTP
DELETE /api/manager/updates/option/updateNotifications