[Bug]: Sensor attributes and Database
Opened this issue · 0 comments
andrewjswan commented
What happened?
We write a lot of information to the database on changing attributes. The information is generally meaningless, and is duplicated on each sensor.
Example: Xiaomi temperature and humidity sensor, we get 3 sensors, temperature, humidity, rssi, and each sensor has the same set of attributes, which changes and clutters the database.
Option 1, remove attributes altogether.
Option 2, remove attributes from the rssi sensor
Option 3, do not save attributes to the database, as is done in 2024.7 for the SQL sensor.
Sensor type
all
Relevant log output
entity_id | count | size in bytes |
---|---|---|
binary_sensor.ble_motion_bedroom_mi | 456917 | 77139674 |