HomeyAPI~ManagerApps

Since:
  • 1.0.0

Methods

async getApps(optsopt) → {Object.<string, HomeyAPI.ManagerApps.App>}

Required OAuth scopes:
- homey.app.readonly

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Attributes Description
filter HomeyAPI.ManagerApps.App <optional>
A response filter (Using a filter will bypass all caches, use sparingely)
Returns:
Object.<string, HomeyAPI.ManagerApps.App> - Successful response

async getApp(optsopt) → {HomeyAPI.ManagerApps.App}

Required OAuth scopes:
- homey.app.readonly

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Description
id string
Returns:
HomeyAPI.ManagerApps.App - Successful response

async updateApp(optsopt)

Required OAuth scopes:
- homey.app

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Description
id string
app HomeyAPI.ManagerApps.App

async uninstallApp(optsopt)

Required OAuth scopes:
- homey.app

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Attributes Description
id string
purgeSettings boolean <optional>

async getAppStd(optsopt)

Required OAuth scopes:
- homey.app.readonly

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Attributes Description
id string
message string <optional>

async getAppSettings(optsopt) → {object}

Required OAuth scopes:
- homey.app.control

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Description
id string
Returns:
object - A key-value object with app settings

async getAppSetting(optsopt)

Required OAuth scopes:
- homey.app.control

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Description
id string
name string

async setAppSetting(optsopt)

Required OAuth scopes:
- homey.app.control

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Description
id string
name string
value object

async unsetAppSetting(optsopt)

Required OAuth scopes:
- homey.app.control

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Description
id string
name string

async restartApp(optsopt)

Required OAuth scopes:
- homey.app

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Description
id string

async garbageCollectApp(optsopt)

Required OAuth scopes:
- homey.app

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Description
id string

async enableApp(optsopt)

Required OAuth scopes:
- homey.app

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Description
id string

async disableApp(optsopt)

Required OAuth scopes:
- homey.app

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Description
id string

async getAppLocales(optsopt)

Required OAuth scopes:
- homey.app.readonly

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Description
id string

async installFromAppStore(optsopt)

Required OAuth scopes:
- homey.app

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Attributes Description
id string
channel string <optional>
("stable" | "beta" | "alpha")

destroy()

Unsubscribes to realtime events, clear all caches, and remove all event listeners for this manager and it's managed objects

Events

app.create

Fired when a managed App is created
Parameters:
Name Type Description
app HomeyAPI.ManagerApps.App The affected App

app.update

Fired when a managed App is changed
Parameters:
Name Type Description
app HomeyAPI.ManagerApps.App The affected App

app.delete

Fired when a managed App has been deleted
Parameters:
Name Type Description
app HomeyAPI.ManagerApps.App The affected App

Classes

Error

App