Skip to content

[Bug]: Sensor attributes and Database #1381

Open
@andrewjswan

Description

@andrewjswan

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions