forked from mirrors_public/oddlama_nix-config
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" ];
|
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 =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue