You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does the split !include trick work for dashboards? I saw your example of it for automations, but can't seem to get it working for a yaml dashboard view to load cards from 2 places.
#from your autmoation integration yaml:automation: !include ../automations.yamlautomation split: !include_dir_list ../automations#what I want to do in my dashboard view, but it doesn't work:cards: !include cards.yaml #file contains a list of includes to common cards I share between viewscards split: !include_dir_list ../cards/view1 #folder of cards for this dashboard#alternative that I like better because 1 less file, but it doesn't work either:cards:
- !include../../common/cards/test.yaml
- !include../../common/cards/test2.yamlcards split: !include_dir_list ../cards/view1#also tried this, both with and without the hyphen on the 3rd item:cards:
- !include../../common/cards/test.yaml
- !include../../common/cards/test2.yaml
- !include_dir_list../cards/view1#This is viable, if I do a lot of individual stub files that each just !include the common cards.#That's a lot of tiny files that feel unnecessarycards: !include_dir_list ../cards/view1#This is also viable, if I individually !include every card I want.#It's not dynamic like the !include_dir_list, but it does give me better control of the card order.cards:
- !include../../common/cards/test.yaml
- !include../../common/cards/test2.yaml
- !include../cards/view1/card1
- !include../cards/view1/card2
Related question: how do you control the card order when you use !include_dir_list? Are they alphabetical by file name?
The text was updated successfully, but these errors were encountered:
Does the split !include trick work for dashboards? I saw your example of it for automations, but can't seem to get it working for a yaml dashboard view to load cards from 2 places.
Related question: how do you control the card order when you use !include_dir_list? Are they alphabetical by file name?
The text was updated successfully, but these errors were encountered: