mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-19 22:24:15 +01:00
update code for #371
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user