# External integration - Tuya

**URL:** <https://community.gladysassistant.com/t/integration-externe-tuya/10435>\
**Category:** Développement\
**Tags:** integration-externe\
**Created:** [August 2, 2026, 7:58pm UTC](https://community.gladysassistant.com/t/integration-externe-tuya/10435 "2026-08-02T19:58:17Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![GBoulvin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gboulvin/32/10006_2.png) [@GBoulvin](https://community.gladysassistant.com/u/GBoulvin)\
**Post date:** [August 10, 2026, 5:48pm UTC](https://community.gladysassistant.com/t/integration-externe-tuya/10435/23 "2026-08-10T17:48:03Z")

</div>

I thought so… 😇

> [@External integration: Energy tracking should be managed automatically like for Zigbee2mqtt](https://community.gladysassistant.com/t/integration-externe-le-suivi-de-lenergie-devrait-etre-gere-automatiquement-comme-pour-zigbee2mqtt/10521/1):
>
> Following this topic: [Intégration externe - Daikin Cloud - #15 par prohand](https://community.gladysassistant.com/t/integration-externe-daikin-cloud/10445/15) Managing the automatic addition of energy tracking features in external integrations

---

<div class="post-metadata">

**Author:** ![elfedagger](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/elfedagger/32/13658_2.png) [@elfedagger](https://community.gladysassistant.com/u/elfedagger)\
**Post date:** [September 2, 2026, 8:42pm UTC](https://community.gladysassistant.com/t/integration-externe-tuya/10435/24 "2026-09-02T20:42:11Z")

</div>

You told me this distributor should expose what I needed.  
Your F14-W should then expose:  
• Distribute — a button that gives a portion (usable in a scene,  
for example every day at 8:00 a.m.)  
• Last distributed quantity  
• Slow distribution  
• Indicator light  
• Battery  
I think you didn’t see my feedback.  
The distributor doesn’t expose everything it should, only the distribution button.

 ![Screenshot (10)](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/9/1/9137812d7a58d77c8e3e02a466af865270550e88.png)

 ![Screenshot (11)](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/a/b/abd5efc92d729c3cbf671b09dcc9a9d359eff580.png)

For what you asked me, I found this.

```auto
[2026-08-05T18:08:07.095Z] [INFO] [tuya] [Tuya][poll][local] device=bf15bc151aba2c

```

---

<div class="post-metadata">

**Author:** ![GBoulvin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gboulvin/32/10006_2.png) [@GBoulvin](https://community.gladysassistant.com/u/GBoulvin)\
**Post date:** [September 3, 2026, 4:32pm UTC](https://community.gladysassistant.com/t/integration-externe-tuya/10435/25 "2026-09-03T16:32:24Z")

</div>

Hello!

I have an issue with the ‹&nbsp;doorbell rings&nbsp;› action.

The action appears correctly, well detected but the scene does not trigger…

Yet, it worked!

 ![1000012894](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/c/a/ca223776242f38b6ad8567cfeafe376c84a8b1ff.jpeg)

 ![1000012896](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/f/1/f1de4bdf9959544fa1486f5e7f44ea49ab79bbf8.jpeg)

 ![1000012895](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/0/f/0f692919ab913589128a2322567518eb19d97143.jpeg)

Nothing special in the logs. I have the impression that it’s rather on the core side…

```auto
[2026-09-03T16:26:54.376Z] [INFO] [tuya] [Tuya][push] device=bf8a5bf8acc4540a41rere local push published 1 change(s)
[2026-09-03T16:26:54.414Z] [INFO] [tuya] [Tuya][push] device=bf8a5bf8acc4540a41rere local push published 1 change(s)
[2026-09-03T16:26:54.520Z] [INFO] [tuya] [Tuya][push] device=bf8a5bf8acc4540a41rere local push published 1 change(s)
[2026-09-03T16:26:54.718Z] [INFO] [tuya] [Tuya][push] device=bf8a5bf8acc4540a41rere local push published 1 change(s)
[2026-09-03T16:26:55.913Z] [INFO] [tuya] [Tuya][media] doorbell_pic event fired (device=ext:ext-terdious-gladys-tuya:device:bf0e59548489fcb4ea62of)
[2026-09-03T16:26:57.110Z] [INFO] [tuya] [Tuya][media] doorbell_pic snapshot published (device=ext:ext-terdious-gladys-tuya:device:bf0e59548489fcb4ea62of)

```

Edit:

```auto
2026-09-03T18:26:54+0200 <error> device.poll.js:30 (DeviceManager.poll) There was an error while polling device production-solaire-bf8a5bf8acc4540a41rere
2026-09-03T18:26:54+0200 <error> device.poll.js:31 (DeviceManager.poll) ExternalIntegrationUnavailableError: EXTERNAL_INTEGRATION_COMMAND_TIMEOUT
    at Timeout._onTimeout (/src/server/lib/external-integration/externalIntegration.sendCommand.js:32:14)
    at listOnTimeout (node:internal/timers:685:17)
    at processTimers (node:internal/timers:618:7)
2026-09-03T18:26:55+0200 <warn> scene.executeActions.js:47 (executeAction) ExternalIntegrationUnavailableError: No Tuya snapshot available yet (it updates on a ring or a motion event)
    at ExternalIntegration.handleCommandResult (/src/server/lib/external-integration/externalIntegration.handleCommandResult.js:29:7)
    at WebSocket.<anonymous> (/src/server/api/websockets/index.js:161:45)
    at WebSocket.emit (node:events:514:28)
    at Receiver.receiverOnMessage (/src/server/node_modules/ws/lib/websocket.js:807:20)
    at Receiver.emit (node:events:514:28)
    at Receiver.dataMessage (/src/server/node_modules/ws/lib/receiver.js:448:14)
    at Receiver.getData (/src/server/node_modules/ws/lib/receiver.js:377:17)
    at Receiver.startLoop (/src/server/node_modules/ws/lib/receiver.js:158:22)
    at Receiver._write (/src/server/node_modules/ws/lib/receiver.js:94:10)
    at writeOrBuffer (node:internal/streams/writable:574:12)
    at _write (node:internal/streams/writable:503:10)
    at Receiver.Writable.write (node:internal/streams/writable:512:10)
    at Socket.socketOnData (/src/server/node_modules/ws/lib/websocket.js:882:35)
    at Socket.emit (node:events:514:28)
    at addChunk (node:internal/streams/readable:567:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:518:3)
    at Socket.Readable.push (node:internal/streams/readable:398:5)
    at TCP.onStreamRead (node:internal/stream_base_commons:189:23)
2026-09-03T18:26:55+0200 <warn> scene.executeActions.js:47 (executeAction) ExternalIntegrationUnavailableError: No Tuya snapshot available yet (it updates on a ring or a motion event)
    at ExternalIntegration.handleCommandResult (/src/server/lib/external-integration/externalIntegration.handleCommandResult.js:29:7)
    at WebSocket.<anonymous> (/src/server/api/websockets/index.js:161:45)
    at WebSocket.emit (node:events:514:28)
    at Receiver.receiverOnMessage (/src/server/node_modules/ws/lib/websocket.js:807:20)
    at Receiver.emit (node:events:514:28)
    at Receiver.dataMessage (/src/server/node_modules/ws/lib/receiver.js:448:14)
    at Receiver.getData (/src/server/node_modules/ws/lib/receiver.js:377:17)
    at Receiver.startLoop (/src/server/node_modules/ws/lib/receiver.js:158:22)
    at Receiver._write (/src/server/node_modules/ws/lib/receiver.js:94:10)
    at writeOrBuffer (node:internal/streams/writable:574:12)
    at _write (node:internal/streams/writable:503:10)
    at Receiver.Writable.write (node:internal/streams/writable:512:10)
    at Socket.socketOnData (/src/server/node_modules/ws/lib/websocket.js:882:35)
    at Socket.emit (node:events:514:28)
    at addChunk (node:internal/streams/readable:567:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:518:3)
    at Socket.Readable.push (node:internal/streams/readable:398:5)
    at TCP.onStreamRead (node:internal/stream_base_commons:189:23)
2026-09-03T18:26:55+0200 <warn> scene.executeActions.js:47 (executeAction) ExternalIntegrationUnavailableError: No Tuya snapshot available yet (it updates on a ring or a motion event)
    at ExternalIntegration.handleCommandResult (/src/server/lib/external-integration/externalIntegration.handleCommandResult.js:29:7)
    at WebSocket.<anonymous> (/src/server/api/websockets/index.js:161:45)
    at WebSocket.emit (node:events:514:28)
    at Receiver.receiverOnMessage (/src/server/node_modules/ws/lib/websocket.js:807:20)
    at Receiver.emit (node:events:514:28)
    at Receiver.dataMessage (/src/server/node_modules/ws/lib/receiver.js:448:14)
    at Receiver.getData (/src/server/node_modules/ws/lib/receiver.js:377:17)
    at Receiver.startLoop (/src/server/node_modules/ws/lib/receiver.js:158:22)
    at Receiver._write (/src/server/node_modules/ws/lib/receiver.js:94:10)
    at writeOrBuffer (node:internal/streams/writable:574:12)
    at _write (node:internal/streams/writable:503:10)
    at Receiver.Writable.write (node:internal/streams/writable:512:10)
    at Socket.socketOnData (/src/server/node_modules/ws/lib/websocket.js:882:35)
    at Socket.emit (node:events:514:28)
    at addChunk (node:internal/streams/readable:567:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:518:3)
    at Socket.Readable.push (node:internal/streams/readable:398:5)
    at TCP.onStreamRead (node:internal/stream_base_commons:189:23)

```

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [September 3, 2026, 4:50pm UTC](https://community.gladysassistant.com/t/integration-externe-tuya/10435/26 "2026-09-03T16:50:30Z")

</div>

Hi @elfedagger, sorry for the delay.  
I didn’t see your previous feedback.

Your distributor probably doesn’t expose the same Tuya codes as the model I based it on. I hoped it would be better than that, sorry.

Version 1.13.1 was released this morning (update from the store in about an hour), but it won’t add any features by itself. For me to fix the mapping for your model, I need two lines of integration logs, after an update and then a scan in Discovery:  
the line starting with [Tuya][discovery] «&nbsp;F14-W&nbsp;» (it indicates features=1 and the UNMANAGED=[…] list of codes I don’t handle yet);  
the full [Tuya][poll][local] device=… DPS snapshot: … line (the one you sent is cut off after the identifier).

Send them without the local key or your IP if they appear next to it. With that, I’ll try to release a corrected version right away.

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [September 3, 2026, 5:02pm UTC](https://community.gladysassistant.com/t/integration-externe-tuya/10435/27 "2026-09-03T17:02:59Z")

</div>

Hi @GBoulvin,

Oh damn! Sorry, so I’m surprised by the mess. Claude is trying something, but I’m not sure it will help… I’ll forward his message to you 😅

Thanks for the logs, they say it all, and no, it’s not on the core side.  
The scene is indeed triggered (your capture « Ring: a few seconds ago » confirms it). What fails are your three actions « send the image »: the integration was pulling the ring before finishing downloading the photo (1.2s difference in your logs). The scene therefore requested the image too early. Before, you actually retrieved the photo from the previous ring without noticing; this morning’s update restarted the container, cleared the cache, and the error became visible.  
Fixed in 1.13.2 (available in the store in about an hour): the photo is published first, the ring second, and an image request during download waits instead of failing. After the update, press the doorbell once to prime it, then the scene should send the correct photo of the visitor.

---

<div class="post-metadata">

**Author:** ![elfedagger](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/elfedagger/32/13658_2.png) [@elfedagger](https://community.gladysassistant.com/u/elfedagger)\
**Post date:** [September 3, 2026, 10:41pm UTC](https://community.gladysassistant.com/t/integration-externe-tuya/10435/28 "2026-09-03T22:41:51Z")

</div>

I retrieved this.

```auto
[2026-09-03T22:31:25.479Z] [INFO] [tuya] [Tuya][discovery] "F14-W" id= **************type=pet-feeder product_id=*************** category=cwwsq features=1 UNMANAGED=[meal_plan_num, battery_val, meal_plan2, feed_record, vip_alarm, battery_alarm]
[2026-09-03T22:31:25.480Z] [WARN] [tuya] Tuya function with "basic_indicator" code is not managed
[2026-09-03T22:31:25.481Z] [WARN] [tuya] Tuya function with "motion_record" code is not managed
[2026-09-03T22:31:25.481Z] [WARN] [tuya] Tuya function with "motion_interval" code is not managed
[2026-09-03T22:31:25.481Z] [WARN] [tuya] Tuya function with "record_switch1" code is not managed
[2026-09-03T22:31:25.482Z] [WARN] [tuya] Tuya function with "decibel_upload" code is not managed
[2026-09-03T22:31:25.482Z] [WARN] [tuya] Tuya function with "ipc_mute_record" code is not managed
[2026-09-03T22:31:25.482Z] [WARN] [tuya] Tuya function with "ipc_detection_area" code is not managed
[2026-09-03T22:31:25.482Z] [WARN] [tuya] Tuya function with "multi_motion_area" code is not managed
```

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [September 4, 2026, 1:52pm UTC](https://community.gladysassistant.com/t/integration-externe-tuya/10435/29 "2026-09-04T13:52:43Z")

</div>

Thanks, that’s exactly what was needed. Your dispenser is a variant: it doesn’t expose the standard codes I built the support for (`feed_report`, `slow_feed`, `battery_percentage`…) but others (`feed_record`, `battery_val`, `battery_alarm`…). Only the dispensing button is common, hence a single functionality.

I prefer not to blindly map (displaying a battery at « 2957 % » wouldn’t help you). I just released **1.13.3** which adds the last missing info: update from the store within an hour, wait a minute, then send me in a PM the line containing `[Tuya][poll][cloud]` and `status snapshot` for your dispenser (it only appears once, on the first reading after the restart). With that, I’ll release the support for your model right away: last meal, battery, alarms.

The `basic_indicator` / `motion_record` lines you copied come from a camera, not the dispenser, you can ignore them.

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [October 16, 2026, 6:14am UTC](https://community.gladysassistant.com/t/integration-externe-tuya/10435/30 "2026-10-16T06:14:34Z")

</div>

# 🔔 Tuya (external integration) — v1.20.0: 6 new device types + integration in 4 languages

Hello everyone 👋

Since v1.11.0, the Tuya external integration has evolved a lot: here’s the recap up to **v1.20.0** , which has just been released.

## ✨ New supported devices

- **Robot vacuum cleaners** (Honiture Q6 Pro): start/stop, pause, return to base, status, battery, suction power, water level, modes, brush wear.
- **Pet feeders** (category `cwwsq`, including the F14-W): on-demand distribution, last served quantity, battery, scheduled meals.
- **Fans / Double-flow VMC** (category `fs`, e.g. AV-TTW5-W): on/off, speed, light, child lock, airflow direction, oscillation.
- **Dehumidifiers** (category `cs`, e.g. Qlima D825A): humidity, temperature, speed, timer, mode, target humidity, child lock.
- **Temperature / Humidity sensors** (category `wsdcg`, e.g. Konyks Termo): temperature, humidity, low battery.
- **Water osmosis / purifiers** (category `js`, e.g. The Box): TDS input/output, remaining life of each filter (PP, CTO, RO) in % and days, operating status.

## 🌍 Integration in French, English, German, and Spanish

- New option **« Feature Names »** : the names and option labels of newly discovered devices in **French** , English, German, or Spanish. A big thank you to @spenceur for the PR! 🙏
- The entire integration is now translated into Gladys’ 4 languages: configuration, actions, connection messages, Cloud badge tooltips, and documentation.

## 🛠 Tools and fixes

- **« Device Diagnostic »** action: having trouble with a device that’s not recognized or not working properly? Run the action, copy the result into a GitHub issue, and I can add it. The report does not contain local keys, IP addresses, or Tuya identifiers.
- **Air conditioners** : the **Heating** and **Ventilation** modes are now selectable again.
- **Doorbells** : the visitor’s photo arrives before the ring (useful for sending it in a scene).

## ⚠ Prerequisites

- **Gladys ≥ 4.86.1** for a new installation from the store (and for the vacuum cleaner’s suction power / water level).
- An already installed integration continues to update on any version of Gladys.

## 🔄 Already created devices

- New device types: simply run a **discovery** again.
- The « Feature Names » option does not rename already created features: only the labels in the lists (e.g. suction power) follow the new language in the next discovery. For names: rename manually, or delete and recreate the device.

## 🧪 Feedback welcome

These points are of particular interest to me:

- Dehumidifier, water osmosis, Konyks Termo sensor, and F14-W feeder: does everything come back correctly, and do the commands work?
- Feature names in German / Spanish for those who use Gladys in these languages.

The details of each version are in the changelog: [gladys-tuya/CHANGELOG.md at master · Terdious/gladys-tuya · GitHub](https://github.com/Terdious/gladys-tuya/blob/master/CHANGELOG.md)

Thanks in advance for your feedback 🙏

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [October 16, 2026, 6:19am UTC](https://community.gladysassistant.com/t/integration-externe-tuya/10435/31 "2026-10-16T06:19:35Z")

</div>

## 🔧 v1.21.0 — Fix for air conditioners set to °F

A small bugfix update right after 1.20.0:

- **Air conditioners with the screen set to °F** : The ambient temperature is no longer divided by 10 on models that send whole degrees (24 °C was displayed as “2.4”), and the setpoint as well as the ambient temperature are no longer labeled °F when the device sends °C. Gladys now correctly converts to the unit you have chosen.
- Nothing changes for air conditioners set to °C or for other devices.

👉 If your air conditioner is affected: **delete it and recreate it** from the Discovery tab, so that it takes the correct unit.

📝 Project news: each version now has its release notes on GitHub, and all the details are in the [changelog](https://github.com/Terdious/gladys-tuya/blob/master/CHANGELOG.md).

Thanks to @Lucid_Wray for their very precise bug report 🙏

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [October 16, 2026, 8:29am UTC](https://community.gladysassistant.com/t/integration-externe-tuya/10435/32 "2026-10-16T08:29:20Z")

</div>

## ❄ v1.22.0 — exotic air conditioners (ex. MEDION P502)

New version for Tuya air conditioners that don’t speak standard vocabulary:

- **Modes** : Recognized regardless of how they are written (`COOL`, `cool`, `cold`…), and sent exactly as the device expects them. No more air conditioners stuck in a mode.
- **Fan speed** : Air conditioners that declare their speeds as simple levels (“1”, “2”…) now display Low / High (up to 5 levels), instead of a list of 8 choices with no effect.
- **Swing** : The on/off sweep (`Shake`) appears as an “Oscillation” switch, both in the cloud and locally.

Nothing changes for air conditioners that were already working. If yours is affected, restart a **discovery** (or delete and recreate the air conditioner) so that it takes into account its own vocabulary.

Thanks to VV69004, whose well-documented work on the MEDION P502 made it possible to integrate all this properly for everyone 🙏

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [October 16, 2026, 12:53pm UTC](https://community.gladysassistant.com/t/integration-externe-tuya/10435/33 "2026-10-16T12:53:57Z")

</div>

## 💧 v1.23.0 and v1.24.0 — Sprinkler valves, device lists, and reliability

**New Features**

- **Sprinkler valves / Tuya timers** (category `sfkzq`, e.g. R2601): open/close, valve status (water flowing or not), instant flow rate, battery, child lock, watering mode (auto/manual), manual watering duration. They use Gladys’ « water valve » category. Watering programs remain in the Tuya app for now.
- **Dropdown lists in actions** : “Detect local protocol” and “Device diagnostics” now offer a list of your devices. A second field still accepts a name or Tuya ID for a device not yet created in Gladys.
- **More comprehensive diagnostics** : it also indicates the range, unit, and scale of each numerical value. This is how the valve could be added in one version.

**Reliability**

- A brief disconnection between Gladys and the integration no longer restarts the entire cloud connection or a full network scan.
- Manual detection of the local protocol can no longer be canceled by a discovery launched at the same time.
- Cleaner shutdown: local connections to devices are closed before the container is stopped.

👉 Valve already added: “ **Update** ” button in the Discovery tab (or delete it and recreate it) to get its new features.

**📷 Call to Tuya PTZ camera owners (@GBoulvin 😉)**

Gladys can now control motorized cameras (movements, zoom, saved positions), and I would like to add them to Tuya cameras (LSC PTZ…). I just need the result of the “ **Device diagnostics** ” action (Integration Configuration tab, choose the camera from the list): paste it here or in [issue #26](https://github.com/Terdious/gladys-tuya/issues/26). The report contains no local key, IP address, or Tuya ID.

Details are in the [changelog](https://github.com/Terdious/gladys-tuya/blob/master/CHANGELOG.md). Thanks for your feedback 🙏

---

<div class="post-metadata">

**Author:** ![GBoulvin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gboulvin/32/10006_2.png) [@GBoulvin](https://community.gladysassistant.com/u/GBoulvin)\
**Post date:** [October 16, 2026, 1:51pm UTC](https://community.gladysassistant.com/t/integration-externe-tuya/10435/34 "2026-10-16T13:51:42Z")

</div>

Here is the first one, dual band:

```auto
Tuya device diagnostic — "Living Room Camera"
model=LSC PTZ Camera Dualband product_id=rogprwflblumx2co category=sp
detected type=camera mapped features=8

Cloud status (24 codes):
  alarm_message = undefined [ignored on purpose]
  basic_flip = false [switch/binary]
  basic_nightvision = "0" [ignored on purpose]
  basic_osd = true [ignored on purpose]
  basic_private = false [switch/binary]
  decibel_sensitivity = "0" [ignored on purpose]
  decibel_switch = false [ignored on purpose]
  humanoid_filter = false [switch/binary]
  motion_area = "{"num":1,"region0":{"x":0, "y":0, "xlen":100, "ylen":100 }}" [ignored on purpose]
  motion_area_switch = false [ignored on purpose]
  motion_sensitivity = "1" [ignored on purpose]
  motion_switch = false [switch/binary]
  motion_tracking = false [switch/binary]
  movement_detect_pic = <snapshot payload> [motion-sensor/binary]
  ptz_calibration = false [ignored on purpose]
  ptz_control = "7" [ignored on purpose]
  ptz_stop = true [ignored on purpose]
  record_mode = "1" [ignored on purpose]
  record_switch = true [switch/binary]
  sd_format = true [ignored on purpose]
  sd_format_state = 0 [ignored on purpose]
  sd_status = 5 [ignored on purpose]
  sd_storge = "0|0|0" [ignored on purpose]
  siren_switch = false [siren/binary]

Declared enum ranges:
  basic_nightvision: 0, 1, 2 (functions+status+model)
  decibel_sensitivity: 0, 1 (functions+status+model)
  motion_sensitivity: 0, 1, 2 (functions+status+model)
  ptz_control: 1, 2, 3, 4, 5, 6, 7, 0 (functions+status+model)
  record_mode: 1, 2 (functions+status+model)

LAN DPS snapshot: unavailable (Local poll timeout).

This report contains no local key, IP address nor Tuya device id: it can be pasted as-is in a GitHub issue

```

And the second one (LSC as well, older)

```auto
Tuya device diagnostic — "Entrance Camera"
model=LSC PTZ Camera product_id=n7h0m2x7i2yzol0p category=sp
detected type=camera mapped features=8

Cloud status (23 codes):
  alarm_message = undefined [ignored on purpose]
  basic_anti_flicker = "1" [UNMANAGED]
  basic_flip = false [switch/binary]
  basic_nightvision = "0" [ignored on purpose]
  basic_osd = true [ignored on purpose]
  basic_private = false [switch/binary]
  decibel_sensitivity = "0" [ignored on purpose]
  decibel_switch = false [ignored on purpose]
  humanoid_filter = false [switch/binary]
  motion_sensitivity = "0" [ignored on purpose]
  motion_switch = false [switch/binary]
  motion_tracking = false [switch/binary]
  movement_detect_pic = <snapshot payload> [motion-sensor/binary]
  ptz_calibration = false [ignored on purpose]
  ptz_control = "5" [ignored on purpose]
  ptz_stop = true [ignored on purpose]
  record_mode = "2" [ignored on purpose]
  record_switch = true [switch/binary]
  sd_format = true [ignored on purpose]
  sd_format_state = 0 [ignored on purpose]
  sd_status = 1 [ignored on purpose]
  sd_storge = "30272512|15700992|14571520" [ignored on purpose]
  siren_switch = false [siren/binary]

Declared but not reported: initiative_message

Declared enum ranges:
  basic_anti_flicker: 0, 1, 2 (functions+status+model)
  basic_nightvision: 0, 1, 2 (functions+status+model)
  decibel_sensitivity: 0, 1 (functions+status+model)
  motion_sensitivity: 0, 1, 2 (functions+status+model)
  ptz_control: 1, 2, 3, 4, 5, 6, 7, 0 (functions+status+model)
  record_mode: 1, 2 (functions+status+model)

LAN DPS snapshot:
  109="30272512|15700992|14571520" (UNMAPPED)

This report contains no local key, IP address nor Tuya device id: it can be pasted as-is in a GitHub issue.

```

---

<div class="post-metadata">

**Author:** ![GBoulvin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gboulvin/32/10006_2.png) [@GBoulvin](https://community.gladysassistant.com/u/GBoulvin)\
**Post date:** [October 16, 2026, 5:56pm UTC](https://community.gladysassistant.com/t/integration-externe-tuya/10435/35 "2026-10-16T17:56:15Z")

</div>

PTZ, it works!

More than the stream… And I have the feeling that it’s not impossible:

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/2/0/200687b84f80536906bee0b5c09dfa5376559381.png)

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/d/5/d5799f7c0772fc5784b76991844972c74b08b00a.png)

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/0/1/010efba1b03305cac1fb3bc1f582e623d411642c.png)

What do you think?

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [October 16, 2026, 8:11pm UTC](https://community.gladysassistant.com/t/integration-externe-tuya/10435/36 "2026-10-16T20:11:57Z")

</div>

@GBoulvin thanks for the two diagnostics, that was exactly what was needed! 🙏

## 🎥 v1.26.0 — motorized cameras (PTZ) and camera settings

- **PTZ camera orientation** (LSC PTZ / Dualband…): left / right / up / down from the dashboard or a scene, locally or in the cloud (Gladys 4.86.1 minimum). For safety, each movement stops when released, or automatically after 2 s.
- **Camera settings in lists** : night vision (auto / off / on), motion and sound detection sensitivity, recording mode (on event / continuous), anti-flicker (off / 50 Hz / 60 Hz), plus sound detection and timestamp on the image.

👉 For an already created camera: **« Update »** button in the Discovery tab (or delete and recreate it).

@GBoulvin, thanks for the confirmation 😅. Busy at work, I hadn’t seen that it was finished 😅.

I posted your message (to Glaude), he’s looking into it!!^^

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [October 17, 2026, 6:57am UTC](https://community.gladysassistant.com/t/integration-externe-tuya/10435/37 "2026-10-17T06:57:29Z")

</div>

@GBoulvin great for the PTZ, thanks for testing! 🎉

For the video stream, your find comes just in time: a PR is in progress on Gladys to display the **live WebRTC stream** in the camera card (the stream goes directly from the cloud to the browser), and the **IoT Video Live Stream** service provides exactly what is needed for Tuya cameras.

Two small checks for me:

1. On the service page, **API List** tab → line **« Get WebRTC Configurations of the Device »** (`GET /v1.0/devices/{device_id}/webrtc-configs`) → **Debugging** : choose a camera, run, and tell me if the response contains `"supports_webrtc": true` (no need to paste the rest, there are identifiers in it).
2. Do your **PTZ cameras** display an image in Gladys (after motion detection), or just your **doorbell**? If it’s only the doorbell, you should see in the integration logs a line `encrypted movement_detect_pic image not supported yet`.

---

<div class="post-metadata">

**Author:** ![GBoulvin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gboulvin/32/10006_2.png) [@GBoulvin](https://community.gladysassistant.com/u/GBoulvin)\
**Post date:** [October 17, 2026, 8:21am UTC](https://community.gladysassistant.com/t/integration-externe-tuya/10435/38 "2026-10-17T08:21:17Z")

</div>

> [@Terdious](#):
>
> 1. a camera, launch, and tell me if the response contains `"supports_webrtc": true`

And… Yes!

```auto
 "support_webrtc_record": true,
    "supports_webrtc": true,

```

There is even the RTSPS:

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

et the tab ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/6/2/62ae6753a69e81340213e12348e250ba5bec849b.png) returns a complete config

For point 2, no image but

```auto
[WARN] [tuya] [Tuya][media] encrypted movement_detect_pic image not supported yet (device=ext:ext-terdious-gladys-tuya:device:bf85d2ce4746ff3ebeifas)
[2026-10-17T08:26:40.118Z] [INFO] [tuya] [Tuya][localSession] device=bf0e59548489fcb4ea62of connected (192.168.1.205, 3.3)
[2026-10-17T08:26:40.124Z] [INFO] [tuya] [Tuya][media] movement_detect_pic event fired (device=ext:ext-terdious-gladys-tuya:device:bf85d2ce4746ff3ebeifas)

```

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [October 17, 2026, 7:05pm UTC](https://community.gladysassistant.com/t/integration-externe-tuya/10435/39 "2026-10-17T19:05:58Z")

</div>

## 📷 v1.27.0 and v1.28.0 – Three-phase meters and live camera images

### ⚡ v1.27.0 – Three-phase meters / current clamps

- Support for three-phase meters (category `zndb`, e.g. **Power Clamp** ):
  - power, current, voltage, and energy consumed **for each phase** ;
  - total power, current, and energy;
  - internal clamp temperature (classified as “device temperature,” it does not affect the room temperature).

- Works in **cloud** and **local**.
- 👉 Clamp already created (without functionality): **Update** button in the _Discovery_ tab, or delete it and recreate it.

### 📷 v1.28.0 – Live camera images

- The camera image is now a **live video stream capture** :
  - when opening the dashboard;
  - in “show me the camera” (chat) and in scenes “send the camera image”;
  - automatically refreshed every 5 minutes, the widget always has a recent image.

- **PTZ** cameras whose Tuya images were encrypted finally have a real image!
- ⚠ **Prerequisite** : enable the **IoT Video Live Stream** API service on your Tuya project ([iot.tuya.com](http://iot.tuya.com) → _Cloud_ → _Development_ → your project → _API Service_). Without it, the image remains that of the last movement / doorbell ring.
- If the stream does not respond (battery camera asleep, service not authorized…), the integration keeps the image of the last event and retries later, without overloading the Tuya API.

@GBoulvin, I would appreciate your feedback on your two LSC PTZ cameras 🙏

### 🎥 Next: live video

The **live video in WebRTC** (directly from the Tuya cloud to your browser, without going through Gladys) is already ready on the integration side. It will be activated as soon as Gladys supports it.

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [October 18, 2026, 11:48am UTC](https://community.gladysassistant.com/t/integration-externe-tuya/10435/40 "2026-10-18T11:48:10Z")

</div>

## 🧩 v1.29.0 and v1.30.0 – Motion Detectors and Tuya Widgets

### 🚶 v1.29.0 – Motion Detectors

- Support for motion detectors (category `pir`, e.g., the « Luminance Motion sensor » Zigbee behind a Tuya gateway):
  - **motion** (usable as a scene trigger);
  - **brightness** in lux;
  - **battery** ;
  - **sensitivity** and **hold time** in lists.

- Served by the cloud (Zigbee devices go through their gateway). The Zigbee gateway itself has nothing to control: it remains without functionality, which is normal.
- 👉 Detector already created: **Update** button in the _Discovery_ tab.

### 🧩 v1.30.0 – Dashboard Widgets

In a dashboard: **Edit → Add a Box → Integration Widgets** , the Tuya integration offers 5 widgets:

- 📷 **Tuya Camera** : live image, private / detection / recording mode, **PTZ arrows** on motorized cameras (the image follows the movement), or private mode and refresh buttons on a fixed camera.
- ⚡ **Tuya Meter** : power gauge, real-time power per phase, current, energy, 24-hour curve, voltage and current per phase (three-phase meters, meters, outlets).
- 📊 **Tuya Devices** : devices online / local / cloud / offline, those to monitor, cloud status, search button.
- 🧹 **Tuya Vacuum** : status, battery, brush wear, start / pause / base buttons.
- 💧 **Tuya Purifier** : filter wear, TDS input / output, remaining days.

⚠ **v1.30.0 requires Gladys 5.1.0 or newer** (integration widgets arrived with this version). On an older Gladys, the integration remains at v1.29.0.

Feel free to give me your feedback on the widgets! 🙏

---

<div class="post-metadata">

**Author:** ![GBoulvin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gboulvin/32/10006_2.png) [@GBoulvin](https://community.gladysassistant.com/u/GBoulvin)\
**Post date:** [October 18, 2026, 1:07pm UTC](https://community.gladysassistant.com/t/integration-externe-tuya/10435/41 "2026-10-18T13:07:58Z")

</div>

Sorry for the late reply!

With the new Tuya video widget, it works for all three!

A 2.4GHz PTZ camera

A Dual Band PTZ camera

The video intercom - doorbell

All from LSC (Action) without any hacking!

No (yet) live stream, of course 😇

---

<div class="post-metadata">

**Author:** ![elfedagger](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/elfedagger/32/13658_2.png) [@elfedagger](https://community.gladysassistant.com/u/elfedagger)\
**Post date:** [October 18, 2026, 4:59pm UTC](https://community.gladysassistant.com/t/integration-externe-tuya/10435/42 "2026-10-18T16:59:37Z")

</div>

> [@Terdious](#):
>
> - **IoT Video Live Stream**

Thanks for these screenshots, I was able to enable IoT Video Live Stream thanks to you.

[Previous page](https://community.gladysassistant.com/t/integration-externe-tuya/10435.md?page=1)

[Next page](https://community.gladysassistant.com/t/integration-externe-tuya/10435.md?page=3)
