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

Filter for headline text #210

Open
jzielke84 opened this issue Aug 15, 2023 · 2 comments
Open

Filter for headline text #210

jzielke84 opened this issue Aug 15, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@jzielke84
Copy link

jzielke84 commented Aug 15, 2023

Some warning provided by Nina (like a local flooding warning) are shown as "Unkown event", making it impossible to filter. This might be related to lack of data by the Nina API. Hence I request an additional functionality to hide the card, when a certain Headline (e.g. "Hochwasserinformation") shows up.

@jzielke84 jzielke84 added the enhancement New feature or request label Aug 15, 2023
@MrBartusek
Copy link
Owner

It will be quite hard to implement, open to ideas

This might be related to lack of data by the Nina API

It is

@jzielke84
Copy link
Author

jzielke84 commented Nov 15, 2023

It's a bit of a dirty hack:

  type: entity-filter
  state_filter:
    - operator: "!="
      value: "Hochwasserinformation"
      attribute: headline
  entities:
    - binary_sensor.warning_koln_stadt_1

  card:
    type: custom:meteoalarm-card
    entity: update.home_assistant_supervisor_update
    integration: nina
    entities:
      - entity: binary_sensor.warning_koln_stadt_1
    disable_swiper: false
    hide_caption: false
    hide_when_no_warning: true
    override_headline: false
    scaling_mode: scale
    ignored_events:
      - Flooding
      - Rain
      - Avalanches

Repeat the card for each binary_sensor. Seems to work in Chrome but not in Android Webview. So this is still an feature request.

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

No branches or pull requests

2 participants