ManagerInsights

Access this instance at HomeyAPIV3Local.insights.

Extends

Classes

Methods

connect

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

Connect to the realtime namespace.

Returns

Promise.<void>

deleteLog

(async) deleteLog(opts)

Scopes

homey.insights

HTTP

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

Parameters

Name Type Description
opts
object
id
string
uri
string
}

deleteLogEntries

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

Scopes

homey.insights

HTTP

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

Parameters

Name Type Description
opts
object
id
string
uri
string
}

Returns

Promise.<any>

disconnect

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

Disconnect from the realtime namespace.

Returns

Promise.<void>

getLog

(async) getLog(opts): Promise.<HomeyAPIV3Local.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.<HomeyAPIV3Local.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
HomeyAPIV3Local.ManagerInsights.Log

log.delete

.on('log.delete')

Parameters

Name Type Description
log
HomeyAPIV3Local.ManagerInsights.Log

log.update

.on('log.update')

Parameters

Name Type Description
log
HomeyAPIV3Local.ManagerInsights.Log

logentryboolean.create

.on('logentryboolean.create')

Parameters

Name Type Description
logentryboolean
HomeyAPIV3Local.ManagerInsights.LogEntryBoolean

logentryboolean.delete

.on('logentryboolean.delete')

Parameters

Name Type Description
logentryboolean
HomeyAPIV3Local.ManagerInsights.LogEntryBoolean

logentryboolean.update

.on('logentryboolean.update')

Parameters

Name Type Description
logentryboolean
HomeyAPIV3Local.ManagerInsights.LogEntryBoolean