HomeyAPI~ManagerPresence

Methods

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

Required OAuth scopes:
- homey.presence.readonly

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

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

Required OAuth scopes:
- homey.presence

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

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

Required OAuth scopes:
- homey.presence.self

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

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

Required OAuth scopes:
- homey.presence.readonly

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

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

Required OAuth scopes:
- homey.presence

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

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

Required OAuth scopes:
- homey.presence.self

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

Classes

Error