# Heating mode selection flashing on Android

**URL:** <https://community.gladysassistant.com/t/clignotement-selection-mode-chauffage-sur-android/11655>\
**Category:** Configuration\
**Created:** [November 22, 2026, 5:41pm UTC](https://community.gladysassistant.com/t/clignotement-selection-mode-chauffage-sur-android/11655 "2026-11-22T17:41:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaetanb76](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gaetanb76/32/5911_2.png) [@gaetanb76](https://community.gladysassistant.com/u/gaetanb76)\
**Post date:** [November 22, 2026, 5:41pm UTC](https://community.gladysassistant.com/t/clignotement-selection-mode-chauffage-sur-android/11655/1 "2026-11-22T17:41:59Z")

</div>

I’m having an issue with the “Mode” heating device.

When I put it on the dashboard and try to change the heating mode, it starts flashing, like in the video. This crashes the Gladys interface. I have to close and reopen it.

I don’t know if it’s coming from the device or from my scenes that use this z-wave module.

Has anyone else had the same problem?

---

<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:** [November 23, 2026, 8:37am UTC](https://community.gladysassistant.com/t/clignotement-selection-mode-chauffage-sur-android/11655/2 "2026-11-23T08:37:29Z")

</div>

Hi @gaetanb76,

Thanks for the feedback and the video, it helps a lot! 🙏

From what I’ve seen, the issue doesn’t come from your Z-Wave module or your scenes, but from the Gladys interface. Every time a device reports a state, the widget re-renders, and on Android this causes the mode selection menu to close and reopen, hence the flickering. Your scenes and your module just make these updates more frequent, which makes the bug more visible.

I’ve opened a GitHub issue to track it:

> <https://github.com/GladysAssistant/Gladys/issues/3438>
>
> Forum: https://community.gladysassistant.com/t/clignotement-selection-mode-chauf…fage-sur-android/11655
> 
> \### Describe the bug
> 
> On Android, a "Devices" box showing a heater \*\*pilot wire mode\*\* feature (\`heater\` / \`pilot-wire-mode\`) renders a native \`\<select\>\` (Off / Frost protection / Eco / Comfort -2 °C / Comfort -1 °C / Comfort). When the user taps it, the native picker keeps closing and reopening in a loop: it flickers (the video in the forum topic shows two copies of the picker at once, one of them fading in again) and no option can be picked. The user has to close and reopen Gladys.
> 
> The user's setup: a Z-Wave pilot wire module, plus scenes that write the mode into a text feature shown in the same box ("Chauffage Cuisine Mode").
> 
> \### Likely cause (from reading the code, not reproduced on a device yet)
> 
> Two things add up:
> 
> 1. \*\*\`DevicesBox\` re-renders on every device event, even for features it does not show.\*\* \`updateDeviceStateWebsocket\` and \`updateDeviceTextWebsocket\` (\`front/src/components/boxs/device-in-room/DevicesBox.jsx\`) call \`setState\` with a new array (\`deviceFeatures.map(...)\`) for every \`device.new-state\` / \`device.new-string-state\` message, whatever the feature. With Z-Wave devices reporting often and scenes writing text states, every Devices box on the dashboard re-renders continuously.
> 2. \*\*Each render writes \`select.value\` again.\*\* The widget passes \`value={props.deviceFeature.last\_value}\`, a number (\`PILOT\_WIRE\_MODE.COMFORT === 5\`), while \`dom.value\` is the string \`"5"\`. Preact compares \`5 !== "5"\`, sees a difference, and sets \`select.value\` on every render. As far as we know, Chrome on Android hides and re-shows the native picker of an open \`\<select\>\` when its value or options are updated from script. This Chromium behavior hasn't been checked on a device, but it matches the video.
> 
> The same \`value={last\_value}\` pattern exists in:
> \- \`PilotWireModeDeviceFeature.jsx\`
> \- \`FanModeDeviceFeature.jsx\`
> \- \`FanLabeledSelectDeviceFeature.jsx\`
> \- \`VacuumCleanerModeDeviceFeature.jsx\`
> \- \`VacuumCleanerCleanModeDeviceFeature.jsx\`
> 
> (all in \`front/src/components/boxs/device-in-room/device-features/\`)
> 
> The scenes and the Z-Wave module are not the cause: they only make the device events more frequent, so the picker resets more often.
> 
> \### To reproduce
> 
> 1. On a dashboard, add a "Devices" box with a pilot wire mode feature.
> 2. Have other devices sending states frequently (any sensor, or a scene writing a text feature every few seconds).
> 3. Open the dashboard in Chrome on Android (or the PWA) and tap the mode select.
> 4. The picker flickers (closes and reopens) and cannot be used.
> 
> \### Expected behavior
> 
> The picker stays open until the user picks an option or dismisses it, whatever device events arrive meanwhile.
> 
> \### Suggested fix
> 
> \- In \`DevicesBox\`, skip the \`setState\` when the event's feature is not one of the box's features. This avoids re-rendering every box on each event, which also helps performance.
> \- In the select-based widgets above, pass the value as a string (\`value={last\_value === null ? '' : String(last\_value)}\` or similar), so that a render that does not change the value does not touch the DOM. This also covers an event for the shown feature arriving while the picker is open.
> 
> \### Gladys Assistant version
> 
> Not given in the forum report.
> 
> \### Installation type
> 
> Not given in the forum report. The issue is on the client side (Android browser / PWA).

I’ve also moved your topic to the right category so it doesn’t get lost 🙂
