From 5f0960fb8fa06b1723d808c54f8c7bf6fe497a84 Mon Sep 17 00:00:00 2001 From: dmatik Date: Thu, 15 Feb 2024 08:27:08 +0200 Subject: [PATCH] adding sensor for DB file size --- .../homeassistant/sensors_homeassistant.yaml | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/homeassistant/config/packages/homeassistant/sensors_homeassistant.yaml b/homeassistant/config/packages/homeassistant/sensors_homeassistant.yaml index 4cb2b491..4d4083c2 100644 --- a/homeassistant/config/packages/homeassistant/sensors_homeassistant.yaml +++ b/homeassistant/config/packages/homeassistant/sensors_homeassistant.yaml @@ -85,17 +85,17 @@ sensor: # # ############################################################################ - - platform: template - sensors: - db_size_calculated: - friendly_name: "DB Size Calculated" - icon_template: mdi:database - unit_of_measurement: MB - value_template: >- - {% set size = states("sensor.events_size")|float - + states("sensor.state_attributes_size")|float - + states("sensor.states_size")|float - + states("sensor.statistics_short_term_size")|float - + states("sensor.statistics_size")|float - %} - {{ size }} \ No newline at end of file + # - platform: template + # sensors: + # db_size_calculated: + # friendly_name: "DB Size Calculated" + # icon_template: mdi:database + # unit_of_measurement: MB + # value_template: >- + # {% set size = states("sensor.events_size")|float + # + states("sensor.state_attributes_size")|float + # + states("sensor.states_size")|float + # + states("sensor.statistics_short_term_size")|float + # + states("sensor.statistics_size")|float + # %} + # {{ size }} \ No newline at end of file