I am experiencing this same behavior. Config of streamline cards is available in the UI only if I add the templates in the raw config file.
I have a question:
I try to reuse a style for card mod as variable
streamline_templates:
my_template:
default:
- my_style: |
ha-card {
box-shadow: none;
border: none;
transform: scale(0.9);
}
card:
type: custom:mod-card
card:
type: custom:vertical-stack-in-card
cards:
- type: custom:mushroom-template-card
primary: "[[room_name]]"
card_mod:
style: "[[my_style]]"
Error is:
VM15696:1 Uncaught (in promise) SyntaxError: Bad control character in string literal in JSON at position 556 (line 1 column 557)
at JSON.parse (<anonymous>)
at evaluateVariables (streamline-card.js:415:15)
at evaluateConfig (streamline-card.js:418:16)
at StreamlineCard.parseConfig (streamline-card.js:6606:22)
at StreamlineCard.setConfig (streamline-card.js:6620:37)
at streamline-card.js:6576:18
How do I have to change the variable to make it work or is there a better way I should use?
Is this integration still maintained? The last response from @brunosabot was in april?
anyone facing issues with the new version 0.2.0?
I get from time to time an configuration error. it works as soon as I refresh but then the next template does not work
No sure I am following / understanding the setup / installation noted on the github page.
I have installed under HACS and setup the templates as described in Method 1: YAML Configuration. I have:
- added a folder /config/streamline_templates
- added light_template.yaml to that folder
I am confused about step 3: “Include Templates in Dashboard: In your dashboard configuration file, add:”
streamline_templates: !include_dir_named ../streamline_templates/
Where does this line go? Which file should it be added to? I have tried to added to the dashboard using the raw configuration editor but I get an error:
I note a previous comment suggesting that line is only for editing in yaml mode but I still don’t know where that line goes if I want to edit in yaml mode.
When I add a card in UI mode, I don’t see reference to the template I created in the streamline_templates, only
Not sure if I have read this correctly. Thanks for any advice.
You need to add it in the dashboard raw yaml, like you tried, but use quotes for the path.
streamline_templates: '!include_dir_named ../streamline_templates/'
There are currently multiple errors in the documentation, but there is a way to get it to work.
Take a look at: streamline_templates: !include_dir_named ../streamline_templates/ error in yaml · Issue #102 · brunosabot/streamline-card · GitHub
You can’t seperate the templates into own files, so just put all into streamline_templates.yaml


