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 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