moved heading to entityUpd #86

This commit is contained in:
joBr99
2022-03-28 22:59:43 +02:00
parent 9d0acb3c0e
commit 35f0dee452
4 changed files with 3 additions and 6 deletions

View File

@@ -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`

Binary file not shown.

Binary file not shown.

View File

@@ -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)