Fix entity info when calling detailed pages

Solves #1022
This commit is contained in:
Edward Firmo
2023-09-09 02:58:23 +02:00
parent 5ed58d8f24
commit b5bb42c68d
41 changed files with 943 additions and 325 deletions

View File

@@ -44,7 +44,7 @@ Variable (string) lastclick
Text :
Max. Text Size: 100
Variable (string) entity
Variable (string) climate_entity
Attributes
ID : 46
Scope : global
@@ -383,7 +383,6 @@ Text bt_alarm
Touch Release Event
if(api==1)
{
entity.txt=""
page alarm
}
@@ -447,7 +446,7 @@ Hotspot jump_climate
Events
Touch Press Event
if(entity.txt=="")
if(climate_entity.txt=="")
{
lastclick.txt="{\"page\": \"home\", \"component\": \"climate\", \"value\": \"press\"}"
printh 92
@@ -458,11 +457,12 @@ Hotspot jump_climate
printh FF FF FF
}else
{
climate.entity.txt=climate_entity.txt
page climate
}
Touch Release Event
if(entity.txt=="")
if(climate_entity.txt=="")
{
lastclick.txt="{\"page\": \"home\", \"component\": \"climate\", \"value\": \"release\"}"
printh 92