diff --git a/HMI/README.md b/HMI/README.md index 06e85daf..3d52fbfa 100644 --- a/HMI/README.md +++ b/HMI/README.md @@ -75,7 +75,7 @@ change the page type: ### screensaver page -`weatherUpdate~? tMainIcon? tMainText? tMRIcon? tMR? tForecast1? tF1Icon? tForecast1Val? tForecast2? tF2Icon? tForecast2Val?tForecast3? tF3Icon? tForecast3Val?tForecast4? tF4Icon? tForecast4Val?optionalLayoutIcon?optionalLayoutText` +`weatherUpdate~tMainIcon~tMainText~tForecast1~tF1Icon~tForecast1Val~tForecast2~tF2Icon~tForecast2Val~tForecast3~tF3Icon~tForecast3Val~tForecast4~tF4Icon~tForecast4Val~optionalLayoutIcon~optionalLayoutText` ### cardEntities Page diff --git a/HMI/nspanel.HMI b/HMI/nspanel.HMI index a381ede3..78e6b706 100644 Binary files a/HMI/nspanel.HMI and b/HMI/nspanel.HMI differ diff --git a/HMI/nspanel.tft b/HMI/nspanel.tft index ee956385..2420f76a 100644 Binary files a/HMI/nspanel.tft and b/HMI/nspanel.tft differ diff --git a/apps/nspanel-lovelace-ui/luibackend/pages.py b/apps/nspanel-lovelace-ui/luibackend/pages.py index e2281a48..06a2719a 100644 --- a/apps/nspanel-lovelace-ui/luibackend/pages.py +++ b/apps/nspanel-lovelace-ui/luibackend/pages.py @@ -98,9 +98,9 @@ class LuiPagesGen(object): icon = get_icon_id_ha("sensor", state=entity.state, device_class=entity.attributes.get("device_class", ""), overwrite=icon) unit_of_measurement = entity.attributes.get("unit_of_measurement", "") down = f"{entity.state} {unit_of_measurement}" - weather_res+=f"?{up}?{icon}?{down}" + weather_res+=f"~{up}~{icon}~{down}" - self._send_mqtt_msg(f"weatherUpdate~?{icon_cur}?{text_cur}{weather_res}") + self._send_mqtt_msg(f"weatherUpdate~{icon_cur}~{text_cur}{weather_res}") def generate_entities_item(self, item): icon = None