Access this instance at HomeyAPIV2.system
.
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> |
getInfo
(async) getInfo(): Promise.<any>Scopes
homey.system.readonly
HTTP
GET /api/manager/system/
Returns
getMemoryInfo
(async) getMemoryInfo(): Promise.<any>Scopes
homey.system.readonly
HTTP
GET /api/manager/system/memory
Returns
getStorageInfo
(async) getStorageInfo(): Promise.<any>Scopes
homey.system.readonly
HTTP
GET /api/manager/system/storage
Returns
getSystemName
(async) getSystemName(): Promise.<any>Scopes
homey.system.readonly
HTTP
GET /api/manager/system/name
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 |
ping
(async) ping(opts): Promise.<any>Scopes
-
HTTP
GET /api/manager/system/ping
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
id
|
string
<optional> |
|
|
Returns
reboot
(async) reboot(): Promise.<any>Scopes
homey.system
HTTP
POST /api/manager/system/reboot
Returns
rebootRecovery
(async) rebootRecovery(): Promise.<any>Scopes
homey.system
HTTP
POST /api/manager/system/rebootrecovery
Returns
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 |
sendLog
(async) sendLog(opts): Promise.<any>Scopes
-
HTTP
POST /api/manager/system/journalctl
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
append
|
string
<optional> |
|
|
Returns
setDebug
(async) setDebug(opts): Promise.<any>Scopes
homey.system
HTTP
PUT /api/manager/system/debug/:mask
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
mask
|
string | |
|
Returns
setSystemName
(async) setSystemName(opts): Promise.<any>Scopes
homey.system
HTTP
PUT /api/manager/system/name
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
name
|
string | |
|