I copy and paste to the YAML and although it states the configuration wont prevent start almost every line throws an error., usually not recognised.
Has anyone successfully added this sensor and if so how, Many thanks Pete
It says:
The GitHub repo includes the necessary yaml files to import the forecast into a sensor in Home Assistant. Alternatively you can simply copy the code from this page into your configuration.yaml file.
Those instructions state to paste it into configuration.yaml. What it doesn’t tell you is if you already have a sensor: section, you will get an error if you add a second one.
Did you paste it into configuration.yaml, and if you di was there already a section for sensor: in there.
I then check with developer tools to config and get:
Configuration warnings
Integration error: resource - Integration ‘resource’ not found
Integration error: scan_interval - Integration ‘scan_interval’ not found.
Integration error: name - Integration ‘name’ not found.
Integration error: json_attributes - Integration ‘json_attributes’ not found.
Integration error: json_attributes_path - Integration ‘json_attributes_path’ not found.
Integration error: value_template - Integration ‘value_template’ not found.
Invalid config for ‘rest’ from integration ‘sensor’ at configuration.yaml, line 14: must contain at least one of resource, resource_template. ‘’, got {‘platform’: ‘rest’}
Hi
Your mention of indentation made me have a look at what was copied and pasted in.
I removed one space on the line - platform: rest after pasting in. I now get a green tick and the check configuration now doesn’t throw an error. Is there any info on indentation and formatting structure as it seems critical the number of spaces is correct
But, in short, for those of us who aren’t experienced with YAML etc, it seems there’s multiple types of sensors. Those of us just muddling through are just using “template sensors” - but you can also create actual sensors - and they go at another level, and I think that’s the crux of where we’ve been getting stuck.