ManagerInsights

Access this instance at HomeyAPIV3Cloud.insights.

Extends

Classes

Methods

connect

(async) connect(): Promise.<void>

Connect to the realtime namespace.

Returns

Promise.<void>

deleteLog

(async) deleteLog(opts)

Scopes

homey.insights.readonly

HTTP

delete /api/manager/insights/log/:uri/:id

Parameters

Name Type Description
opts
object
id
string
uri
string
}

disconnect

(async) disconnect(): Promise.<void>

Disconnect from the realtime namespace.

Returns

Promise.<void>

getLog

(async) getLog(opts): Promise.<HomeyAPIV3Cloud.ManagerInsights.Log>

Scopes

homey.insights.readonly

HTTP

get /api/manager/insights/log/:id

Parameters

Name Type Description
opts
object
id
string
}

Returns

getLogEntries

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

Scopes

homey.insights.readonly

HTTP

get /api/manager/insights/log/:uri/:id/entry

Parameters

Name Type Description
opts
object
id
string
uri
string
resolution
string <optional>
}

Returns

Promise.<any>

getLogs

(async) getLogs(): Promise.<HomeyAPIV3Cloud.ManagerInsights.Log>

Scopes

homey.insights.readonly

HTTP

get /api/manager/insights/log

Returns

getState

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

Scopes

homey.system.readonly

HTTP

get /api/manager/insights/state

Returns

Promise.<any>

isConnected

isConnected(): Boolean

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

Returns

Boolean

Events

log.create

.on('log.create')

Parameters

Name Type Description
log
HomeyAPIV3Cloud.ManagerInsights.Log

log.delete

.on('log.delete')

Parameters

Name Type Description
log
HomeyAPIV3Cloud.ManagerInsights.Log

log.update

.on('log.update')

Parameters

Name Type Description
log
HomeyAPIV3Cloud.ManagerInsights.Log

logentryboolean.create

.on('logentryboolean.create')

Parameters

Name Type Description
logentryboolean
HomeyAPIV3Cloud.ManagerInsights.LogEntryBoolean

logentryboolean.delete

.on('logentryboolean.delete')

Parameters

Name Type Description
logentryboolean
HomeyAPIV3Cloud.ManagerInsights.LogEntryBoolean

logentryboolean.update

.on('logentryboolean.update')

Parameters

Name Type Description
logentryboolean
HomeyAPIV3Cloud.ManagerInsights.LogEntryBoolean