{#each switches as s}
{s.on ? 'on' : 'off'}
{/each}
on: {switches.filter(s => !!s.on).length}