-
-
Notifications
You must be signed in to change notification settings - Fork 28.6k
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
ASUSWRT: DB flooded by records with same state every 30 sec #111517
Comments
Hey there @kennedyshead, @ollo69, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) asuswrt documentation |
I would expect that because this attribute is excluded from recorder defining the _unrecorded_attributes as explained here, the information in the recorder would not be updated. I will make some internal test to understand if totally removing the attribute will stop generating data, in case I will create a new PR for this, |
In a "normal" scenario when some attribute is stored in DB:
If this attribute is NOT stored in DB - I would expect to not have a new record in "states" due to a changed "last-updated". |
I agree with you, but seems that the behavior is different. Probably just because the attribute change also Last-update change and so new value is saved. |
When an attribute changes (even a non-recorded) - the "last-updated" is changed. Axiom.
This could be a breaking change for some users... People may want to have this attribute. |
Created an issue for Recorder. |
I think you should set "Integration causing the issue" field or the issue will stay generic and maybe no one will take it in charge. |
You are right. Fixed that issue, associated it to Recorder explicitly. |
Hmmm, I added a link to a integration - but seems that is not processed. |
I suggest to close and open a new one. Don't really know how does it works, but I suspect that it associate the integration only when you create the issue. |
One kind developer helped me ))) |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
I closed the recorder issue because its not a recorder problem. The recorder will always write to the database when an entity is updated and the state or attributes changes. If last_updated changes you'll get a row in the database even if the attributes are excluded, but you won't get a new attributes row. It would be a significant breaking change to do otherwise. If you don't want a database row, the solution is to avoid calling mqtt does something like that core/homeassistant/components/mqtt/mixins.py Line 1292 in a5dc4cb
That technique could be extended to exclude insignificant changes. That's probably a breaking change for this integration though as well. Implementing it the way the op is asking in either issue will likely result in a breaking change. Probably less pitchforks if its done here. Its perfectly reasonable to close this issue as you might make some other people quite unhappy that relied on last_updated changing frequently. It would also be ok to implement it if you think the fallout will be minimal and its a desirable change for the integration. |
I am may be missing smth, please correct me then.
From one side - I need to have |
The problem
According to Dev tools -> state, a
device_tracker
entity contains these attributes:Let's open DB and filter a "states" table by a corr. "metadata_id":
The "states" table stores records every 30 sec:
So, there was no need to exclude
last_time_reachable
from DB - it does not help, DB is still flooded.What version of Home Assistant Core has the issue?
2024.2.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
ASUSWRT
Link to integration documentation on our website
https://www.home-assistant.io/integrations/asuswrt/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: