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.