# Soucis avec le champ select dynamique

**URL:** <https://community.gladysassistant.com/t/soucis-avec-le-champ-select-dynamique/10569>\
**Category:** Configuration\
**Created:** [Août 14, 2026, 9:27 UTC](https://community.gladysassistant.com/t/soucis-avec-le-champ-select-dynamique/10569 "2026-08-14T21:27:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![spenceur](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/spenceur/32/1961_2.png) [@spenceur](https://community.gladysassistant.com/u/spenceur)\
**Post date:** [Août 14, 2026, 9:27 UTC](https://community.gladysassistant.com/t/soucis-avec-le-champ-select-dynamique/10569/1 "2026-08-14T21:27:45Z")

</div>

Il semblerait que le SDK n’a pas suivis sur l’enregistrement des données 😃

```auto
GladysApiError: devices[0].features[13].supported_options: "[0].value" must be a number, "[1].value" must be a number, "[2].value" must be a number, "[3].value" must be a number, "[4].value" must be a number, "[5].value" must be a number, "[6].value" must be a number, "[7].value" must be a number, "[8].value" must be a number, "[9].value" must be a number, "[10].value" must be a number, "[11].value" must be a number, "[12].value" must be a number, "[13].value" must be a number, "[14].value" must be a number, "[15].value" must be a number, "[16].value" must be a number, "[17].value" must be a number, "[18].value" must be a number, "[19].value" must be a number, "[20].value" must be a number, "[21].value" must be a number, "[22].value" must be a number, "[23].value" must be a number, "[24].value" must be a number
    at HttpClient.request (/app/node_modules/@gladysassistant/integration-sdk/lib/http-client.js:49:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async startTelevisionSubscriptions (file:///app/src/devices/television.js:282:7)
    at async connectTv (file:///app/index.js:103:23)
    at async GladysIntegration.<anonymous> (file:///app/index.js:210:5) {
  status: 400,
  code: 'BAD_REQUEST'
}

```

mon container utilise bien la derniere :  
`node -p "require('/app/node_modules/@gladysassistant/integration-sdk/package.json').version" 0.12.0`

Issue créé sur le repo du SDK

> <https://github.com/GladysAssistant/integration-sdk-js/issues/29>
>
> \## Description
> 
> Since Gladys now supports \`text/select\` features with string-val…ued \`supported\_options\`, an external integration should be able to register a feature such as:
> 
> {
> category: 'text',
> type: 'select',
> read\_only: false,
> supported\_options: \[
> {
> value: 'netflix',
> label: 'Netflix',
> },
> {
> value: 'youtube.leanback.v4',
> label: 'YouTube',
> },
> \],
> }
> 
> However, when publishing the device through the Integration SDK, the request is rejected because \`supported\_options\[\].value\` is still expected to be a number.
> 
> \## Error
> 
> GladysApiError: devices\[0\].features\[13\].supported\_options:
> "\[0\].value" must be a number,
> "\[1\].value" must be a number,
> ...
> at HttpClient.request (/app/node\_modules/@gladysassistant/integration-sdk/lib/http-client.js:49:13)
> at process.processTicksAndRejections (node:internal/process/task\_queues:104:5)
> at async startTelevisionSubscriptions (file:///app/src/devices/television.js:282:7)
> 
> \## Context
> 
> I'm using this for an LG webOS integration where installed applications are dynamically exposed as a \`text/select\` feature.
> 
> Example of generated options:
> 
> supported\_options: \[
> { value: 'com.webos.app.livetv', label: 'Live TV' },
> { value: 'netflix', label: 'Netflix' },
> { value: 'com.disney.disneyplus-prod', label: 'Disney+' },
> { value: 'amazon', label: 'Prime Video' },
> { value: 'youtube.leanback.v4', label: 'YouTube' },
> { value: 'cdp-30', label: 'Plex' },
> \]
> 
> The options are correctly generated by the integration, but device publication fails because their values are strings.
> 
> \## Environment
> 
> @gladysassistant/integration-sdk 0.12.0
> 
> \## Expected behavior
> 
> For a feature with:
> 
> category: 'text'
> type: 'select'
> 
> \`supported\_options\[\].value\` should accept string values, consistently with the new string-valued \`supported\_options\` support in Gladys.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Août 15, 2026, 6:00 UTC](https://community.gladysassistant.com/t/soucis-avec-le-champ-select-dynamique/10569/2 "2026-08-15T06:00:24Z")

</div>

Merci du retour ! J’ai mis Fable dessus 😊

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Août 15, 2026, 6:21 UTC](https://community.gladysassistant.com/t/soucis-avec-le-champ-select-dynamique/10569/3 "2026-08-15T06:21:50Z")

</div>

C’est corrigé, c’était un bug core. Gladys Assistant 4.86.1 en cours de build 🙂

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Août 15, 2026, 6:30 UTC](https://community.gladysassistant.com/t/soucis-avec-le-champ-select-dynamique/10569/4 "2026-08-15T06:30:55Z")

</div>

C’est live

---

<div class="post-metadata">

**Author:** ![spenceur](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/spenceur/32/1961_2.png) [@spenceur](https://community.gladysassistant.com/u/spenceur)\
**Post date:** [Août 15, 2026, 6:40 UTC](https://community.gladysassistant.com/t/soucis-avec-le-champ-select-dynamique/10569/5 "2026-08-15T06:40:42Z")

</div>

Super merci !

---

<div class="post-metadata">

**Author:** ![spenceur](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/spenceur/32/1961_2.png) [@spenceur](https://community.gladysassistant.com/u/spenceur)\
**Post date:** [Août 15, 2026, 8:10 UTC](https://community.gladysassistant.com/t/soucis-avec-le-champ-select-dynamique/10569/6 "2026-08-15T08:10:53Z")

</div>

Merci pour la réactivité :  
ça fonctionne a merveille.

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/e/a/ea7ec30ef993f99592b729782d4b55e8d59bdc83.png)
