ManagerGeolocation
homey.manager.geolocation
Manages the location information of the Homey.
You can access this manager through the Homey instance as self.homey.geolocation.
Ancestors
- Manager
- SimpleClass
- homey.util.event_emitter.EventEmitter
- typing.Generic
- abc.ABC
Methods
get_latitude
def get_latitude(self) ‑> float | NoneGet the Homey's physical location's latitude.
Requires the homey:manager:geolocation permission.
For more information about permissions read the Permissions tutorial.
get_longitude
def get_longitude(self) ‑> float | NoneGet the Homey's physical location's longitude.
Requires the homey:manager:geolocation permission.
For more information about permissions read the Permissions tutorial.
get_accuracy
def get_accuracy(self) ‑> float | NoneGet the Homey's physical location's accuracy in meters.
Requires the homey:manager:geolocation permission.
For more information about permissions read the Permissions tutorial.
get_mode
def get_mode(self) ‑> Literal['auto', 'manual'] | NoneGet the Homey's location mode.