But keep get an âError loading /config/configuration.yaml: mapping values are not allowed here
in â/config/configuration.yamlâ, line 153, column 12â with line 153 being the bolded sensors line.
You need to use different quotes to encapsolate your value template. Notice how the coloring looks weird in your value template? Half is red, half is black? Thatâs an indication that the parser doesnât know whatâs a string and whats not.
Iâm very new to HASS and the template part. But it looks very handy and usefull. I have the Solar Edge intergration with the API. I want to calculate the values from Wh to KWh. I found the template exemple on the solar edge intergration page but that gives a error. When i put the string in the template editor (dev tools) i get the right value but when i put it in my sensor.yaml and check my config i get the following error:
Invalid config for [sensor]: required key not provided @ data[âplatformâ]. Got None. (See /config/configuration.yaml, line 24). Please check the docs at Sensor - Home Assistant
This is my configuration.yaml:
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
# base_url: example.duckdns.org:8123
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: doesn't matter
longitude: doesn't matter
# 'metric' for Metric, 'imperial' for Imperial
unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: doesn't matter
customize: !include customize.yaml
##################Include#######################
group: !include groups.yaml
script: !include scripts.yaml
automation: !include automation.yaml
zone: !include zone.yaml
sensor: !include sensor.yaml
switch: !include switch.yaml
device_tracker: !include device_tracker.yaml
Remove sensor from sensor.yaml. You have 2 section headers, when you combine the sensor: !include with the sensor.yaml you end up with this as your configuration:
Thank you very much. Now i donât have that error. this make sense.
But i have to figure out why nothing is happend. the value is still the same in Wh and not in KWh.