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

Configuration with templates possible? #215

Open
Ben-Bitdiddle-DE opened this issue Dec 11, 2024 · 1 comment
Open

Configuration with templates possible? #215

Ben-Bitdiddle-DE opened this issue Dec 11, 2024 · 1 comment

Comments

@Ben-Bitdiddle-DE
Copy link

Hello,

is it possible to make use of template in the configuration. I thought of a possibility the switch the day ahead value (on demand), so i created a number helper for that and wanted it to be used in the configuration:

days: '{{ states("input_select.kalender_anzahltage") }}'

But it seems that this is currently to possible?

KR

@Kanecaine
Copy link

I would also very much welcome it if it were possible to use templates in the future. This would further expand the possibilities of this great card.

In the meantime, you can make do with a config-template-card, but with a huge disadvantage: the loss of the ability to configure this card via UI.

type: custom:config-template-card
entities: 
  - input_select.kalender_anzahltage
variables:
  ANZAHLTAGE: states['input_select.kalender_anzahltage']?.state
card:
  type: custom:week-planner-card
  calendars:
    - entity: calendar.abfallkalender
      name: Müllabholung
      color: orange
  days: "${ ANZAHLTAGE }"
...

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

No branches or pull requests

2 participants