Skip to content

Should we get rid of the instance-parameter in multi instance plugins? #292

@msinn

Description

@msinn

When configuring more than one instance of a plugin, the instance parameter is used to bind item attributes to a specific instance of a plugin.

On the other hand, we already have an identifier, that points to the specific instance of those plugins. Each configured plugin has a section name in etc/plugin.yaml. That section name could be used for the same purpose.

That way we could solve some irritations about the configuration of multi instance plugins.

If it is the way to go, I would dig into the code to see how to implement it and to show a migration path.

Questions to address

  1. Should we still use the default plugin handling?
  2. What happens with attributes without instance name? Used by all or only by default plugin?
  3. Should settings of a multi-instance plugin always need an instance name?
  4. Can an item use multiple instances (e.g. using settings with different instance names)?
  5. Can an item use plugin settings with instance names and without instance names (e.g. AVM plugin)?

Solutions

TDB.

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreIssue relates to the core of SmartomeNGquestion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions