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

Introduce new object type to store additional configuration/data/entities in adapters #1986

Open
Apollon77 opened this issue Aug 29, 2022 · 1 comment

Comments

@Apollon77
Copy link
Collaborator

Apollon77 commented Aug 29, 2022

Why
Adapters often have additional configuration data (e.g. tokens or other type of "entities") where it is not ideal to store them in the instance object (because changeing them restarts the instance). For now we have no real place to store these data (especially if they or not a "device", "channel" or "state" (folder feels not natural for such data).
We see questions from deveopers here and there on how/where to best store such data. The alternatives are often "store ina file in iobroker-data" (which then has issues when the adapter is moved to an other host!)

What is the idea?
The idea is to define a new object type (or maybe reuse "config"?) which can be stored in an adapter instance in various places. The common area only have a name and always "expert:true" to hide for normal users.

We also enhance admin adapter to include these objects into the json which is returned for "download instance config" and also accept this including recreation of the objects when uploading such a configuration.

Why not use "meta"?
Because meta objects are defining also "filesystem storage places" which is not required here.

@Apollon77 Apollon77 changed the title Introduce new object type "config" Introduce new object type to store additional configuration/data/entities in adapters Aug 29, 2022
@Apollon77
Copy link
Collaborator Author

Maybe we simply reusew "config"? Then it would be just a typem update and "dcumetatioN" (and the amin adjustment)

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

No branches or pull requests

1 participant