Page alarm Attributes ID : 0 Scope : local Dragging : 0 Send Component ID : disabled Locked : no Swide up page ID : disabled Swide down page ID : disabled Swide left page ID : disabled Swide right page ID: disabled Events Preinitialize Event dim=home.brightness.val if(api==0) { page home }else { alarmsetting.txt="{\"page\": \"alarm\", \"component\": \"currentpage\", \"value\": \"pagechange\", \"entity\": \""+home.entity.txt+"\"}" printh 92 prints "nspanelevent",0 printh 00 prints alarmsetting.txt,0 printh 00 printh FF FF FF } Touch Press Event alarmsetting.txt="{\"page\": \"alarm\", \"component\": \"touchevent\", \"value\": \"press\", \"entity\": \""+home.entity.txt+"\"}" printh 92 prints "touchevent",0 printh 00 prints alarmsetting.txt,0 printh 00 printh FF FF FF Touch Release Event alarmsetting.txt="{\"page\": \"alarm\", \"component\": \"touchevent\", \"value\": \"release\", \"entity\": \""+home.entity.txt+"\"}" printh 92 prints "touchevent",0 printh 00 prints alarmsetting.txt,0 printh 00 printh FF FF FF Page Exit Event home.entity.txt="" Variable (string) alarmsetting Attributes ID : 7 Scope : local Text : Max. Text Size: 255 Variable (string) back_page Attributes ID : 8 Scope : local Text : home Max. Text Size: 15 Variable (string) va0 Attributes ID : 9 Scope : local Text : Max. Text Size: 10 Text page_label Attributes ID : 1 Scope : local Dragging : 0 Send Component ID : disabled Associated Keyboard: none Text : Alarm Control Panel Max. Text Size : 25 Text icon_state Attributes ID : 6 Scope : local Dragging : 0 Send Component ID : disabled Associated Keyboard: none Text :  Max. Text Size : 10 Text bt_home_text Attributes ID : 14 Scope : local Dragging : 0 Send Component ID : disabled Associated Keyboard: none Text : Home Max. Text Size : 10 Text bt_home_bri Attributes ID : 15 Scope : local Dragging : 0 Send Component ID : disabled Associated Keyboard: none Text : 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 Attributes ID : 19 Scope : local Dragging : 0 Send Component ID : disabled Associated Keyboard: none Text : Away Max. Text Size : 10 Text bt_away_bri Attributes ID : 20 Scope : local Dragging : 0 Send Component ID : disabled Associated Keyboard: none Text : 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 Attributes ID : 24 Scope : local Dragging : 0 Send Component ID : disabled Associated Keyboard: none Text : Night Max. Text Size : 10 Text bt_night_bri Attributes ID : 25 Scope : local Dragging : 0 Send Component ID : disabled Associated Keyboard: none Text : Max. Text Size : 4 Text bt_night_icon Attributes ID : 26 Scope : local Dragging : 0 Send Component ID : disabled Associated Keyboard: none Text :  Max. Text Size : 10 Picture alarm_exit Attributes ID : 4 Scope : local Dragging : 0 Send Component ID: disabled Picture bt_home_pic Attributes ID : 13 Scope : local Dragging : 0 Send Component ID: disabled Picture bt_away_pic Attributes ID : 18 Scope : local Dragging : 0 Send Component ID: disabled Picture bt_night_pic Attributes ID : 23 Scope : local Dragging : 0 Send Component ID: disabled Dual-state Button bt_disarm Attributes ID : 10 Scope : local Dragging : 0 Send Component ID: disabled State : unpressed Text : Disarm Max. Text Size : 10 Dual-state Button bt_vacations Attributes ID : 11 Scope : local Dragging : 0 Send Component ID: disabled State : unpressed Text : Vacations Max. Text Size : 10 Dual-state Button bt_bypass Attributes ID : 12 Scope : local Dragging : 0 Send Component ID: disabled State : unpressed Text : Bypass Max. Text Size : 10 Hotspot alarm_back Attributes ID : 5 Scope : local Dragging : 0 Send Component ID: disabled Events Touch Press Event if(back_page.txt=="buttonpage01") { page buttonpage01 }else if(back_page.txt=="buttonpage02") { page buttonpage02 }else if(back_page.txt=="buttonpage03") { page buttonpage03 }else if(back_page.txt=="buttonpage04") { page buttonpage04 }else { page home } Hotspot bt_home Attributes ID : 17 Scope : local Dragging : 0 Send Component ID: on press and release 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 printh 92 prints "nspanelevent",0 printh 00 prints "{\"page\": \"alarm\", \"component\": \"button_home\", \"value\": \"release\"}",0 printh 00 printh FF FF FF Hotspot bt_away Attributes ID : 22 Scope : local Dragging : 0 Send Component ID: on press and release 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 printh 92 prints "nspanelevent",0 printh 00 prints "{\"page\": \"alarm\", \"component\": \"button_away\", \"value\": \"release\"}",0 printh 00 printh FF FF FF Hotspot bt_night Attributes ID : 27 Scope : local Dragging : 0 Send Component ID: on press and release Events Touch Press Event printh 92 prints "nspanelevent",0 printh 00 prints "{\"page\": \"alarm\", \"component\": \"button_night\", \"value\": \"press\"}",0 printh 00 printh FF FF FF Touch Release Event printh 92 prints "nspanelevent",0 printh 00 prints "{\"page\": \"alarm\", \"component\": \"button_night\", \"value\": \"release\"}",0 printh 00 printh FF FF FF Timer swipestore Attributes ID : 3 Scope : local Period (ms): 50 Enabled : no Events Timer Event swipex=tch0 swipey=tch1 TouchCap swipe Attributes ID : 2 Scope: local Value: 0 Events Touch Press Event swipestore.en=1 // Start swipestore timer Touch Release Event swipestore.en=0 // Touch has ended, x if(tch0==0) { swipec=swipex-tch2 // From Left to Right if(swipec>swipedx) { //page } // Right to Left swipec2=0-swipedx if(swipec100) { //page } // Down to Up swipec2=0-swipedy if(swipec<-100) { //page } }