# Tuya local for dummies

**URL:** <https://discourse.nodered.org/t/tuya-local-for-dummies/74010>\
**Category:** Hardware\
**Tags:** home-assistant\
**Created:** [21 January 2023 13:21 UTC](https://discourse.nodered.org/t/tuya-local-for-dummies/74010 "2023-01-21T13:21:08Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [25 January 2023 03:35 UTC](https://discourse.nodered.org/t/tuya-local-for-dummies/74010/21 "2023-01-25T03:35:16Z")

</div>

> [@LosinIt](#):
>
> If I'm reading correctly, these packages need Home Assistant and I don't wish to set it up for only Tuya connectivity as I've shunned HA so far. Is it possible to use the newer Tuya devices without HA at all?

Just to clarify for everyone the TuyaAPI library enables you to essentially cut the cloud from these devices without flashing them

You go through a proccess of setting up a free developer account on the Tuya platform, then register your device through the SmartLife app on your phone.tablet.

Once you have done this you get some magic numbers that enable you to intercept the encrypted local traffic and talk directly to the device - you can use your firewall to then block all external communications to the devices so there can be no OTA firmware updates etc from the Internet.

I have ben running my Hydronic Heatpump through this method for the last 3 years using NR to work with all the comms to control states, modes etc and report back all operating parameters.

Essentially the ESP in the HeatPump is just acting as an RS485 bridge

The only downside of all this (last time i checked on Github) is that the original developer of the Tuyapi no longer has any tuya devices and does not do any ongoing development

Craig

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [26 January 2023 22:51 UTC](https://discourse.nodered.org/t/tuya-local-for-dummies/74010/22 "2023-01-26T22:51:11Z")

</div>

> [@Sean-McG](#):
>
> I saw this and thought of you 😃

Thanks for thinking about me 😉  
Yes indeed that looks nice. But it looks quite large. The Tuya's on the other hand look quite similar to my old classic din-rail breakers, so that would be easier to replace without having to rewire everything.

> [@craigcurtin](#):
>
> Not sure if you are aware - but basically TUYA have evolved from running on just ESP chips (8266, ESP32 etc etc) and now run on a variety of chips

Yes I indeed had seen that Tasmota won't work anymore on more recent Tuya devices. And that they don't plan to start supporting those new chips. That was in fact the reason for me to start this discussion....

> [@IanH](#):
>
> but I have used [Shelly devices](https://www.shelly.cloud)

Yes me too loving the Shelly devices. But their din rail switches are dry contacts, while my current classic din rail breakers are wet contacts. And since I would like to keep the original wiring, unfortunately the Shelly's are not possible for me.

> [@btsimonh](#):
>
> if the price is good enough to scrap it, order one, and see what it contains.  
> If BK7231 based, then OpenBeken is a good choice

Ha @btsimonh,  
When you sended me a PM some time ago, it was remarkable how enthousiastic you were about OpenBeken. But since I had not been reading about Tuya or related stuff, I was not sharing yet your enthousiasm. But it is coming bit by bit 😉

You completely have my attention. But my enthousiasm meanwhile has reduced again a bit, because it looks like no easy solution:

- It is not mentioned anywhere on Ali which devices contain which chips. So you really need to order one and tear it apart.
- When I e.g. see [this](https://www.elektroda.com/rtvforum/topic3946256.html) teardown project then I already know I won't have enough free time to digg into something like this.
- Did I understand correctly that OpenBK supports more chipsets, but you need to open the housing to program the chip? Because when I see that teardown article, I don't see how those devices would survive something like that. But perhaps I have misunderstood the concept. Did not have time yet for in detail reading...
- When you say that Tuya is closing holes, that makes it a bit less attempting for me. Suppose I want to add some extra breakers in the future, that won't perhaps won't be possible due to Tuya firmware upgrades. Which means I would be stuck...

> [@craigcurtin](#):
>
> Its nice if you do not want to have to open up the device (or can't) in some cases

That would indeed be nice. But then you won't know what is inside the case.

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [27 January 2023 01:56 UTC](https://discourse.nodered.org/t/tuya-local-for-dummies/74010/23 "2023-01-27T01:56:53Z")

</div>

Yes you can pretty much tell what it is by the function it performs and the age of the device - plus once you have it you can get the mac address and some GoogleFU willl usually let you know what it is

You are right that across generations this will evolve and indeed over time Tuya will try to close the loophole - but i think they are starting to realise the futility of that and are starting to work with the open source community.

Once Matter devices start to hit the shelves in quantity then this will make a lot of this go away and Tuya will have to make a decision to either go like Sonoff and Shelly and open up and make it easier for 3rd parties or get lost with the big boys in the Matter/Thread ecosphere

Craig

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [27 January 2023 17:04 UTC](https://discourse.nodered.org/t/tuya-local-for-dummies/74010/24 "2023-01-27T17:04:27Z")

</div>

> [@craigcurtin](#):
>
> Once Matter devices start to hit the shelves in quantity then this will make a lot of this go away and Tuya will have to make a decision to either go like Sonoff and Shelly and open up and make it easier for 3rd parties or get lost with the big boys in the Matter/Thread ecosphere

I am not very familiar with Matter. But can't they just continue with wifi and their cloud solution like they currently do?

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [30 January 2023 02:55 UTC](https://discourse.nodered.org/t/tuya-local-for-dummies/74010/25 "2023-01-30T02:55:13Z")

</div>

Yep they can - but if Matter and Thread etc do make the splash that everyone is talking about then the area for them to compete in gets a lot smaller - most people buy the devices that we can hack/firmware flash for interoperability and/or to cut the ties to the cloud - theoretically this should happen out of the box with Matter

Craig

---

<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:** [31 March 2023 02:55 UTC](https://discourse.nodered.org/t/tuya-local-for-dummies/74010/26 "2023-03-31T02:55:42Z")

</div>

Closed on 31 March 2023 02:55 UTC

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

[Previous page](https://discourse.nodered.org/t/tuya-local-for-dummies/74010.md?page=1)
