mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-27 01:44:25 +01:00
moved heading to entityUpd #86
This commit is contained in:
@@ -81,9 +81,7 @@ change the page type:
|
||||
|
||||
The following message can be used to update the content on the cardEntities Page
|
||||
|
||||
`entityUpdHeading,heading1337`
|
||||
|
||||
`entityUpd[,*type*,*internalNameEntity*,*iconId*,*iconColor*,*displayNameEntity*,*optionalValue*]x4`
|
||||
`entityUpd,heading,navigation,[,*type*,*internalNameEntity*,*iconId*,*iconColor*,*displayNameEntity*,*optionalValue*]x4`
|
||||
|
||||
`,light,light.entityName,1,17299,Light1,0`
|
||||
|
||||
|
||||
BIN
HMI/nspanel.HMI
BIN
HMI/nspanel.HMI
Binary file not shown.
BIN
HMI/nspanel.tft
BIN
HMI/nspanel.tft
Binary file not shown.
@@ -159,10 +159,9 @@ class LuiPagesGen(object):
|
||||
|
||||
|
||||
def generate_entities_page(self, heading, items):
|
||||
# Set Heading of Page
|
||||
self._send_mqtt_msg(f"entityUpdHeading,{heading}")
|
||||
navigation = ""
|
||||
command = "entityUpd,{heading},{navigation}"
|
||||
# Get items and construct cmd string
|
||||
command = "entityUpd"
|
||||
for item in items:
|
||||
command += self.generate_entities_item(item)
|
||||
self._send_mqtt_msg(command)
|
||||
|
||||
Reference in New Issue
Block a user