vincentwolsink / home_assistant_micronova_agua_iot

Home Assistant integration controlling heating devices connected via the Agua IOT platform of Micronova
Apache License 2.0
25 stars 15 forks source link

Smoke temp should not be an extra attribute #14

Closed jipem01 closed 1 year ago

jipem01 commented 1 year ago

As mentionned in HA doc, entities extra attribute should not be value who change to often, as it force saving the whole state of the entity each time and could flood the database. https://developers.home-assistant.io/docs/core/entity/

danger

Entities that generate a significant amount of state changes can quickly increase the size of the database when the extra_state_attributes also change frequently. Minimize the number of extra_state_attributes for these entities by removing non-critical attributes or creating additional sensor entities.

Considering list of extra attributes :

We should consider that smoke temp will change at each reading. So using an extra attribute is not a good idea. Therefore, it will be better to move it as a sensor. I'm working on it (plus additionals sensors entities).

rvannunen commented 8 months ago

Thanks a lot Vincent, working perfectly!