ManagerGeolocation

Access this instance at HomeyAPIV3Cloud.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>

getOptionLocation

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

Scopes

homey.geolocation.readonly

HTTP

GET /api/manager/geolocation/option/location

Returns

Promise.<any>

getOptionMode

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

Scopes

homey.geolocation.readonly

HTTP

GET /api/manager/geolocation/option/mode

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

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>

setOptionMode

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

Scopes

homey.geolocation

HTTP

PUT /api/manager/geolocation/option/mode

Parameters

Name Type Description
opts
object
value
*
}

Returns

Promise.<any>

unsetOptionLocation

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

Scopes

homey.geolocation

HTTP

DELETE /api/manager/geolocation/option/location

Returns

Promise.<any>

unsetOptionMode

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

Scopes

homey.geolocation

HTTP

DELETE /api/manager/geolocation/option/mode

Returns

Promise.<any>