Icons on ESPHome
Move icons from TFT/HMI to ESPHome to prevent error on Nextion2Text.
This commit is contained in:
@@ -21,6 +21,8 @@ Page home
|
||||
prints "{\"page\": \"home\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
vis button06_icon,0
|
||||
vis button06,0
|
||||
|
||||
Variable (int32) brightness
|
||||
Attributes
|
||||
@@ -410,22 +412,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
|
||||
@@ -559,13 +549,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
|
||||
@@ -589,8 +576,15 @@ Hotspot settings_click
|
||||
ID : 52
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
Send Component ID: disabled
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
settings_timer.en=1
|
||||
|
||||
Touch Release Event
|
||||
settings_timer.en=0
|
||||
|
||||
Timer dimtimer
|
||||
Attributes
|
||||
ID : 1
|
||||
@@ -633,6 +627,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
|
||||
@@ -653,13 +658,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
|
||||
}
|
||||
@@ -669,13 +674,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