                                    {{ range $key, $sleepMode := $device.SleepModes }}
                                                {{ if eq $device.DeviceProfile.SleepMode $key }}
                                                <option value="{{ $key }}" selected>{{ $sleepMode }}</option>
                                                {{ else }}
                                                <option value="{{ $key }}">{{ $sleepMode }}</option>
                                                {{ end }}
