mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-23 07:54:25 +01:00
add loc para
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
BIN
HMI/nspanel.HMI
BIN
HMI/nspanel.HMI
Binary file not shown.
BIN
HMI/nspanel.tft
BIN
HMI/nspanel.tft
Binary file not shown.
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user