ManagerFlow

You can access this manager through the Homey instance as this.homey.flow

Table of Contents

Methods

(async) createToken(id, opts) → {FlowToken}

The FlowToken class can be used to create a Tag in the Flow Editor.

Library:
Parameters:
Name Type Description
id string

ID of the token, should be alphanumeric.

opts object
Name Type Description
type string

Type of the token, can be either string, number, boolean or image.

title string

Title of the token

Returns:
Type:
FlowToken

getActionCard(id) → {FlowCardAction}

Parameters:
Name Type Description
id string

The ID of the card as defined in the app's app.json.

Returns:
Type:
FlowCardAction

getConditionCard(id) → {FlowCardCondition}

Parameters:
Name Type Description
id string

The ID of the card as defined in the app's app.json.

Returns:
Type:
FlowCardCondition

getDeviceTriggerCard(id) → {FlowCardTriggerDevice}

Parameters:
Name Type Description
id string

The ID of the card as defined in the app's app.json.

Returns:
Type:
FlowCardTriggerDevice

getTriggerCard(id) → {FlowCardTrigger}

Parameters:
Name Type Description
id string

The ID of the card as defined in the app's app.json.

Returns:
Type:
FlowCardTrigger

(async) unregisterToken(tokenInstance) → {Promise.<any>}

Unregister a FlowToken.

Parameters:
Name Type Description
tokenInstance FlowToken
Returns:
Type:
Promise.<any>