Icons on ESPHome
Move icons from TFT/HMI to ESPHome to prevent error on Nextion2Text.
This commit is contained in:
@@ -21,8 +21,6 @@ Page home
|
||||
prints "{\"page\": \"home\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
vis 255,0
|
||||
vis settings_click,1
|
||||
|
||||
Variable (int32) brightness
|
||||
Attributes
|
||||
@@ -55,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
|
||||
@@ -405,22 +410,10 @@ Hotspot fc_weather
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
lastclick.txt="{\"page\": \"home\", \"component\": \"weather\", \"value\": \"press\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
|
||||
Touch Release Event
|
||||
lastclick.txt="{\"page\": \"home\", \"component\": \"weather\", \"value\": \"release\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
if(api==1)
|
||||
{
|
||||
page weather01
|
||||
}
|
||||
|
||||
Hotspot jump_climate
|
||||
Attributes
|
||||
@@ -431,22 +424,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
|
||||
@@ -542,13 +547,10 @@ Hotspot button06
|
||||
|
||||
Events
|
||||
Touch Release Event
|
||||
lastclick.txt="{\"page\": \"home\", \"component\": \"button06\", \"value\": \"release\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
if(api==1)
|
||||
{
|
||||
page entitypage01
|
||||
}
|
||||
|
||||
Hotspot button07
|
||||
Attributes
|
||||
@@ -572,8 +574,15 @@ Hotspot settings_click
|
||||
ID : 52
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
Send Component ID: on release
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
settings_timer.en=1
|
||||
|
||||
Touch Release Event
|
||||
settings_timer.en=0
|
||||
|
||||
Timer dimtimer
|
||||
Attributes
|
||||
ID : 1
|
||||
@@ -616,6 +625,17 @@ Timer sleeptimer
|
||||
page screensaver
|
||||
}
|
||||
|
||||
Timer settings_timer
|
||||
Attributes
|
||||
ID : 56
|
||||
Scope : local
|
||||
Period (ms): 1000
|
||||
Enabled : no
|
||||
|
||||
Events
|
||||
Timer Event
|
||||
page settings
|
||||
|
||||
TouchCap swipe
|
||||
Attributes
|
||||
ID : 5
|
||||
@@ -636,13 +656,13 @@ TouchCap swipe
|
||||
{
|
||||
swipec=swipex-tch2
|
||||
// From Left to Right
|
||||
if(swipec>swipedx)
|
||||
if(swipec>swipedx&&api==1)
|
||||
{
|
||||
page buttonpage04
|
||||
}
|
||||
// Right to Left
|
||||
swipec2=0-swipedx
|
||||
if(swipec<swipec2)
|
||||
if(swipec<swipec2&&api==1)
|
||||
{
|
||||
page buttonpage01
|
||||
}
|
||||
@@ -652,13 +672,13 @@ TouchCap swipe
|
||||
{
|
||||
swipec=swipey-tch3
|
||||
// From Up to Down
|
||||
if(swipec>100)
|
||||
if(swipec>100&&api==1)
|
||||
{
|
||||
page buttonpage02
|
||||
}
|
||||
// Down to Up
|
||||
swipec2=0-swipedy
|
||||
if(swipec<-100)
|
||||
if(swipec<-100&&api==1)
|
||||
{
|
||||
page buttonpage03
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user