ManagerFlowToken

Extends

Classes

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>

getFlowToken

(async) getFlowToken(opts): Promise.<HomeyAPIV2.ManagerFlowToken.FlowToken>

Scopes

homey.flow.readonly

HTTP

GET /api/manager/flowtoken/flowtoken/:uri/:id

Parameters

Name Type Description
opts
object
id
string
uri
string
}

Returns

getFlowTokens

(async) getFlowTokens(): Promise.<HomeyAPIV2.ManagerFlowToken.FlowToken>

Scopes

homey.flow.readonly

HTTP

GET /api/manager/flowtoken/flowtoken

Returns

isConnected

isConnected(): Boolean

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

Returns

Boolean

Events

flowtoken.create

.on('flowtoken.create')

Parameters

Name Type Description
flowtoken
HomeyAPIV2.ManagerFlowToken.FlowToken

flowtoken.delete

.on('flowtoken.delete')

Parameters

Name Type Description
flowtoken
HomeyAPIV2.ManagerFlowToken.FlowToken

flowtoken.update

.on('flowtoken.update')

Parameters

Name Type Description
flowtoken
HomeyAPIV2.ManagerFlowToken.FlowToken