custom-cards / decluttering-card

๐Ÿงน Declutter your lovelace configuration with the help of this card
MIT License
379 stars 29 forks source link

!include is not supported? Can it? #6

Closed MarsWarrior closed 4 years ago

MarsWarrior commented 5 years ago

I tried to use the !include statement to have some sort of re-use within templates, but I get errors (mapping errors, expecting ':', etc.), so include doesn't seem to be supported or I am doing something wrong ๐Ÿ˜„.

What I would want for instance:

So for template 'specific1':

default:
!include 'template-defaults.yaml' (defines defaults for valuex, valuey and valuez)
# Now override some values
  - valuex: 11
  - valuey: 22

And template 'specific2':

default:
!include 'template-defaults.yaml' (defines defaults for valuex, valuey and valuez)
# Now override some values
  - valuex: 11
  - valuez: 33
RomRider commented 4 years ago

You can't !include multiple values into an array. This is not related to decluttering card unfortunately