Hey,
I’ve tried some days now to get the Streamline-Card templates working
When entering the template into dashboard raw all works, when entering in a YAML the template is not found. I have no more idea what I’m missing, any hint?
The template "debug" doesn't exist in streamline_templates
type: custom:streamline-card
template: debug
HomeAssisten Supervised installed on Homeassistent OS
Streamline card is avalible in dashboard resources
Already tried different path like
streamline_templates: !include_dir_named /streamline_templates/
streamline_templates: !include_dir_named ./streamline_templates/
streamline_templates: !include_dir_named …/streamline_templates/
I tried lots of things already, but non is working, yet.
The documentation is a bit unclear for me. It’s not clear where to put which directory and which file exactly.
The error I’m getting while checking the configuration is:
Integration error: streamline_templates - Integration ‘streamline_templates’ not found.
According to the documentation it should be in the main dashboard configuration file (which one is that exactly ?), but then I only get errors about an unknown tag,
After this I decided to follow one of the examples and not use yaml, but the UI.
Put the example code at the top of my dashboard file and it works, just like the decluttering card.
Don’t forget the two ’ '. (Although for me it works also if I leave the whole line out).
Under
www\community\streamline-card\
I created a file
streamline_templates.yaml
Then put the text for the template left-aligned in the file.
This works for me. I can use the template in my dashboard, but only in yaml mode, not in the UI.
I used this as an example:
light_template:
default:
- icon: mdi:lightbulb
name: vul hier de naam lightbulb in
type: button
entity: null
card:
type: custom:bubble-card
card_type: button
button_type: "[[type]]"
entity: "[[entity]]"
name: "[[name]]"
icon: "[[icon]]"
tap_action:
action: toggle
hold_action:
action: more-info