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

[Feature]: Possible to blink the next Event #311

Open
2 tasks done
thphilipp opened this issue May 13, 2024 · 3 comments
Open
2 tasks done

[Feature]: Possible to blink the next Event #311

thphilipp opened this issue May 13, 2024 · 3 comments
Labels

Comments

@thphilipp
Copy link

Requirements

  • I have updated Mushroom to the latest available version
  • I did a search to see if there is a similar issue or if a pull request is open.

Is your feature request related to a problem?

No Problem just request.

Describe the solution you'd like

It would be very good if the appointment up for tomorrow would flash.So the card would flash.

Describe alternatives you've considered

No response

Additional context

No response

@sanvalerius
Copy link

That would be a nice addition, and while you implement this maybe an option to set the "time before flash" (ie 24h by default, but can choose more or less)

@akwak2015
Copy link

akwak2015 commented Jun 21, 2024

For tomorrow and today you can do that with the Card_mod.

card_mod:
  style: |
    ha-card.tomorrow { margin: 0% 0% 0;
      animation-name: mdui-yellow-blink-ani;
      animation-duration: 3s;
      animation-iteration-count: infinite;
      animation-timing-function: linear;
    }
    ha-card.today { margin: 0% 0% 0;
      animation-name: mdui-red-blink-ani;
      animation-duration: 3s;
      animation-iteration-count: infinite;
      animation-timing-function: linear;
    }
    @keyframes mdui-red-blink-ani  {
       0%,50% {filter: drop-shadow(0px 0px 4px #F44336) drop-shadow(0px 0px 4px #F44336) drop-shadow(0px 0px 4px #F44336); }
       51% {filter: none;}
    }
    @keyframes mdui-yellow-blink-ani  {
       0%,70% {filter: drop-shadow(0px 0px 4px #FFDB3B) drop-shadow(0px 0px 4px #FFDB3B) drop-shadow(0px 0px 4px #FFDB3B); }
       71% {filter: none;}
    } 

I'm looking for a possibility to blink green if it's 2 days ahead.
Maybe it depends on the used datasource?

@thphilipp
Copy link
Author

thphilipp commented Jun 28, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants