HomeyAPI~ManagerBackup

Methods

async scheduleBackup(optsopt) → {Promise.<void>}

Required OAuth scopes:
- homey.system

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Returns:
Promise.<void> - Successful response

async getState(optsopt) → {Promise.<object>}

Gets this manager's state

Required OAuth scopes:
- homey.system.readonly

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Returns:
Promise.<object> - The state of this manager

async setOptionAutomaticBackupsEnabled(optsopt) → {Promise.<void>}

Required OAuth scopes:
- homey.system

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Description
value boolean
Returns:
Promise.<void> - Successful response

async getOptionAutomaticBackupsEnabled(optsopt) → {Promise.<void>}

Required OAuth scopes:
- homey.system

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Returns:
Promise.<void> - Successful response

async getOptionLastSuccessfulBackup(optsopt) → {Promise.<void>}

Required OAuth scopes:
- homey.system

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Returns:
Promise.<void> - Successful response

destroy()

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

Events

state

Emits when the state of the manager changes
Parameters:
Name Type Description
state object The new state

Classes

Error