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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user