Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow filtering by extended entity data #683

Merged
merged 1 commit into from
Feb 11, 2024
Merged

Allow filtering by extended entity data #683

merged 1 commit into from
Feb 11, 2024

Conversation

maxwroc
Copy link
Owner

@maxwroc maxwroc commented Feb 11, 2024

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

@maxwroc maxwroc added the enhancement New feature or request label Feb 11, 2024
@maxwroc maxwroc merged commit fa3f34c into vNext Feb 11, 2024
1 check passed
@maxwroc maxwroc deleted the DeepFilter branch February 11, 2024 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant