maxwroc / battery-state-card

Battery state card for Home Assistant
MIT License
875 stars 38 forks source link

Allow filtering by extended entity data #683

Closed maxwroc closed 8 months ago

maxwroc commented 8 months ago

With this change we can use all of the entity data available to filter out entities.

E.g. entity has a device area id available as shown below

{
  ...,
  device: {
    area_id: "outside"
  }
}

We can then use the below filter to remove such entity:

filter:
  exclude: 
    - name: "device.area_id"
      value: "outside"

Note: Extended entity data cannot be used in the include filters. This means that "display", "device", "area" properties are not yet available when the include filter is processed