ManagerFlowToken

Access this instance at HomeyAPIV3Local.flowtoken.

Extends

  • HomeyAPIV3.ManagerFlowToken

Classes

Instance Methods

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

In path

}

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

In path

}

Returns

Promise.<any>

getFlowTokens

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

Scopes

homey.flow.readonly

HTTP

GET /api/manager/flowtoken/flowtoken

Returns

Promise.<Object.<string, HomeyAPIV3Local.ManagerFlowToken.FlowToken>>

getState

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

Scopes

homey.system.readonly

HTTP

GET /api/manager/flowtoken/state

Returns

Promise.<any>

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
info
object
newValues
object

An object with only the new values of the flowtoken

oldValues
object

An object with only the old values of the flowtoken

changedKeys
Array.<string>

An array of keys of the properties that have changed

}