ManagerGeolocation

Access this instance at HomeyAPIV3Local.geolocation.

Extends

Methods

connect

(async) connect(): Promise.<void>

Connect to the realtime namespace.

Returns

Promise.<void>

disconnect

(async) disconnect(): Promise.<void>

Disconnect from the realtime namespace.

Returns

Promise.<void>

getOptionAddress

(async) getOptionAddress(): Promise.<any>

Scopes

homey.geolocation.readonly

HTTP

GET /api/manager/geolocation/option/address

Returns

Promise.<any>

getOptionLocation

(async) getOptionLocation(): Promise.<any>

Scopes

homey.geolocation.readonly

HTTP

GET /api/manager/geolocation/option/location

Returns

Promise.<any>

getState

(async) getState(): Promise.<any>

Scopes

homey.system.readonly

HTTP

GET /api/manager/geolocation/state

Returns

Promise.<any>

isConnected

isConnected(): Boolean

If this manager's namespace is connected to Socket.io.

Returns

Boolean

setOptionAddress

(async) setOptionAddress(opts): Promise.<any>

Scopes

homey.geolocation

HTTP

PUT /api/manager/geolocation/option/address

Parameters

Name Type Description
opts
object
value
*
}

Returns

Promise.<any>

setOptionLocation

(async) setOptionLocation(opts): Promise.<any>

Scopes

homey.geolocation

HTTP

PUT /api/manager/geolocation/option/location

Parameters

Name Type Description
opts
object
value
*
}

Returns

Promise.<any>

unsetOptionAddress

(async) unsetOptionAddress(): Promise.<any>

Scopes

homey.geolocation

HTTP

DELETE /api/manager/geolocation/option/address

Returns

Promise.<any>

unsetOptionLocation

(async) unsetOptionLocation(): Promise.<any>

Scopes

homey.geolocation

HTTP

DELETE /api/manager/geolocation/option/location

Returns

Promise.<any>