I think have this working close to as it should if anyone can possibly help in fine tuning it. I think I need to something with start and end on the repeat? The last row is showing 6 lights when should only the 2 remaining.
The goal here was to loop all items in my Lights group, And maybe this can be done better/cleaner as seems I still need to create each ‘row’ separately.
But here is what it looks like currently.
And the code
<table style="width: 100%;">
<tr>
<td colspan=10 style="padding: 0px; padding-top: 10px;"><h3 style="color: #ffaa00; line-height: .1em;">Lighting Control</h3></td>
</tr>
<tr>
<td>
<div ng-repeat="item in itemsInGroup('Lights') track by $index" ng-if="$index % 6 == 0" class="row">
<div class="col-xs-2">
<table style="width: 100%;">
<tr>
<td style="padding: 0px; padding-top: 10px;">
<div ng-init="model0={'name': itemsInGroup('Lights')[$index].label, 'item': itemsInGroup('Lights')[$index].name, 'hidelabel': false, 'hideonoff': true, 'iconset': 'smarthome-set','icon': 'bulb','icon_size': '62' } ">
<widget-switch ng-model="model0" />
</div>
</td>
</tr>
</table>
</div>
<div class="col-xs-2">
<table style="width: 100%;">
<tr>
<td style="padding: 0px; padding-top: 10px;">
<div ng-init="model1={'name': itemsInGroup('Lights')[$index+1].label, 'item': itemsInGroup('Lights')[$index+1].name, 'hidelabel': false, 'hideonoff': true, 'iconset': 'smarthome-set','icon': 'bulb','icon_size': '62' } ">
<widget-switch ng-model="model1" />
</div>
</td>
</tr>
</table>
</div>
<div class="col-xs-2">
<table style="width: 100%;">
<tr>
<td style="padding: 0px; padding-top: 10px;">
<div ng-init="model2={'name': itemsInGroup('Lights')[$index+2].label, 'item': itemsInGroup('Lights')[$index+2].name, 'hidelabel': false, 'hideonoff': true, 'iconset': 'smarthome-set','icon': 'bulb','icon_size': '62' } ">
<widget-switch ng-model="model2" />
</div>
</td>
</tr>
</table>
</div>
<div class="col-xs-2">
<table style="width: 100%;">
<tr>
<td style="padding: 0px; padding-top: 10px;">
<div ng-init="model3={'name': itemsInGroup('Lights')[$index+3].label, 'item': itemsInGroup('Lights')[$index+3].name, 'hidelabel': false, 'hideonoff': true, 'iconset': 'smarthome-set','icon': 'bulb','icon_size': '62' } ">
<widget-switch ng-model="model3" />
</div>
</td>
</tr>
</table>
</div>
<div class="col-xs-2">
<table style="width: 100%;">
<tr>
<td style="padding: 0px; padding-top: 10px;">
<div ng-init="model4={'name': itemsInGroup('Lights')[$index+4].label, 'item': itemsInGroup('Lights')[$index+4].name, 'hidelabel': false, 'hideonoff': true, 'iconset': 'smarthome-set','icon': 'bulb','icon_size': '62' } ">
<widget-switch ng-model="model4" />
</div>
</td>
</tr>
</table>
</div>
<div class="col-xs-2">
<table style="width: 100%;">
<tr>
<td style="padding: 0px; padding-top: 10px;">
<div ng-init="model5={'name': itemsInGroup('Lights')[$index+5].label, 'item': itemsInGroup('Lights')[$index+5].name, 'hidelabel': false, 'hideonoff': true, 'iconset': 'smarthome-set','icon': 'bulb','icon_size': '62' } ">
<widget-switch ng-model="model5" />
</div>
</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>