Create Alarm page

This commit is contained in:
Edward Firmo
2023-08-11 00:30:34 +02:00
parent 96b3a375b0
commit eddba39d4a
3 changed files with 195 additions and 86 deletions

View File

@@ -11,8 +11,6 @@ First of all, we wanna say a big thanks to all of you who starred this project i
After a long wait since the latest big release, which we used to leave our desks for a while and enjoy some vacations time with our beloved ones, we are proud to introduce the version 4.0, which adds new screens and makes your panel more flexible and robust. After a long wait since the latest big release, which we used to leave our desks for a while and enjoy some vacations time with our beloved ones, we are proud to introduce the version 4.0, which adds new screens and makes your panel more flexible and robust.
###
   
## Updating ## Updating
Since in this update lots of input to the blueprint changed, we highly recommend you review your settings and make sure all fields have the correct selection. We did our best to support your legacy settings and avoid breaking your system, but please double check your settings if you see something not working as expected. Since in this update lots of input to the blueprint changed, we highly recommend you review your settings and make sure all fields have the correct selection. We did our best to support your legacy settings and avoid breaking your system, but please double check your settings if you see something not working as expected.

Binary file not shown.

View File

@@ -18,37 +18,37 @@ Page alarm
page home page home
}else }else
{ {
alarmsetting.txt="{\"page\": \"alarm\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"entity\": \""+home.entity.txt+"\"}" lastclick.txt="{\"page\": \"alarm\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"entity\": \""+home.entity.txt+"\"}"
printh 92 printh 92
prints "nspanelevent",0 prints "nspanelevent",0
printh 00 printh 00
prints alarmsetting.txt,0 prints lastclick.txt,0
printh 00 printh 00
printh FF FF FF printh FF FF FF
} }
Touch Press Event Touch Press Event
alarmsetting.txt="{\"page\": \"alarm\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+home.entity.txt+"\"}" lastclick.txt="{\"page\": \"alarm\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+home.entity.txt+"\"}"
printh 92 printh 92
prints "touchevent",0 prints "touchevent",0
printh 00 printh 00
prints alarmsetting.txt,0 prints lastclick.txt,0
printh 00 printh 00
printh FF FF FF printh FF FF FF
Touch Release Event Touch Release Event
alarmsetting.txt="{\"page\": \"alarm\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+home.entity.txt+"\"}" lastclick.txt="{\"page\": \"alarm\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+home.entity.txt+"\"}"
printh 92 printh 92
prints "touchevent",0 prints "touchevent",0
printh 00 printh 00
prints alarmsetting.txt,0 prints lastclick.txt,0
printh 00 printh 00
printh FF FF FF printh FF FF FF
Page Exit Event Page Exit Event
home.entity.txt="" home.entity.txt=""
Variable (string) alarmsetting Variable (string) lastclick
Attributes Attributes
ID : 7 ID : 7
Scope : local Scope : local
@@ -91,7 +91,7 @@ Text icon_state
Text bt_home_text Text bt_home_text
Attributes Attributes
ID : 14 ID : 11
Scope : local Scope : local
Dragging : 0 Dragging : 0
Send Component ID : disabled Send Component ID : disabled
@@ -101,7 +101,7 @@ Text bt_home_text
Text bt_home_bri Text bt_home_bri
Attributes Attributes
ID : 15 ID : 12
Scope : local Scope : local
Dragging : 0 Dragging : 0
Send Component ID : disabled Send Component ID : disabled
@@ -109,19 +109,9 @@ Text bt_home_bri
Text : Text :
Max. Text Size : 4 Max. Text Size : 4
Text bt_home_icon
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 10
Text bt_away_text Text bt_away_text
Attributes Attributes
ID : 19 ID : 14
Scope : local Scope : local
Dragging : 0 Dragging : 0
Send Component ID : disabled Send Component ID : disabled
@@ -131,7 +121,7 @@ Text bt_away_text
Text bt_away_bri Text bt_away_bri
Attributes Attributes
ID : 20 ID : 15
Scope : local Scope : local
Dragging : 0 Dragging : 0
Send Component ID : disabled Send Component ID : disabled
@@ -139,19 +129,9 @@ Text bt_away_bri
Text : Text :
Max. Text Size : 4 Max. Text Size : 4
Text bt_away_icon
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : 
Max. Text Size : 10
Text bt_night_text Text bt_night_text
Attributes Attributes
ID : 24 ID : 17
Scope : local Scope : local
Dragging : 0 Dragging : 0
Send Component ID : disabled Send Component ID : disabled
@@ -161,7 +141,7 @@ Text bt_night_text
Text bt_night_bri Text bt_night_bri
Attributes Attributes
ID : 25 ID : 18
Scope : local Scope : local
Dragging : 0 Dragging : 0
Send Component ID : disabled Send Component ID : disabled
@@ -169,14 +149,124 @@ Text bt_night_bri
Text : Text :
Max. Text Size : 4 Max. Text Size : 4
Text bt_night_icon Text bt_vacat_text
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Vacaation
Max. Text Size : 10
Text bt_vacat_bri
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text bt_bypass_text
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : Bypass
Max. Text Size : 10
Text bt_bypass_bri
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text bt_disarm_text
Attributes Attributes
ID : 26 ID : 26
Scope : local Scope : local
Dragging : 0 Dragging : 0
Send Component ID : disabled Send Component ID : disabled
Associated Keyboard: none Associated Keyboard: none
Text : Text : Disarm
Max. Text Size : 10
Text bt_disarm_bri
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 4
Text bt_home_icon
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text bt_away_icon
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text bt_night_icon
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text bt_vacat_icon
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text bt_bypass_icon
Attributes
ID : 32
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10
Text bt_disarm_icon
Attributes
ID : 33
Scope : local
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text :
Max. Text Size : 10 Max. Text Size : 10
Picture alarm_exit Picture alarm_exit
@@ -188,54 +278,45 @@ Picture alarm_exit
Picture bt_home_pic Picture bt_home_pic
Attributes Attributes
ID : 13 ID : 10
Scope : local Scope : local
Dragging : 0 Dragging : 0
Send Component ID: disabled Send Component ID: disabled
Picture bt_away_pic Picture bt_away_pic
Attributes Attributes
ID : 18 ID : 13
Scope : local Scope : local
Dragging : 0 Dragging : 0
Send Component ID: disabled Send Component ID: disabled
Picture bt_night_pic Picture bt_night_pic
Attributes Attributes
ID : 23 ID : 16
Scope : local Scope : local
Dragging : 0 Dragging : 0
Send Component ID: disabled Send Component ID: disabled
Dual-state Button bt_disarm Picture bt_vacat_pic
Attributes Attributes
ID : 10 ID : 19
Scope : local Scope : local
Dragging : 0 Dragging : 0
Send Component ID: disabled Send Component ID: disabled
State : unpressed
Text : Disarm
Max. Text Size : 10
Dual-state Button bt_vacations Picture bt_bypass_pic
Attributes Attributes
ID : 11 ID : 22
Scope : local Scope : local
Dragging : 0 Dragging : 0
Send Component ID: disabled Send Component ID: disabled
State : unpressed
Text : Vacations
Max. Text Size : 10
Dual-state Button bt_bypass Picture bt_disarm_pic
Attributes Attributes
ID : 12 ID : 25
Scope : local Scope : local
Dragging : 0 Dragging : 0
Send Component ID: disabled Send Component ID: disabled
State : unpressed
Text : Bypass
Max. Text Size : 10
Hotspot alarm_back Hotspot alarm_back
Attributes Attributes
@@ -265,73 +346,103 @@ Hotspot alarm_back
Hotspot bt_home Hotspot bt_home
Attributes Attributes
ID : 17 ID : 34
Scope : local Scope : local
Dragging : 0 Dragging : 0
Send Component ID: on press and release Send Component ID: disabled
Events Events
Touch Press Event
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"alarm\", \"component\": \"button_home\", \"value\": \"press\"}",0
printh 00
printh FF FF FF
Touch Release Event Touch Release Event
lastclick.txt="{\"domain\": \"alarm\", \"key\": \"home\", \"value\": \"click\", \"entity\": \""+home.entity.txt+"\"}"
printh 92 printh 92
prints "nspanelevent",0 prints "localevent",0
printh 00 printh 00
prints "{\"page\": \"alarm\", \"component\": \"button_home\", \"value\": \"release\"}",0 prints lastclick.txt,0
printh 00 printh 00
printh FF FF FF printh FF FF FF
Hotspot bt_away Hotspot bt_away
Attributes Attributes
ID : 22 ID : 35
Scope : local Scope : local
Dragging : 0 Dragging : 0
Send Component ID: on press and release Send Component ID: disabled
Events Events
Touch Press Event
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"alarm\", \"component\": \"button_away\", \"value\": \"press\"}",0
printh 00
printh FF FF FF
Touch Release Event Touch Release Event
lastclick.txt="{\"domain\": \"alarm\", \"key\": \"away\", \"value\": \"click\", \"entity\": \""+home.entity.txt+"\"}"
printh 92 printh 92
prints "nspanelevent",0 prints "localevent",0
printh 00 printh 00
prints "{\"page\": \"alarm\", \"component\": \"button_away\", \"value\": \"release\"}",0 prints lastclick.txt,0
printh 00 printh 00
printh FF FF FF printh FF FF FF
Hotspot bt_night Hotspot bt_night
Attributes Attributes
ID : 27 ID : 36
Scope : local Scope : local
Dragging : 0 Dragging : 0
Send Component ID: on press and release Send Component ID: disabled
Events Events
Touch Press Event Touch Release Event
lastclick.txt="{\"domain\": \"alarm\", \"key\": \"night\", \"value\": \"click\", \"entity\": \""+home.entity.txt+"\"}"
printh 92 printh 92
prints "nspanelevent",0 prints "localevent",0
printh 00 printh 00
prints "{\"page\": \"alarm\", \"component\": \"button_night\", \"value\": \"press\"}",0 prints lastclick.txt,0
printh 00 printh 00
printh FF FF FF printh FF FF FF
Hotspot bt_vacat
Attributes
ID : 37
Scope : local
Dragging : 0
Send Component ID: disabled
Events
Touch Release Event Touch Release Event
lastclick.txt="{\"domain\": \"alarm\", \"key\": \"vacation\", \"value\": \"click\", \"entity\": \""+home.entity.txt+"\"}"
printh 92 printh 92
prints "nspanelevent",0 prints "localevent",0
printh 00 printh 00
prints "{\"page\": \"alarm\", \"component\": \"button_night\", \"value\": \"release\"}",0 prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot bt_bypass
Attributes
ID : 38
Scope : local
Dragging : 0
Send Component ID: disabled
Events
Touch Release Event
lastclick.txt="{\"domain\": \"alarm\", \"key\": \"bypass\", \"value\": \"click\", \"entity\": \""+home.entity.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot bt_disarm
Attributes
ID : 39
Scope : local
Dragging : 0
Send Component ID: disabled
Events
Touch Release Event
lastclick.txt="{\"domain\": \"alarm\", \"key\": \"disarm\", \"value\": \"click\", \"entity\": \""+home.entity.txt+"\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00 printh 00
printh FF FF FF printh FF FF FF