ManagerInsights

Access this instance at HomeyAPIV2.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>

deleteLogs

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

Scopes

homey.insights

HTTP

DELETE /api/manager/insights/log/

Returns

Promise.<any>

disconnect

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

Disconnect from the realtime namespace.

Returns

Promise.<void>

getLog

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

Scopes

homey.insights.readonly

HTTP

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

Parameters

Name Type Description
opts
object
id
string
uri
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.<HomeyAPIV2.ManagerInsights.Log>

Scopes

homey.insights.readonly

HTTP

GET /api/manager/insights/log/

Returns

getStorageInfo

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

Scopes

homey.insights.readonly

HTTP

GET /api/manager/insights/storage

Returns

Promise.<any>

isConnected

isConnected(): Boolean

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

Returns

Boolean

updateLog

(async) updateLog(opts): Promise.<HomeyAPIV2.ManagerInsights.Log>

Scopes

homey.insights

HTTP

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

Parameters

Name Type Description
opts
object
id
string
uri
string
log
*
}

Returns

Events

log.create

.on('log.create')

Parameters

Name Type Description
log
HomeyAPIV2.ManagerInsights.Log

log.delete

.on('log.delete')

Parameters

Name Type Description
log
HomeyAPIV2.ManagerInsights.Log

log.update

.on('log.update')

Parameters

Name Type Description
log
HomeyAPIV2.ManagerInsights.Log