Hi,
I’ve some solar panel inverter that is providing the current solar production and the current power usage. I want to create two entities showing what is the current grid import and grid export.
I’ve been in home-assistant, Devices & services, helper.
I’ve created a new “Template”:
And specified a state template:
My template is the following:
{{ [0, states(sensor.production_electricite_actuelle) | int(0) - states(sensor.conso_actuelle) | int(0) ] | max }}
But after one day I’ve saved it, it still shows as “Unavailable”. I’ve copy-pasted the source sensor names from the entities list, so I’m pretty sure they have the correct values.
I tried several things, including setting my template entity in kw(since both my source entities are provided in kw), but same result.
Any idea what I messed up?