New on the forum and not very good with HA other than creating dashboards and configur in visual editor. I have a problem in my configuration.yaml file, first I had an error that did that I could not change themes. I managed to correct that, but now I have an error that I cannot use the bubble card modules. I have tried to add it in configuration file but get the following error:
Please don’t post pictures of text. Post the text correctly formatted for the forum with the pre-formatted text button </> (sometimes in the cog menu).
Thank you very much! Can you also explain why i get this error:
Invalid config for 'template' at configuration.yaml, line 14: expected a dictionary '', got 'homeassistant'
Invalid config for 'template' at template.yaml, line 2: 'template' is an invalid option for 'template', check: template
Same picture of configuration.yaml as before only that line 15 to 25 is removed and added to template.yaml
Post both files as text, properly formatted using the </> button. The errors you’re getting don’t match the description of your files. Post configuration.yaml from start to at least the systemmonitor line; and all of template.yaml.
I think the template: line is in there twice, once in configuration.yaml and again in the included file.
Try commenting it out in the included file and see if that helps. I comment it out instead of deleting it to remind myself how it’s going to look to HA when the includes are all pulled in.
Logger: homeassistant.config
Kilde: config.py:354
Første forekomst: 12:41:57 (5 occurrences)
Sist logget: 13:54:18
Invalid config for 'template' at template.yaml, line 2: 'template' is an invalid option for 'template', check: template
Invalid config for 'template' at template.yaml, line 6: required key 'trigger' not provided
# template_binary_sensors.yaml
# Included in configuration.yaml
#
#template:
# - binary_sensor: !include template_binary_sensors.yaml
#
- name: "East Pump Cycle On"
unique_id: 'east_pump_on'
etc.
And likewise for template_sensors.yaml.
As always with YAML, note the indentation. And make sure it’s spaces, not tabs. Like I said, voodoo. It seems there are usually a few “right” ways, but lots of “wrong” ways, to do it.
Tip - if you’re branching in the config files, it’s always 2 spaces of indentation. It doesn’t matter if the branch is prefixed with a hyphen (-) either. Always 2 spaces.
If you are using hyphens, it’s only 1 space after the hyphen, then the code.
When you use !include files, build the code as if the parent branch is there. In other words, you are always going to start your code in an !include file with 2 spaces, as if it is nested directly under the parent branch.
Thank you everyone for replies and help. I’m still struggling with error codes. I have tried to paste the Bubble Card Modules sensor in template.yaml and the modules work but still get the error codes. Started with - triggers: as mentioned by Troon (I don’t know if the entry should be adjusted after that or if it just to paste the rest after that?)
Logger: homeassistant.config
Kilde: config.py:354
Første forekomst: 12:41:57 (13 occurrences)
Sist logget: 20:13:12
Invalid config for 'template' at template.yaml, line 2: 'template' is an invalid option for 'template', check: template
Invalid config for 'template' at template.yaml, line 6: required key 'trigger' not provided
Invalid config for 'template' at template.yaml, line 3: expected str for dictionary value 'triggers->0->platform', got None
Invalid config for 'template' at template.yaml, line 3: 'template' is an invalid option for 'template', check: template
it looks like you somehow have another template.yaml file somewhere or you aren’t properly saving the file.
the error says it found “template” at line 2 (where it was previously) in the template.yaml file but the last one you posted doesn’t contain that word.
have you reloaded the template yaml integration (or restarted HA) after you made the changes?
@JoiLSch — what finity said, but also, what version of HA are you running? Some of the wording in the error messages suggests you might be a few versions behind…
Hi everyone. Been away a few days, but thanks again for all the help/suggestions/tips. Didn’t expect this much help when I signed up to the community, so very grateful for that.
It looks like it might have been the version of HA I was running in combination of how to “start” the template.yaml file. The template yaml file looks like this now: