mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-13 00:27:12 +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
|
The following message can be used to update the content on the cardEntities Page
|
||||||
|
|
||||||
`entityUpdHeading,heading1337`
|
`entityUpd,heading,navigation,[,*type*,*internalNameEntity*,*iconId*,*iconColor*,*displayNameEntity*,*optionalValue*]x4`
|
||||||
|
|
||||||
`entityUpd[,*type*,*internalNameEntity*,*iconId*,*iconColor*,*displayNameEntity*,*optionalValue*]x4`
|
|
||||||
|
|
||||||
`,light,light.entityName,1,17299,Light1,0`
|
`,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):
|
def generate_entities_page(self, heading, items):
|
||||||
# Set Heading of Page
|
navigation = ""
|
||||||
self._send_mqtt_msg(f"entityUpdHeading,{heading}")
|
command = "entityUpd,{heading},{navigation}"
|
||||||
# Get items and construct cmd string
|
# Get items and construct cmd string
|
||||||
command = "entityUpd"
|
|
||||||
for item in items:
|
for item in items:
|
||||||
command += self.generate_entities_item(item)
|
command += self.generate_entities_item(item)
|
||||||
self._send_mqtt_msg(command)
|
self._send_mqtt_msg(command)
|
||||||
|
|||||||
Reference in New Issue
Block a user