{device.name}

{$_("device_card.battery")}
{#if device.info.hasBattery} {device.batteryLevel}% {/if}
{#each device.info.messageAttributes.ScalarCmd as scalarCmd}
onChange(scalarCmd.Index, val)} max={scalarCmd.StepCount} step={1} />
{/each}