custom-card-helpers
    Preparing search index...

    Function evaluateFilter

    • Evaluate a filter ({ value, operator?, attribute? }) against an entity.

      Numeric states and values are compared as numbers; anything else is compared as a string. Returns false when the entity or attribute does not exist.

      Parameters

      • stateObj: HassEntity | undefined
      • filter: any

      Returns boolean