Hello all,
I am still quite new to HA and wanted to add my Victron system to the energy dashboard.
I am failing due to the following condition.
I would like to add my battery and have two entities from Victron for this.
What I can’t do is to create a new sensor in the dashboard that will take the value from “Energy flowing into the battery” when the value from my second sensor is “CHARGING”.
As a second sensor in the energy dashboard I wanted to create one “Energy coming out of the battery” when the value is “DISCHARGING”.
I fail when creating a template sensor because I can’t get the if state condition right
But after check configs, i get this error :
Logger: homeassistant.config
Source: config.py:868
First occurred: 12:50:15 (4 occurrences)
Last logged: 13:09:51
Invalid config for [template]: [Batterie_Laden] is an invalid option for [template]. Check: template->sensor->0->Batterie_Laden. (See /config/template.yaml, line 13).
Invalid config for [template]: [entity_id] is an invalid option for [template]. Check: template->sensor->0->entity_id. (See /config/template.yaml, line 12).
Invalid config for [template]: [entity_id] is an invalid option for [template]. Check: template->sensor->0->entity_id. (See /config/template.yaml, line 0).
Invalid config for [template]: [platform] is an invalid option for [template]. Check: template->sensor->0->platform. (See /config/configuration.yaml, line 16).
Any idea whats wrong ? Maybe it is because the unit_of_measurement for the battery state is not defined ?
Thank you for the answer.
I have now changed capital letters.
I had copied the image because I noticed when I copied the text from the yaml, wrong characters crept in.
In future I will copy the text according to the FAQ
What do you mean by the !include ?
it is in my configuration.yaml , this is a part of it