Skip to content

Mismatch with disabled rules when using config files #5415

@lolodomo

Description

@lolodomo

I am not 100% sure if the bug is in core framewrok or in Main UI.
When you disable a rule in Main UI, the data is saved in the file userdata/jsondb/automation_rules_disabled.json.
When only one rule is disabled, the file content is:

{
  "maison-10": {
    "class": "java.lang.Boolean",
    "value": true
  }

What is saved seems to be a rule ID (maison-10) and not a rule name.
In config file, what we define are rule names (and not rule ID).
What happens is that if your remove a rule from this config file, the disabled rule will be another rule, not your original rule. There is a mismatch between disabled rules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn unexpected problem or unintended behavior of the Core

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions