#help with matt8707 hass-config

1 messages · Page 1 of 1 (latest)

restive sierra
#

so i am making a dashboard using yaml for the first time and i am using templates and would like some idea on what to edit on this template to link it to my switches
https://pastebin.com/Cj0s61Ks

rough river
#

You shouldn't have to modify anything on that template to get it to work. Its usage will look something like this: ```yaml
type: custom:button-card
template: generic_custom_button
entity: light.living_room_lights
name: Living Room

#

If you're using a UI-based dashboard (where use can use the visual editor), you'll need to add the templates to your Raw configuration editor. (Edit the dashboard, click the three dots in the upper right, select Raw configuration editor.)

#

If you're using a YAML-based dashboard, you can add the templates to the YAML file or you can use !includes to point to indivudal files containing the templates (basically like how it is set up in the Github.)

#

Note that I've used the word templateS. That template you're wanting to use relies on three other templates: base, circle, and loader. So, you'll need them too. (Base uses settings, tilt, and extra_styles templates. The loader template looks like it needs the loader.svg to be in your /www/ folder.) I didn't look through everything to see if there are more dependencies; that's just what I easily noticed.

#

You can look at two of my dashboards to get a better understanding of templates.
Fire-10 at Line 134 shows the template within the dashboard's fire-main.yaml.

#

You can also see that Fire-10 uses a single file while Mini-pc has several files used for the dashboard. The Fire-10 is a copy&paste from a UI-based dashboard.