mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-24 00:14:26 +01:00
update on replace
This commit is contained in:
@@ -1727,7 +1727,7 @@ on({id: [String(NSPanel_Path) + 'Config.Dateformat.Switch.weekday',
|
||||
});
|
||||
|
||||
//Set Relays from Tasmota
|
||||
const NSPanelStatTopic = NSPanelSendTopic.replace('.tele.','.stat.').replace('.CustomSend','.');
|
||||
const NSPanelStatTopic = NSPanelSendTopic.replace('.cmnd.','.stat.').replace(/\.CustomSend$/g,'.');
|
||||
on({id: [String(NSPanelStatTopic) + 'POWER1',String(NSPanelStatTopic) + 'POWER2'], change: "ne"}, (obj) => {
|
||||
if (!obj || !obj.id) return
|
||||
const n = obj.id.substring(obj.id.length-1);
|
||||
|
||||
Reference in New Issue
Block a user