Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smoke temp should not be an extra attribute #14

Closed
jipem01 opened this issue Jun 13, 2023 · 1 comment · Fixed by #21
Closed

Smoke temp should not be an extra attribute #14

jipem01 opened this issue Jun 13, 2023 · 1 comment · Fixed by #21

Comments

@jipem01
Copy link
Contributor

jipem01 commented Jun 13, 2023

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 :

  • ATTR_DEVICE_ALARM
  • ATTR_DEVICE_STATUS
  • ATTR_HUMAN_DEVICE_STATUS
  • ATTR_SMOKE_TEMP
  • ATTR_REAL_POWER

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
Copy link

Thanks a lot Vincent, working perfectly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants