Access this instance at HomeyAPIV3Local.insights.
Extends
- HomeyAPIV3.ManagerInsights
Classes
Instance Methods
deleteLog
(async) deleteLog(opts)Scopes
homey.insights
HTTP
DELETE /api/manager/insights/log/:uri/:id
Parameters
| Name | Type | Description |
|---|---|---|
opts
|
object | |
id
|
string | In |
uri
|
string | In |
|
|
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 | In |
uri
|
string | In |
|
|
Returns
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 | In |
|
|
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 | In |
uri
|
string | In |
resolution
|
string
<optional> |
In |
|
|
Returns
getLogs
(async) getLogs(): Promise.<Object.<string, 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
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 | |
info
|
object | |
newValues
|
object | An object with only the new values of the log |
oldValues
|
object | An object with only the old values of the log |
changedKeys
|
Array.<string> | An array of keys of the properties that have changed |
|
|
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 | |
info
|
object | |
newValues
|
object | An object with only the new values of the logentryboolean |
oldValues
|
object | An object with only the old values of the logentryboolean |
changedKeys
|
Array.<string> | An array of keys of the properties that have changed |
|
|