Flow

Flow as returned by HomeyAPIV2.ManagerFlow.

Extends

Instance Properties

actions

actions: array

Type

  • array

broken

broken: boolean

Type

  • boolean

conditions

conditions: array

Type

  • array

enabled

enabled: boolean

Type

  • boolean

folder

folder: string|null

Type

  • string | null

homey

homey: HomeyAPIV3

The Homey of the Item.

Type

id

id: string

Type

  • string

manager

manager: HomeyAPIV3.Manager

The Manager of the Item.

Type

name

name: string

Type

  • string

order

order: number

Type

  • number

trigger

trigger: object

Type

  • object

triggerable

triggerable: boolean

Type

  • boolean

uri

uri: string

The URI of the Item, e.g. homey:foo:bar.

Type

  • string

Instance Methods

connect

(async) connect()

Connect to this item's Socket.io namespace.

disconnect

(async) disconnect()

Discconnect from this item's Socket.io namespace.

isBroken

(async) isBroken()

Check whether this Flow misses one or more FlowCard or FlowToken.

Returns

Promise - A boolean whether this Flow is broken.

Events

delete

.on('delete')

update

.on('update')

Parameters

Name Type Description
flow
object