diff --git a/HMI/nspanel.tft b/HMI/nspanel.tft
index 20b4db96..58107623 100644
Binary files a/HMI/nspanel.tft and b/HMI/nspanel.tft differ
diff --git a/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/libs/icon_mapping.py b/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/libs/icon_mapping.py
index 7282ce18..07870bfa 100644
--- a/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/libs/icon_mapping.py
+++ b/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/libs/icon_mapping.py
@@ -6904,16 +6904,16 @@ icons = {
def get_icon_id(ma_name):
if isinstance(ma_name, re.Match):
ma_name = ma_name.group(0).replace('', '').replace('', '')
+ print(f"testxxxx {ma_name}")
if "text:" in ma_name:
return ma_name.replace("text:", "")
- # if "ha:" in ma_name:
- # splitted_string = ma_name.replace("ha:","").rpartition('}')
- # template_string = f"{splitted_string[0]}{splitted_string[1]}"
- # templates_result = apis.ha_api.render_template(template_string)
- # if isinstance(templates_result, str):
- # templates_result = re.sub(r".+?<\/I>", get_icon_id, templates_result)
- # return f"{templates_result}{splitted_string[2]}"
+ if "" in ma_name and "" in ma_name:
+ print(f"testdddd {ma_name}")
+ if isinstance(ma_name, str):
+ ma_name = re.sub(r'.+?<\/I>', get_icon_id, ma_name)
+ print(f"test123d {ma_name}")
+
ma_name = ma_name.replace("mdi:", "")
if ma_name in icons:
diff --git a/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/panel_cards.py b/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/panel_cards.py
index 0c21b898..54c4ed0b 100644
--- a/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/panel_cards.py
+++ b/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/panel_cards.py
@@ -41,7 +41,7 @@ class Entity:
self.font = font_mapping.get(config.get("font", ""), "")
def render(self, cardType=""):
- icon_char = self.icon_overwrite or ""
+ icon_char = self.icon_overwrite or "mdi:gesture-tap-button"
color = rgb_dec565([68, 115, 158])
if self.color_overwrite:
color = rgb_dec565(self.color_overwrite)