# LocalKey Tuya new format

**URL:** https://discourse.nodered.org/t/localkey-tuya-new-format/99688
**Category:** General
**Created:** [15 November 2025 10:01 UTC](https://discourse.nodered.org/t/localkey-tuya-new-format/99688 "2025-11-15T10:01:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Maa](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@Maa](https://discourse.nodered.org/u/Maa)
#### Post date: [15 November 2025 10:01 UTC](https://discourse.nodered.org/t/localkey-tuya-new-format/99688/1 "2025-11-15T10:01:20Z")

</div>

Hello,

First of all, a huge thank you for all the work you've done on node-red-contrib-tuya-smart-device, which helps many people like me who lack the necessary skills.

Here's the problem: Tuya recently changed the LocalKey format from 16 digits to 19 digits, with special characters and all the possible variations.  
Would it be possible to enable the use of a 19-digit LocalKey in a future update to node-red-contrib-tuya-smart-device?

Indeed, if I copy the correct LocalKey into the node, I get a debug message saying: "TypeError: Key is missing or incorrect."

Thank you for your help.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [15 November 2025 11:08 UTC](https://discourse.nodered.org/t/localkey-tuya-new-format/99688/2 "2025-11-15T11:08:52Z")

</div>

Hi and welcome to the forum.

If you don't get a response here, you should raise an issue in the Node's GitHub repository. I just got my first Tuya devices for a remote building I needed urgent monitoring in so I'm interested in this.

I wouldn't normally use devices that might not be changeable to ESPHome but I needed something urgently and haven't had the time to set up a remote Node-RED installation yet anyway.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [13 February 2026 11:08 UTC](https://discourse.nodered.org/t/localkey-tuya-new-format/99688/3 "2026-02-13T11:08:56Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
