add breaking changes to thermo page

This commit is contained in:
joBr99
2022-03-05 18:55:58 +01:00
parent d0a0f8a7cf
commit 1549849c86
4 changed files with 3 additions and 3 deletions

View File

@@ -87,7 +87,7 @@ entityUpdateDetail,1,77
### cardThermo Page
entityUpd,*name*,*currentTemp*,*destTemp*,*status*,*minTemp*,*maxTemp*,*stepTemp*
entityUpd,*internalNameEntiy*,*heading*,*currentTemp*,*destTemp*,*status*,*minTemp*,*maxTemp*,*stepTemp*
## Messages from Nextion Display

Binary file not shown.

Binary file not shown.

View File

@@ -160,7 +160,7 @@ class NsPanelLovelanceUI:
name = entity.attributes.friendly_name
if item_type == "cover":
return "entityUpd,{0},{1},{2},{3},{4}".format(item_nr, "shutter", item, 0, name) # TODO: shutter should be renamed to cover in the nextion project
return "entityUpd,{0},{1},{2},{3},{4}".format(item_nr, "shutter", item, 0, name)
if item_type == "light":
switch_val = 1 if entity.state == "on" else 0
@@ -192,7 +192,7 @@ class NsPanelLovelanceUI:
max_temp = entity.attributes.max_temp*10
step_temp = 0.5*10
return "entityUpd,{0},{1},{2},{3},{4},{5},{6}".format(heading, current_temp, dest_temp, status, min_temp, max_temp, step_temp)
return "entityUpd,{0},{1},{2},{3},{4},{5},{6},{7}".format(item, heading, current_temp, dest_temp, status, min_temp, max_temp, step_temp)
def generate_page(self, page_number, page_type):