ioBroker.admin
ioBroker.admin copied to clipboard
JSON config : Add possibility to use "sendTo" to build table dynamically
Is your feature request related to a problem? Please describe. Several adapter use tables in there admin config (like SourceAnalytix, ESPHome, Wled etc), 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 table, so I need a Dynamic way to remove/add values to tables 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 tables, would like to make them dynamic
addition as requested by Bluefox :
let me explain this in a practical setup as used in 3. adapter (WLED/WlanThermo/ESPHomme) Currently I use tables to list all. properties. of devices, see ESPHome Example :

This tables are generated only if devices are connected, device properties are stored in the device object. Currently I use the objective element to get all the device and read there custom attributes used in the table shown above.
https://github.com/DrozmotiX/ioBroker.esphome/blob/main/admin/index_m.html#L268-L278
I basically wold like to use a table in custom JSON where I can provide the array by the backend, JSON structure should be clear defined which headers are used, maybe something like this (not sure about the standardized format)
[ {"ID" : "xxxx", "name" : "xxxx", "IP-Adress":"xxxx" },
{"ID" : "yyyy", "name" : "yyyy", "IP-Adress":"yyyy" }]
I would like to build the JSON and send it by messaging equal to the sselectSendt method Fields which should be present/configurable :
- delete button (option to configure), should. send a message to backend
- regular options for fields (types/default value/enabled)
- kolom whide
- option to have a dropdown (also. selectsendto) embedded (see example for SA)

@GermanBluefox : As far as I understood from @DutchmanNL who discussed this topic with you this enhancement can not be realized. Is this correct?
Admin 6 supports now custom components. This could be implemented in such a away: https://github.com/ioBroker/ioBroker.admin-component-template