{{includefile 'bootstrap/css/page_common.css'}}
Events
{{includefile 'header.html'}} {{includefile 'navbar.html'}} {{events_local = events}}
Loading...
{{if (array.size events_local)==0}}
{{else}}
{{if (array.size selected_referencing_devices) > 0}}
{{end}}
{{ for dev in (root_devices_by_location) }} {{arr_child_match=null}} {{for ch in dev.features}} {{if (check_device_in_any_event ch.ref)}} {{arr_child_match = array.add arr_child_match ch}} {{end}} {{end}} {{if (check_device_in_any_event dev.ref) || (array.size arr_child_match) > 0}} {{if dev.version < 4}} {{# HS3 devices could have status on the root, so we have to include the root here}} {{if (check_device_in_any_event dev.ref)}}{{disabled=''}}{{else}}{{disabled='disabled'}}{{end}} {{if (check_device_ref_in_filter dev.ref)}}{{sel="selected"}}{{else}}{{sel=''}}{{end}} {{if location1_display_first}}
{{dev.location}}-{{dev.location2}}-{{dev.name}}
{{else}}
{{dev.location2}}-{{dev.location}}-{{dev.name}}
{{end}} {{else}} {{# HS4 devices need the device name}} {{if location1_display_first}}
{{dev.location}}-{{dev.location2}}-{{dev.name}}
{{else}}
{{dev.location2}}-{{dev.location}}-{{dev.name}}
{{end}} {{end}} {{for child in arr_child_match}} {{if (check_device_ref_in_filter child.ref)}}{{sel="selected"}}{{else}}{{sel=''}}{{end}} {{if location1_display_first}}
{{child.location}}-{{child.location2}}-{{dev.name}}-{{child.name}}
{{else}}
{{child.location2}}-{{child.location}}-{{dev.name}}-{{child.name}}
{{end}} {{end}} {{end}} {{end}}
Referencing Device(s)
{{ for group in events_local }} {{if (check_group_in_filter group.id)}}{{sel="selected"}}{{else}}{{sel=''}}{{end}}
{{group.name}}
{{end}}
Group Filter
Save
Reset
{{hs_checkbox_setting 'gEventlistDetail' 'Show Triggers'}}
{{filter_group=false}} {{if (array.size selected_group_filter) > 0}}{{filter_group=true}}{{end}} {{ for group in events_local }} {{if (filter_group==false) || ((filter_group==true) && (check_group_in_filter group.id))}} {{if (check_device_referenced_in_group group.id)}}
{{ex='false'}} {{sh=''}} {{if queries['grpref']==group.id}} {{ex='true'}} {{sh='show'}} {{end}}
{{if !(event_group_configured group.id)}}
{{end}} {{ group.name }}
{{~ for ev in group.events ~}} {{if (check_device_referenced_in_event ev.ev_ref)}}
{{if !(event_configured_cache ev.ev_ref)}}
{{end}}{{ev.name}}
{{format_date ev.last__trigger__time}} {{if event_enabled ev.ev_ref}}
{{else}}
{{end}}
{{if (get_setting_bool 'gEventlistDetail')=='checked'}} {{trig_group=0}} {{trig_group_count=(ev_trig_group_count ev.ev_ref)}} {{for trig_group in 0..(trig_group_count-1)}} {{index=0}}
{{for trigger in (event_triggers ev.ev_ref)}} {{if trigger.trigger_group_id==trig_group}} {{if index==0}}
{{if trig_group==0}}WHEN{{else}}OR WHEN{{end}}
{{else}} AND IF {{end}} {{event_trigger_format ev.ev_ref index trig_group}} {{index=index+1}} {{end}} {{end}}
{{end}} {{end}}
{{end}} {{~ end ~}}
{{end}} {{end}} {{end}}
{{end}}
New Group
×
Group Name
New Event
×
Event Name
Rename Group
×
New Group Name
{{includefile 'bootstrap/js/page_common.js'}}