HomeyAPI~ManagerZwave

Methods

async runCommand(optsopt)

Required OAuth scopes:
- homey.system

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

async setLogEnabled(optsopt)

Required OAuth scopes:
- homey.system

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Description
enabled boolean
Since:
  • 1.5.6

async getLog(optsopt)

Required OAuth scopes:
- homey.system

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

async updateRegion(optsopt)

Required OAuth scopes:
- homey.system

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Description
region string ("ANZ" | "CN" | "EU" | "HK" | "IL" | "IN" | "JP" | "KR" | "RU" | "US")

async getState(optsopt) → {object}

Gets this manager's state

Required OAuth scopes:
- homey.system.readonly

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

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