HomeyAPI~ManagerGeolocation

Methods

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

Required OAuth scopes:
- homey.geolocation

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Description
value string ("auto" | "manual")
Returns:
Promise.<void> - Successful response

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

Required OAuth scopes:
- homey.geolocation.readonly

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

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

Required OAuth scopes:
- homey.geolocation

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

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

Required OAuth scopes:
- homey.geolocation.readonly

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

location

When the location has changed
Parameters:
Name Type Description
location object

Classes

Error