add loc para

This commit is contained in:
Johannes
2022-05-14 14:53:58 +02:00
parent 772124db4b
commit 5d5f565ece
4 changed files with 4 additions and 4 deletions

View File

@@ -123,9 +123,9 @@ The following message can be used to update the content on the cardEntities Page
### cardThermo Page ### cardThermo Page
`entityUpd~*heading*~*navigation*~*internalNameEntiy*~*currentTemp*~*destTemp*~*status*~*minTemp*~*maxTemp*~*stepTemp*[[~*iconId*~*activeColor*~*state*~*hvac_action*]]` `entityUpd~*heading*~*navigation*~*internalNameEntiy*~*currentTemp*~*destTemp*~*status*~*minTemp*~*maxTemp*~*stepTemp*[[~*iconId*~*activeColor*~*state*~*hvac_action*]]~tCurTempLbl~tStateLbl~tALbl`
`[[]]` are not part of the command~ this part repeats 9 times for the buttons `[[]]` are not part of the command~ this part repeats 8 times for the buttons
### cardMedia Page ### cardMedia Page

Binary file not shown.

Binary file not shown.

View File

@@ -241,10 +241,10 @@ class LuiPagesGen(object):
icon_res += f"~{icon_id}~{color_on}~{state}~{mode}" icon_res += f"~{icon_id}~{color_on}~{state}~{mode}"
len_hvac_modes = len(hvac_modes) len_hvac_modes = len(hvac_modes)
padding_len = 9-len_hvac_modes padding_len = 8-len_hvac_modes
icon_res = icon_res + "~"*4*padding_len icon_res = icon_res + "~"*4*padding_len
command = f"entityUpd~{heading}~{navigation}~{item}~{current_temp}~{dest_temp}~{status}~{min_temp}~{max_temp}~{step_temp}{icon_res}" command = f"entityUpd~{heading}~{navigation}~{item}~{current_temp}~{dest_temp}~{status}~{min_temp}~{max_temp}~{step_temp}{icon_res}~tCurTempLbl~tStateLbl~tALbl"
self._send_mqtt_msg(command) self._send_mqtt_msg(command)
def generate_media_page(self, navigation, entity): def generate_media_page(self, navigation, entity):