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

automation_rules_disabled.json uncontrolled growth #4590

Open
jimtng opened this issue Feb 10, 2025 · 0 comments
Open

automation_rules_disabled.json uncontrolled growth #4590

jimtng opened this issue Feb 10, 2025 · 0 comments
Labels
bug An unexpected problem or unintended behavior of the Core

Comments

@jimtng
Copy link
Contributor

jimtng commented Feb 10, 2025

I've just discovered my automation_rules_disabled.json containing over 93000 lines.

The entries in it are only removed when the rule got re-enabled.
When the rule got disabled, then subsequently removed, the corresponding entry in automation_rules_disabled.json remains.

Removing the entry when the rule is removed doesn't work, because, for example, when a rule is saved in MainUI, it would remove the rule and re-add it, causing a previously disabled rule to become enabled.

At the moment, the only way to solve this is by adding the removal of non-existent rules in the MainUI's health check, perhaps.

@jimtng jimtng added the bug An unexpected problem or unintended behavior of the Core label Feb 10, 2025
ccutrer pushed a commit to openhab/openhab-jruby that referenced this issue Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of the Core
Projects
None yet
Development

No branches or pull requests

1 participant