                                 {{ range $key, $sm := $device.SwitchModes }}
                                                {{ if eq $key $device.DeviceProfile.AngleSnapping }}
                                                <option value="{{ $key }}" selected>{{ $sm }}</option>
                                                {{ else }}
                                                <option value="{{ $key }}">{{ $sm }}</option>
                                                {{ end }}
                   