ManagerFlowToken

Access this instance at HomeyAPIV3Local.flowtoken.

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.<HomeyAPIV3Local.ManagerFlowToken.FlowToken>

Scopes

homey.flow.readonly

HTTP

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

Parameters

Name Type Description
opts
object
id
string
}

Returns

getFlowTokens

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

Scopes

homey.flow.readonly

HTTP

GET /api/manager/flowtoken/flowtoken

Returns

getFlowTokenValue

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

Scopes

homey.flow.readonly

HTTP

GET /api/manager/flowtoken/flowtoken/:id/value

Parameters

Name Type Description
opts
object
id
string
}

Returns

Promise.<any>

getState

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

Scopes

homey.system.readonly

HTTP

GET /api/manager/flowtoken/state

Returns

Promise.<any>

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
HomeyAPIV3Local.ManagerFlowToken.FlowToken

flowtoken.delete

.on('flowtoken.delete')

Parameters

Name Type Description
flowtoken
HomeyAPIV3Local.ManagerFlowToken.FlowToken

flowtoken.update

.on('flowtoken.update')

Parameters

Name Type Description
flowtoken
HomeyAPIV3Local.ManagerFlowToken.FlowToken