Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WithoutAttributesDefinition

An in-progress HubitatDeviceTriggerDefinition builder class.

Hierarchy

Index

Properties

Methods

Properties

Protected triggerDefinition

Methods

where

  • Allows only events where updated attribute name is within specified list.

    example

    A single attribute name:

    readonly triggers = [
      HubitatDeviceTrigger.for(7)
        .where('level').wasNot(50),
    ];
    example

    Where 3 attribute names are accepted:

    readonly triggers = [
      HubitatDeviceTrigger.for(354)
        .where('temperature', 'pressure', 'humidity').changes(),
    ];

    Parameters

    • attributeName: string

      A name of the attribute to accepts events from. You can specify more allowed attribute names using the otherAttributesNames.

    • Rest ...otherAttributesNames: string[]

      Other attribute names in case you want to allow device events related to more than one attribute. Optional.

    Returns AwaitChangeFilterDefinition

Generated using TypeDoc