ioBroker.admin icon indicating copy to clipboard operation
ioBroker.admin copied to clipboard

JSON config : Add possibility to use "sendTo" for checkboxes

Open DutchmanNL opened this issue 3 years ago • 5 comments

Is your feature request related to a problem? Please describe. Several adapter use checkboxes in there admin config which allows to enabled specific elements only available at that system or in relation to conditions (like SEQ,CoronaVirusStatistis), I would like to rebuild these adapter to use admin 5 with JSON config.

Describe the solution you'd like Currently I use javascript to retrieve objects which build the checkboxes, so I need a Dynamic way to remove/add values to checkboxes instead of the current static one (preferable by just sending the data as JSON by messaging equal to selectSendto

Describe alternatives you've considered I don't see an alternative as the current json config does only allow static checkboxes, would like to make them dynamic

example to use: CoronaVirus statistics:

Schermafbeelding 2021-08-25 om 11 33 53

DutchmanNL avatar Aug 25 '21 09:08 DutchmanNL

How it is stored?

"native": {
    "Algeria": true,
    "Bahrain": false,
   ....
}

Or as array?

GermanBluefox avatar Jun 14 '22 09:06 GermanBluefox

@DutchmanNL If you will not provide me a use-case, I will not be able to implement it. Kind of select with multiple choice?

GermanBluefox avatar Jun 21 '22 16:06 GermanBluefox

What about such a selection? image

Already implemented in 6.0.8

GermanBluefox avatar Jun 21 '22 17:06 GermanBluefox

image

GermanBluefox avatar Jun 21 '22 17:06 GermanBluefox

What about such a selection?

perfect would work fine for me! Can imagine if we have a lot of attributes (like I corona statistics) its getting a little hard but that are exceptions in generic I like this multiple drop down!

regarding the previous questions

SEQ is using an object structure

  "native": {
    "silly": true,
    "debug": true,
    "info": true,
    "warn": true,
    "error": true,
    "url": "https://seq.drozmotix.eu",
    "port": "443",
    "apiKey": "6\u0015\u0007~:\nQTYZ&3%yus\u001drnV",
    "template": "{Source}: {Message}",
    "systemName": "HomeMaster",
    "allLogs": false,
    "admin.0": false,
    "admin.1": false,
    "alexa2.0": false,
    "backitup.0": false,
    "calendar.0": false,
    "chromecast.0": false,
    "cloud.0": false,
  },

Corona-virus statistics as array, so I think there is no generic way for all adapter can always be a mix

    "allGermanyFederalStates": [
      ""
    ],
    "allGermanyCities": [
      ""
    ],
    "allGermanyCounties": [
      ""
    ],
    "selectedGermanyFederalStates": [],
    "selectedGermanyCities": [],
    "selectedGermanyCounties": []

DutchmanNL avatar Jun 23 '22 08:06 DutchmanNL

Already implemented in 6.0.8

DutchmanNL avatar Mar 25 '23 21:03 DutchmanNL