ManagerDashboards

Access this instance at HomeyAPIV3Local.dashboards.

Extends

  • HomeyAPIV3.ManagerDashboards

Classes

Instance Methods

createDashboard

(async) createDashboard(opts): Promise.<HomeyAPIV3Local.ManagerDashboards.Dashboard>

Scopes

homey.dashboard

HTTP

POST /api/manager/dashboards/dashboard

Parameters

Name Type Description
opts
object
dashboard
object

In body

name
string
columns
array
}
}

Returns

deleteDashboard

(async) deleteDashboard(opts)

Scopes

homey.dashboard

HTTP

DELETE /api/manager/dashboards/dashboard/:id

Parameters

Name Type Description
opts
object
id
string

In path

}

getAppWidget

(async) getAppWidget(opts): Promise.<HomeyAPIV3Local.ManagerDashboards.AppWidget>

Scopes

homey.dashboard.readonly

HTTP

GET /api/manager/dashboards/appwidget/:id

Parameters

Name Type Description
opts
object
id
string

In path

}

Returns

getAppWidgetAutocomplete

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

Scopes

homey.dashboard.readonly

HTTP

GET /api/manager/dashboards/appwidget/:id/autocomplete

Parameters

Name Type Description
opts
object
id
string

In path

settingId
string

In query

query
string

In query

settings
object <optional>

In query

}

Returns

Promise.<any>

getAppWidgets

(async) getAppWidgets(): Promise.<Object.<string, HomeyAPIV3Local.ManagerDashboards.AppWidget>>

Scopes

homey.dashboard.readonly

HTTP

GET /api/manager/dashboards/appwidget

Returns

Promise.<Object.<string, HomeyAPIV3Local.ManagerDashboards.AppWidget>>

getDashboard

(async) getDashboard(opts): Promise.<HomeyAPIV3Local.ManagerDashboards.Dashboard>

Scopes

homey.dashboard.readonly

HTTP

GET /api/manager/dashboards/dashboard/:id

Parameters

Name Type Description
opts
object
id
string

In path

}

Returns

getDashboards

(async) getDashboards(): Promise.<Object.<string, HomeyAPIV3Local.ManagerDashboards.Dashboard>>

Scopes

homey.dashboard.readonly

HTTP

GET /api/manager/dashboards/dashboard

Returns

Promise.<Object.<string, HomeyAPIV3Local.ManagerDashboards.Dashboard>>

getState

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

Scopes

homey.system.readonly

HTTP

GET /api/manager/dashboards/state

Returns

Promise.<any>

getWidgetStore

(async) getWidgetStore(opts): Promise.<HomeyAPIV3Local.ManagerDashboards.WidgetStore>

Scopes

homey.dashboard.readonly

HTTP

GET /api/manager/dashboards/widgetstore/:id

Parameters

Name Type Description
opts
object
id
string

In path

}

Returns

getWidgetStoreState

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

Scopes

homey.dashboard.readonly

HTTP

GET /api/manager/dashboards/widgetstore/:id/state

Parameters

Name Type Description
opts
object
id
string

In path

}

Returns

Promise.<any>

getWidgetStores

(async) getWidgetStores(): Promise.<Object.<string, HomeyAPIV3Local.ManagerDashboards.WidgetStore>>

Scopes

homey.dashboard.readonly

HTTP

GET /api/manager/dashboards/widgetstore

Returns

setWidgetStoreState

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

Scopes

homey.dashboard.readonly

HTTP

POST /api/manager/dashboards/widgetstore/:id/state

Parameters

Name Type Description
opts
object
id
string

In path

state
object

In body

replace
boolean <optional>

In body

}

Returns

Promise.<any>

updateDashboard

(async) updateDashboard(opts): Promise.<HomeyAPIV3Local.ManagerDashboards.Dashboard>

Scopes

homey.dashboard

HTTP

PUT /api/manager/dashboards/dashboard/:id

Parameters

Name Type Description
opts
object
id
string

In path

dashboard
object

In body

name
string <optional>
columns
array <optional>
}
}

Returns

Events

appwidget.create

.on('appwidget.create')

Parameters

Name Type Description
appwidget
HomeyAPIV3Local.ManagerDashboards.AppWidget

appwidget.delete

.on('appwidget.delete')

Parameters

Name Type Description
appwidget
HomeyAPIV3Local.ManagerDashboards.AppWidget

appwidget.update

.on('appwidget.update')

Parameters

Name Type Description
appwidget
HomeyAPIV3Local.ManagerDashboards.AppWidget

dashboard.create

.on('dashboard.create')

Parameters

Name Type Description
dashboard
HomeyAPIV3Local.ManagerDashboards.Dashboard

dashboard.delete

.on('dashboard.delete')

Parameters

Name Type Description
dashboard
HomeyAPIV3Local.ManagerDashboards.Dashboard

dashboard.update

.on('dashboard.update')

Parameters

Name Type Description
dashboard
HomeyAPIV3Local.ManagerDashboards.Dashboard

widgetstore.create

.on('widgetstore.create')

Parameters

Name Type Description
widgetstore
HomeyAPIV3Local.ManagerDashboards.WidgetStore

widgetstore.delete

.on('widgetstore.delete')

Parameters

Name Type Description
widgetstore
HomeyAPIV3Local.ManagerDashboards.WidgetStore

widgetstore.update

.on('widgetstore.update')

Parameters

Name Type Description
widgetstore
HomeyAPIV3Local.ManagerDashboards.WidgetStore