Moved DB size sensor due to HA breaking change.

This commit is contained in:
2025-11-20 15:36:15 +01:00
parent fe081bf145
commit ab46bff258

View File

@@ -38,6 +38,14 @@ mqtt_statestream: !include mqtt_statestream.yaml
# Template sensors # Template sensors
template: !include template.yaml template: !include template.yaml
# Database size sensor
sql:
- name: "Home Assistant Datenbankgröße"
db_url: !secret ha_recorder_dburl
query: 'SELECT table_schema "database", Round(Sum(data_length + index_length) / 1048576, 2) "value" FROM information_schema.tables WHERE table_schema="homeassistant" GROUP BY table_schema;'
column: 'value'
unit_of_measurement: MB
# calendar integration # calendar integration
calendar: !include calendars.yaml calendar: !include calendars.yaml