add navigation on alarm and thermo page

This commit is contained in:
Johannes
2022-03-31 20:20:27 +02:00
parent 067bad12e3
commit d74ccfcd64
5 changed files with 2456 additions and 4 deletions

View File

@@ -123,11 +123,11 @@ The following message can be used to update the content on the cardEntities Page
### cardMedia Page ### cardMedia Page
`entityUpd,|*internalNameEntiy*|*heading*|*icon*|*title*|*author*|*volume*|*playpauseicon*|currentSpeaker|speakerList-seperated-by-?` `entityUpd,|*heading*|*navigation*|*internalNameEntiy*|*icon*|*title*|*author*|*volume*|*playpauseicon*|currentSpeaker|speakerList-seperated-by-?`
### cardAlarm Page ### cardAlarm Page
`entityUpd,*internalNameEntity*,*arm1*,*arm1ActionName*,*arm2*,*arm2ActionName*,*arm3*,*arm3ActionName*,*arm4*,*arm4ActionName*,*icon*,*iconcolor*,*numpadStatus*,*flashing*` `entityUpd,*internalNameEntity*,*navigation*,*arm1*,*arm1ActionName*,*arm2*,*arm2ActionName*,*arm3*,*arm3ActionName*,*arm4*,*arm4ActionName*,*icon*,*iconcolor*,*numpadStatus*,*flashing*`
## Messages from Nextion Display ## Messages from Nextion Display

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

View File

@@ -267,7 +267,7 @@ class LuiPagesGen(object):
onoffbutton = 1374 onoffbutton = 1374
else: else:
onoffbutton = rgb_dec565([255,255,255]) onoffbutton = rgb_dec565([255,255,255])
command = f"entityUpd,|{item}|{heading}|{icon}|{title}|{author}|{volume}|{iconplaypause}|{source}|{speakerlist[:200]}|{onoffbutton}" command = f"entityUpd,|{heading}||{item}|{icon}|{title}|{author}|{volume}|{iconplaypause}|{source}|{speakerlist[:200]}|{onoffbutton}"
self._send_mqtt_msg(command) self._send_mqtt_msg(command)
def generate_alarm_page(self, item): def generate_alarm_page(self, item):
@@ -326,7 +326,8 @@ class LuiPagesGen(object):
arm_buttons += f",{get_translation(self._locale, b)},{b}" arm_buttons += f",{get_translation(self._locale, b)},{b}"
if len(supported_modes) < 4: if len(supported_modes) < 4:
arm_buttons += ","*((4-len(supported_modes))*2) arm_buttons += ","*((4-len(supported_modes))*2)
command = f"entityUpd,{item}{arm_buttons},{icon},{color},{numpad},{flashing}" navigation = ""
command = f"entityUpd,{item},{navigation}{arm_buttons},{icon},{color},{numpad},{flashing}"
self._send_mqtt_msg(command) self._send_mqtt_msg(command)
def render_page(self, page, send_page_type=True): def render_page(self, page, send_page_type=True):