From 8b63322e50d62fd7185eb04236f884ddc3ac055f Mon Sep 17 00:00:00 2001 From: ticaki <59184294+ticaki@users.noreply.github.com> Date: Mon, 14 Apr 2025 14:12:09 +0200 Subject: [PATCH] ups --- ioBroker/DEV/NSPanelTs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ioBroker/DEV/NSPanelTs.ts b/ioBroker/DEV/NSPanelTs.ts index bd9123e9..b4bc15b2 100644 --- a/ioBroker/DEV/NSPanelTs.ts +++ b/ioBroker/DEV/NSPanelTs.ts @@ -2361,7 +2361,7 @@ async function SubscribeMRIcons () { } if (arr.length > 0) { on({id: arr, change: 'ne'}, async function (obj) { - if (obj.id && obj.id.substring(0, 4) == 'mqtt' &&(obj.id.endsWith('Relay.1') || obj.id.endsWith('Relay.2'))) { + if (obj.id && obj.id.substring(0, 4) == 'mqtt' &&(obj.id.endsWith('.stat.POWER1') || obj.id.endsWith('.stat.Power2'))) { let Button = obj.id.split('.'); if (getState(NSPanel_Path + 'Relay.' + Button[Button.length - 1].substring(5, 6)).val != obj.state.val) { await setStateAsync(NSPanel_Path + 'Relay.' + Button[Button.length - 1].substring(5, 6), obj.state.val == 'ON' ? true : false);