two temp mode

This commit is contained in:
Johannes
2022-05-14 17:34:01 +02:00
parent 0a1374a63a
commit 35f6302fec
5 changed files with 3 additions and 2 deletions

View File

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

BIN
HMI/US/portrait/nspanel.tft Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -243,8 +243,9 @@ class LuiPagesGen(object):
len_hvac_modes = len(hvac_modes)
padding_len = 8-len_hvac_modes
icon_res = icon_res + "~"*4*padding_len
temperature_unit = get_icon_id("temperature-celsius")
command = f"entityUpd~{heading}~{navigation}~{item}~{current_temp}~{dest_temp}~{status}~{min_temp}~{max_temp}~{step_temp}{icon_res}~Currently~State~Action"
command = f"entityUpd~{heading}~{navigation}~{item}~{current_temp}~{dest_temp}~{status}~{min_temp}~{max_temp}~{step_temp}{icon_res}~Currently~State~Action~{temperature_unit}"
self._send_mqtt_msg(command)
def generate_media_page(self, navigation, entity):