ManagerLogic

Extends

Classes

Methods

connect

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

Connect to the realtime namespace.

Returns

Promise.<void>

createVariable

(async) createVariable(opts): Promise.<HomeyAPIV3Cloud.ManagerLogic.Variable>

Scopes

homey.logic

HTTP

post /api/manager/logic/variable

Parameters

Name Type Description
opts
object
variable
*
}

Returns

deleteVariable

(async) deleteVariable(opts)

Scopes

homey.logic

HTTP

delete /api/manager/logic/variable/:id

Parameters

Name Type Description
opts
object
id
string
}

disconnect

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

Disconnect from the realtime namespace.

Returns

Promise.<void>

getState

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

Scopes

homey.system.readonly

HTTP

get /api/manager/logic/state

Returns

Promise.<any>

getVariables

(async) getVariables(): Promise.<HomeyAPIV3Cloud.ManagerLogic.Variable>

Scopes

homey.logic.readonly

HTTP

get /api/manager/logic/variable

Returns

isConnected

isConnected(): Boolean

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

Returns

Boolean

updateVariable

(async) updateVariable(opts): Promise.<HomeyAPIV3Cloud.ManagerLogic.Variable>

Scopes

homey.logic

HTTP

put /api/manager/logic/variable/:id

Parameters

Name Type Description
opts
object
id
string
variable
*
}

Returns

Events

variable.create

.on('variable.create')

Parameters

Name Type Description
variable
HomeyAPIV3Cloud.ManagerLogic.Variable

variable.delete

.on('variable.delete')

Parameters

Name Type Description
variable
HomeyAPIV3Cloud.ManagerLogic.Variable

variable.update

.on('variable.update')

Parameters

Name Type Description
variable
HomeyAPIV3Cloud.ManagerLogic.Variable