@sdetweil Thanks for your reply. Much appreciated!
I think I need another approach to get the result that I need. The subscriptions
array is (must be) part of the this.config
. So I add subscriptions: [];
to the defaults:
at the modulename.js
The thing now is add the generated JSON (csvtojson) to the this.config
. :grinning_face_with_big_eyes: and I can use this.config
as a payload.
The array is something like this:
subscriptions = [{
topic: 'homey/light/keuken/dimmer-fibaro-1/onoff', // MQTT Topic name
label: 'Licht keuken',
type: 'device',
display: { left: 50, top: 50 },
},
{
topic: 'homey/sensor/washok/temp-hum-xiaomi-1/measure-temperature',
label: 'Washok Temp',
type: 'label',
display: { left: 265, top: 0, prefix: "", suffix: "°C", decimals: 0 },
}