ManagerSystem

Access this instance at HomeyAPIV2.system.

Extends

Instance Properties

homey

homey: HomeyAPIV3

The Homey of the Manager.

Type

uri

uri: String

The 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

Promise.<void>

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

Promise.<void>

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

Promise.<any>

getMemoryInfo

(async) getMemoryInfo(): Promise.<any>

Scopes

homey.system.readonly

HTTP

GET /api/manager/system/memory

Returns

Promise.<any>

getStorageInfo

(async) getStorageInfo(): Promise.<any>

Scopes

homey.system.readonly

HTTP

GET /api/manager/system/storage

Returns

Promise.<any>

getSystemName

(async) getSystemName(): Promise.<any>

Scopes

homey.system.readonly

HTTP

GET /api/manager/system/name

Returns

Promise.<any>

isConnected

isConnected(): Boolean

If this manager's namespace is connected to Socket.io.

Returns

Boolean

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

Promise.<any>

reboot

(async) reboot(): Promise.<any>

Scopes

homey.system

HTTP

POST /api/manager/system/reboot

Returns

Promise.<any>

rebootRecovery

(async) rebootRecovery(): Promise.<any>

Scopes

homey.system

HTTP

POST /api/manager/system/rebootrecovery

Returns

Promise.<any>

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

Promise.<any>

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

Promise.<any>

setSystemName

(async) setSystemName(opts): Promise.<any>

Scopes

homey.system

HTTP

PUT /api/manager/system/name

Parameters

Name Type Description
opts
object
name
string
}

Returns

Promise.<any>