Entity-filter seperate state-filter for each entity

I want an “Alarm” card which displays out of band entities. Each entity would have its own state-filter. For example, The Fridge and Freezer temperatures each have their own threashold. How would I code this:

type: entity-filter
card:
  title: 'Alarm:'
entities:
  - entity: sensor.fridge_temperature_zigbee_aqara
state_filter:
  - operator: '>='
    value: 55
entities:
  - entity: sensor.freezer_temperature_zigbee_aqara
state_filter:
  - operator: '>='
    value: 20
show_empty: false

…which gives a redundant entities tag error.

I would like all the out of band entities to appear on the single “Alarm” card.

Thanks!

From the markdown you posted it looks like it’s not indented correctly.

From an example in the docs:

type: entity-filter
state_filter:
  - "on"
  - operator: ">"
    value: 90
entities:
  - sensor.water_leak
  - sensor.outside_temp
  - entity: sensor.humidity_and_temp
    state_filter:
      - operator: ">"
        value: 50
        attribute: humidity

So in your case, I would think the following should work:

cards:
  - type: entity-filter
    title: 'Alarm:'
    show_empty: false
    entities:
      - entity: sensor.fridge_temperature_zigbee_aqara
        state_filter:
          - operator: '>='
            value: 55
      - entity: sensor.freezer_temperature_zigbee_aqara
        state_filter:
          - operator: '>='
            value: 20

Chris

1 Like

That worked perfectly! Thank you so much…

No problem :slightly_smiling_face: