mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 14:50:40 +02:00
chore: remove total grid energy sensor in favor of more complex ad-hoc setup
This commit is contained in:
parent
5160f3a53e
commit
20477ecdc5
1 changed files with 0 additions and 20 deletions
|
@ -161,26 +161,6 @@ in
|
|||
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 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue