Fix alarm not changing status
Do not clear `entity_id` when opening keyboard page, so the info can be used when sending commands. Solves #1039
This commit is contained in:
@@ -1245,7 +1245,7 @@ text_sensor:
|
|||||||
on_value:
|
on_value:
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
if (x != "climate" and x != "cover" and x != "fan" and x != "light" and x != "media_player" ) id(entity_id) = "";
|
if (x != "climate" and x != "cover" and x != "fan" and x != "light" and x != "media_player" and x != "confirm" and x != "keyb_num" ) id(entity_id) = "";
|
||||||
ESP_LOGD("text_sensor.current_page", "New page: %s", x.c_str());
|
ESP_LOGD("text_sensor.current_page", "New page: %s", x.c_str());
|
||||||
if (!id(entity_id).empty()) ESP_LOGD("text_sensor.current_page", "Entity shown: %s", id(entity_id).c_str());
|
if (!id(entity_id).empty()) ESP_LOGD("text_sensor.current_page", "Entity shown: %s", id(entity_id).c_str());
|
||||||
id(timer_reset_all).execute(x.c_str());
|
id(timer_reset_all).execute(x.c_str());
|
||||||
|
|||||||
BIN
nspanel_eu.HMI
BIN
nspanel_eu.HMI
Binary file not shown.
BIN
nspanel_eu.tft
BIN
nspanel_eu.tft
Binary file not shown.
@@ -52,30 +52,23 @@ Variable (string) key
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Variable (string) entity
|
|
||||||
Attributes
|
|
||||||
ID : 20
|
|
||||||
Scope : local
|
|
||||||
Text :
|
|
||||||
Max. Text Size: 100
|
|
||||||
|
|
||||||
Variable (string) domain
|
Variable (string) domain
|
||||||
Attributes
|
Attributes
|
||||||
ID : 21
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Text : alarm
|
Text : alarm
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Variable (string) aux
|
Variable (string) aux
|
||||||
Attributes
|
Attributes
|
||||||
ID : 22
|
ID : 21
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 255
|
Max. Text Size: 255
|
||||||
|
|
||||||
Variable (string) value
|
Variable (string) value
|
||||||
Attributes
|
Attributes
|
||||||
ID : 23
|
ID : 22
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
@@ -345,7 +338,7 @@ Button benter
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
aux.txt="{\"page\": \"keyb_num\", \"key\": \""+key.txt+"\", \"value\": \""+value.txt+"\", \"entity\": \""+entity.txt+"\", \"pin\": \""+pin.txt+"\", \"base_domain\": \""+domain.txt+"\"}"
|
aux.txt="{\"page\": \"keyb_num\", \"key\": \""+key.txt+"\", \"value\": \""+value.txt+"\", \"pin\": \""+pin.txt+"\", \"base_domain\": \""+domain.txt+"\"}"
|
||||||
printh 92
|
printh 92
|
||||||
prints "localevent",0
|
prints "localevent",0
|
||||||
printh 00
|
printh 00
|
||||||
@@ -375,7 +368,7 @@ Button bview
|
|||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 24
|
ID : 23
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|||||||
BIN
nspanel_us.HMI
BIN
nspanel_us.HMI
Binary file not shown.
BIN
nspanel_us.tft
BIN
nspanel_us.tft
Binary file not shown.
@@ -52,30 +52,23 @@ Variable (string) key
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Variable (string) entity
|
|
||||||
Attributes
|
|
||||||
ID : 20
|
|
||||||
Scope : local
|
|
||||||
Text :
|
|
||||||
Max. Text Size: 100
|
|
||||||
|
|
||||||
Variable (string) domain
|
Variable (string) domain
|
||||||
Attributes
|
Attributes
|
||||||
ID : 21
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Text : alarm
|
Text : alarm
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Variable (string) aux
|
Variable (string) aux
|
||||||
Attributes
|
Attributes
|
||||||
ID : 22
|
ID : 21
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 255
|
Max. Text Size: 255
|
||||||
|
|
||||||
Variable (string) value
|
Variable (string) value
|
||||||
Attributes
|
Attributes
|
||||||
ID : 23
|
ID : 22
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
@@ -345,7 +338,7 @@ Button benter
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
aux.txt="{\"page\": \"keyb_num\", \"key\": \""+key.txt+"\", \"value\": \""+value.txt+"\", \"entity\": \""+entity.txt+"\", \"pin\": \""+pin.txt+"\", \"base_domain\": \""+domain.txt+"\"}"
|
aux.txt="{\"page\": \"keyb_num\", \"key\": \""+key.txt+"\", \"value\": \""+value.txt+"\", \"pin\": \""+pin.txt+"\", \"base_domain\": \""+domain.txt+"\"}"
|
||||||
printh 92
|
printh 92
|
||||||
prints "localevent",0
|
prints "localevent",0
|
||||||
printh 00
|
printh 00
|
||||||
@@ -375,7 +368,7 @@ Button bview
|
|||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 24
|
ID : 23
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -52,30 +52,23 @@ Variable (string) key
|
|||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Variable (string) entity
|
|
||||||
Attributes
|
|
||||||
ID : 20
|
|
||||||
Scope : local
|
|
||||||
Text :
|
|
||||||
Max. Text Size: 100
|
|
||||||
|
|
||||||
Variable (string) domain
|
Variable (string) domain
|
||||||
Attributes
|
Attributes
|
||||||
ID : 21
|
ID : 20
|
||||||
Scope : local
|
Scope : local
|
||||||
Text : alarm
|
Text : alarm
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
|
|
||||||
Variable (string) aux
|
Variable (string) aux
|
||||||
Attributes
|
Attributes
|
||||||
ID : 22
|
ID : 21
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 255
|
Max. Text Size: 255
|
||||||
|
|
||||||
Variable (string) value
|
Variable (string) value
|
||||||
Attributes
|
Attributes
|
||||||
ID : 23
|
ID : 22
|
||||||
Scope : local
|
Scope : local
|
||||||
Text :
|
Text :
|
||||||
Max. Text Size: 10
|
Max. Text Size: 10
|
||||||
@@ -345,7 +338,7 @@ Button benter
|
|||||||
|
|
||||||
Events
|
Events
|
||||||
Touch Release Event
|
Touch Release Event
|
||||||
aux.txt="{\"page\": \"keyb_num\", \"key\": \""+key.txt+"\", \"value\": \""+value.txt+"\", \"entity\": \""+entity.txt+"\", \"pin\": \""+pin.txt+"\", \"base_domain\": \""+domain.txt+"\"}"
|
aux.txt="{\"page\": \"keyb_num\", \"key\": \""+key.txt+"\", \"value\": \""+value.txt+"\", \"pin\": \""+pin.txt+"\", \"base_domain\": \""+domain.txt+"\"}"
|
||||||
printh 92
|
printh 92
|
||||||
prints "localevent",0
|
prints "localevent",0
|
||||||
printh 00
|
printh 00
|
||||||
@@ -375,7 +368,7 @@ Button bview
|
|||||||
|
|
||||||
Timer wakeup_timer
|
Timer wakeup_timer
|
||||||
Attributes
|
Attributes
|
||||||
ID : 24
|
ID : 23
|
||||||
Scope : local
|
Scope : local
|
||||||
Period (ms): 100
|
Period (ms): 100
|
||||||
Enabled : yes
|
Enabled : yes
|
||||||
|
|||||||
Reference in New Issue
Block a user