{{#Name=Multi Feature}} {{#Description=Displays features from multiple devices}} {{#Version=1.0}} {{#Author=HomeSeer}} {{dbs=dashboards_ref}} {{widget_id=queries['widget_id']}} {{if widget_id==null}} {{widget_id=var1}} {{end}} {{w=widget_by_id widget_id}} {{id_unique=string.replace w.id '-' ''}} {{# check if this is the first time this card has been run. If not items have been saved, its the first time }} {{if (array.size (get_saved_values w.id))==0 first_run=true else first_run=false end}} {{#get all the reference ID's used on this card}} {{ values=get_saved_values widget_id }} {{refs=''}} {{for key in values if key.key | string.starts_with 'save_feature' refs=refs | string.append key.value | string.append ',' end end}}