Options
All
  • Public
  • Public/Protected
  • All
Menu

Module rx-operators

A set of RXJS pipe-able operator to operator on streams of events from Home Assistant.

Index

Functions

attribute

  • attribute<AT>(key: string): OperatorFunction<HassEntityBase, AT>
  • Plucks a attribute from a home assistant entity.

    Type parameters

    • AT

      Type of the attribute.

    Parameters

    • key: string

      Property key of the attribute.

    Returns OperatorFunction<HassEntityBase, AT>

    Value of the attribute

newState

state

  • state<ST>(): OperatorFunction<HassEntityBase, ST>
  • Plucks the state value from an entity.

    Type parameters

    • ST

      The type of the state value (always represented as a string in Home Assistant)

    Returns OperatorFunction<HassEntityBase, ST>

    The state value

Generated using TypeDoc