mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-16 09:56:58 +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
|
//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) => {
|
on({id: [String(NSPanelStatTopic) + 'POWER1',String(NSPanelStatTopic) + 'POWER2'], change: "ne"}, (obj) => {
|
||||||
if (!obj || !obj.id) return
|
if (!obj || !obj.id) return
|
||||||
const n = obj.id.substring(obj.id.length-1);
|
const n = obj.id.substring(obj.id.length-1);
|
||||||
|
|||||||
Reference in New Issue
Block a user