Access this instance at HomeyAPIV2.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
GEOLOCATION_READONLY
HTTP
GET /api/manager/geolocation/option/location
Returns
Promise.<any>
getOptionMode
(async) getOptionMode(): Promise.<any>Scopes
GEOLOCATION_READONLY
HTTP
GET /api/manager/geolocation/option/mode
Returns
Promise.<any>
isConnected
isConnected(): BooleanIf this manager's namespace is connected to Socket.io.
Returns
Boolean
setOptionLocation
(async) setOptionLocation(opts): Promise.<any>Scopes
GEOLOCATION
HTTP
PUT /api/manager/geolocation/option/location
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
value
|
object | |
|
Returns
Promise.<any>
setOptionMode
(async) setOptionMode(opts): Promise.<any>Scopes
GEOLOCATION
HTTP
PUT /api/manager/geolocation/option/mode
Parameters
Name | Type | Description |
---|---|---|
opts
|
object | |
value
|
string | |
|
Returns
Promise.<any>
unsetOptionLocation
(async) unsetOptionLocation(): Promise.<any>Scopes
GEOLOCATION
HTTP
DELETE /api/manager/geolocation/option/location
Returns
Promise.<any>
unsetOptionMode
(async) unsetOptionMode(): Promise.<any>Scopes
GEOLOCATION
HTTP
DELETE /api/manager/geolocation/option/mode
Returns
Promise.<any>