Open lepricon opened 2 months ago
@lepricon did you manage to solve this ? having the same issue of entity not defined.
Yep, divided it into two files: template.yaml and sensor.yaml and thus it concatenates correctly
would you be able to share it please ? still having issues
The definition on autocharge-optimal is not proper yaml, since is starting from the - sign. Probably 'template' keyword is missing. Which "include" statement you have above the pasted content?
There is no need to seperate this into several files.
I assumed that you already have template sensors, and this is one goes to the bottom of the list. If this is your only one, it needs to be preceded by "template:" like this:
template:
- sensor:
- name: 'Autocharge-optimal'
unit_of_measurement: "A"
state: >
{# calculate the optimal charge current based on several parameters: #}
{# PV yield, house battery SOC, vehicle battery SOC, Grid consumption #}
...
The definition on autocharge-optimal is not proper yaml, since is starting from the - sign. Probably 'template' keyword is missing. Which "include" statement you have above the pasted content?