diff --git a/HMI/README.md b/HMI/README.md index 37fdce2e..c9b5d5b9 100644 --- a/HMI/README.md +++ b/HMI/README.md @@ -140,7 +140,13 @@ tIconBtnEntityName is the entiy name used in the button event for pressing the u ### cardQR Page -`entityUpd,heading,navigation,textQR[,type,internalName,iconId,displayName,optionalValue]x2` +`entityUpd~heading~navigation~textQR[~type~internalName~iconId~displayName~optionalValue]x2` + +### cardPower Page + +`entityUpd~heading~navigation~colorHome~iconHome~textHome[~iconColor~icon~speed~valueDown]x6` + +`entityUpd~test~1|1~6666~A~hu~8888~B~1~t0u~9999~C~2~t1u~1111~D~3~t2u~33333~E~-1~t3u~3333~F~-2~t4u~4444~G~-3~t5u` ## Messages from Nextion Display @@ -223,13 +229,6 @@ tIconBtnEntityName is the entiy name used in the button event for pressing the u `event,buttonPress2,internalNameEntity,actionName,code` -### cardPower Page - -`entityUpd,heading,navigation,colorHome,iconHome[,iconColor,icon,speed,valueUp,valueDown]x6 - -`"entityUpd~test~1|1~6666~A~8888~B~1~t0o~t0u~9999~C~2~t1o~t1u~1111~D~3~t2o~t2u~33333~E~-1~t3o~t3u~3333~F~-2~t4o~t4u~4444~G~-3~t5o~t5u` - - # Design Guidelines for Nextion HMI Project Background Color is diff --git a/apps/nspanel-lovelace-ui/luibackend/pages.py b/apps/nspanel-lovelace-ui/luibackend/pages.py index be0930de..17fab42b 100644 --- a/apps/nspanel-lovelace-ui/luibackend/pages.py +++ b/apps/nspanel-lovelace-ui/luibackend/pages.py @@ -565,7 +565,7 @@ class LuiPagesGen(object): self._send_mqtt_msg(command) def generate_power_page(self, navigation, heading, items): - command = f"entityUpd~{heading}~{navigation}~6666~A" + command = f"entityUpd~{heading}~{navigation}~6666~A~test" for item in items: entity = apis.ha_api.get_entity(item.entityId) icon_color = self.get_entity_color(entity)