chore: remove total grid energy sensor in favor of more complex ad-hoc setup

This commit is contained in:
oddlama 2025-08-02 12:12:43 +02:00
parent 5160f3a53e
commit 20477ecdc5
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -161,26 +161,6 @@ in
types = [ "Papiermüll" ]; types = [ "Papiermüll" ];
} }
]; ];
template = [
{
sensor = [
{
name = "Total Grid Return Energy";
unique_id = "calculated_total_grid_return_energy";
device_class = "energy";
unit_of_measurement = "kWh";
state_class = "total_increasing";
state = ''
{% set solar = states('sensor.pro3em_solar_total_active_energy') | float(0) %}
{% set mains = states('sensor.pro3em_mains_total_active_energy') | float(0) %}
{% set export = solar - mains %}
{{ [export, 0] | max }}
'';
}
];
}
];
}; };
extraPackages = extraPackages =