ManagerI18n

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>

getOptionLanguage

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

Scopes

homey.system.readonly

HTTP

GET /api/manager/i18n/option/language

Returns

Promise.<any>

getOptionUnits

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

Scopes

homey.system.readonly

HTTP

GET /api/manager/i18n/option/units

Returns

Promise.<any>

getState

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

Scopes

homey.system.readonly

HTTP

get /api/manager/i18n/state

Returns

Promise.<any>

isConnected

isConnected(): Boolean

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

Returns

Boolean

setOptionLanguage

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

Scopes

homey.system

HTTP

PUT /api/manager/i18n/option/language

Parameters

Name Type Description
opts
object
value
*
}

Returns

Promise.<any>

setOptionUnits

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

Scopes

homey.system

HTTP

PUT /api/manager/i18n/option/units

Parameters

Name Type Description
opts
object
value
*
}

Returns

Promise.<any>

unsetOptionLanguage

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

Scopes

homey.system

HTTP

DELETE /api/manager/i18n/option/language

Returns

Promise.<any>

unsetOptionUnits

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

Scopes

homey.system

HTTP

DELETE /api/manager/i18n/option/units

Returns

Promise.<any>