From 2d0201759d8ce3677ff184fbdf0d377827fd7679 Mon Sep 17 00:00:00 2001 From: tt-tom17 Date: Fri, 27 Sep 2024 17:23:05 +0200 Subject: [PATCH] sendToPanel - log message CheckConfigParameters - existsObjekt mqtt --- ioBroker/DEV/NSPanelTs.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ioBroker/DEV/NSPanelTs.ts b/ioBroker/DEV/NSPanelTs.ts index 89e2b354..37edc342 100644 --- a/ioBroker/DEV/NSPanelTs.ts +++ b/ioBroker/DEV/NSPanelTs.ts @@ -1071,7 +1071,7 @@ async function CheckConfigParameters() { const a = n.shift(); const i = n.shift(); - if (a === 'mqtt' && !isNaN(Number(i))) { + if (a.substring(0, 4) === 'mqtt' && !isNaN(Number(i))) { sendTo(`${a}.${i}`, 'sendMessage2Client', { topic: n.join('/'), message: buildNSPanelString('time', '12:00') }); await sleep(500); } @@ -3517,6 +3517,9 @@ async function SendToPanel(val: NSPanel.Payload | NSPanel.Payload[]) { }); } else { setIfExists(config.panelSendTopic, val.payload); + if (Debug) { + log('function SendToPanel val-payload: ' + val.payload, 'info'); + } } } catch (err: any) { log('error at function SendToPanel: ' + err.message, 'warn');