Move entity variable to home page (#889)

* Move `entity` variable to home page

This will enable future development of a fallback climate

* Move `entity` variable to home page

* Move `entity` variable to home page

* Move `entity` variable to home page

* Move `entity` variable to home page
This commit is contained in:
Edward Firmo
2023-06-23 01:26:35 +02:00
committed by GitHub
parent c211d3f435
commit 2f44dd1d7c
11 changed files with 95 additions and 74 deletions

View File

@@ -53,6 +53,13 @@ Variable (string) lastclick
Text :
Max. Text Size: 100
Variable (string) entity
Attributes
ID : 55
Scope : global
Text :
Max. Text Size: 100
Text time
Attributes
ID : 7
@@ -429,22 +436,34 @@ Hotspot jump_climate
Events
Touch Press Event
lastclick.txt="{\"page\": \"home\", \"component\": \"climate\", \"value\": \"press\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
if(entity.txt=="")
{
lastclick.txt="{\"page\": \"home\", \"component\": \"climate\", \"value\": \"press\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}else
{
page climate
}
Touch Release Event
lastclick.txt="{\"page\": \"home\", \"component\": \"climate\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
if(entity.txt=="")
{
lastclick.txt="{\"page\": \"home\", \"component\": \"climate\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
}else
{
page climate
}
Hotspot button01
Attributes