How to use Tuya ZigBee Wifi with local tuya

Hi I bought some radiator controls which work via wifi without a hub.

This ones: https://www.amazon.de/gp/product/B0BD75FGXQ/ref=ppx_yo_dt_b_asin_title_o04_s00?ie=UTF8&th=1

TRV03

I can connect them via tuya IoT cloud, but tuya IoT is a trial for only a month running. So I like to connect them with local tuya. But local tuya is not finding the devices.

I read about using zigbee2mqtt but I can’t find anything how to configure it for this Wifi devices without hub or USB Stick.

Could someone help me with this problem?

Thanks in advance
Frank

First of all zigbee <> wifi although they use the same freq.
Then, I use the iot project to get my local id, … I read that it can be done differently but never tried it
My devices are known in Smartlife app and I mapped Smartlife to the iot project, then they show up “at some point”
rospogrigio/localtuya: local handling for Tuya devices (github.com)

Even for a month, mine expired last week and I have no issues whatsoever with my plugs.

As there are plenty other posts on this topic, please have a look there too… I will not continue here and copy the same things :slight_smile:

@vingerha my Tuya Iot Core expires 2 days ago and the devices were not available anymore with the tuya integration.

I see the local IDs of my devices in the Tuya IoT website, but the local tuya integration can’t detect them or connet with setting the IDs manually.

This is not working for me:

For me it looks like this:

So, my question is how to get this devices into local Tuya, if local Tuya can’t detect them?

I have the same issues with non-detection, just add the stuff manually, i.e. click Absenden and then ip+id+localid

Well I always had problem with this tuya/local tuya integration. I have a few tuya wifi switches and they are ready for replacement with zigbee ones.
First check does you local tuya have your trv already set up. If it is set up in local tuya, regardless does it work, it won’t show your device in local tuya for setup. You have to remove it first from local tuya.
If your device isn’t listed in local tuya and you still can’t add it, then you have to remove it from tuya, home assistant integration and smart life app, and pair it again.
It’s pain to handle tuya wifi devices and imho should be avoided.
For your account problem I don’t know. Try to set it up following local tuya manual.

All in all… I am also moving away from tuya … many MANY others aim to do so too

My first attempt was with local tuya, then I installed the normal Tuya integration which is connected to the smart life account. Tuya integrations works.

I tried several times to add the devices in local tuya manually, but get always get this error message. But dDevice ID, local ID and local IP address are correct.

I should mention, that the devices are connected to a fritzbox 6590 which is set up as mesh repeater.

Might be a dûh …statement but the ip address is the one of the device, not the server, the word ‘host’ is somewhat confusing to many

I know I used the device IP.

As I know there is procedure to integrate tuya devices in home assistant.
First you have to pair devices using smart life app. When you do that your devices will be availabe on the cloud.
It’s important to set tuya iot account so that it is fully functional with your app. I can’t help you with that, There is a lot of tutorials on line so check them out.
If you don’t set up this right your home assistant integration probably wont work.
After that set up device in tuya integtration and then in local tuya.
It’s complex and time consuming process. Those devices tend to disconnect then you have to pair it again, remove it, find new local key. And it’s a mess.

@ddaniel That is exactly what I did.

First I conneted the devices to the smart life app.
Then I created the Tuya Cloud account.
With the debug feature of the cloud account I check the localkey. (super easy)
I tried local tuya with the gathered informations in Home Assistant - not working.
I tried Tuya integration which connects to the cloud and the smart life app - works.

Diagnose Data shows this:

"data": {
    "region": "eu",
    "client_id": "y9h...arc",
    "client_secret": "ad1...395",
    "user_id": "eu1...tR4",
    "username": "localtuya",
    "no_cloud": false,
    "devices": {},
    "cloud_devices": {
      "bf69dd...e906c9vlo": {
        "active_time": 1668155476,
        "biz_type": 18,
        "category": "wk",
        "create_time": 1668155476,
        "icon": "smart/icon/ay1547209623516pqlXf/68386c89c91285008c30db120b19a5b0.png",
        "id": "bf69dd...e906c9vlo",
        "ip": "xxx",
        "lat": "51.1856",
        "local_key": "b8e...232",
        "lon": "6.5017",
        "model": "",
        "name": "Schlafzimmer",
        "online": true,
        "owner_id": "69255291",
        "product_id": "vcdfsrjikcpkpkzj",
        "product_name": "WiFi Smart Thermostat",
        "status": [
          {
            "code": "mode",
            "value": "off"
          },
          {
            "code": "window_check",
            "value": false
          },
          {
            "code": "temp_set",
            "value": 50
          },
          {
            "code": "upper_temp",
            "value": 200
          },
          {
            "code": "temp_unit_convert",
            "value": "c"
          },
          {
            "code": "temp_current",
            "value": 84
          },
          {
            "code": "window_state",
            "value": "close"
          },
          {
            "code": "lower_temp",
            "value": 50
          },
          {
            "code": "temp_correction",
            "value": -100
          },
          {
            "code": "battery_percentage",
            "value": 95
          },
          {
            "code": "child_lock",
            "value": false
          },
          {
            "code": "fault",
            "value": 0
          }
        ],
        "sub": false,
        "time_zone": "+01:00",
        "uid": "eu1666796811786UXtR4",
        "update_time": 1668155495,
        "uuid": "eff2c264ab18b313"
      }

I’m wondering about “localtuya” as username.

I use tuya and local tuya only with smart switches. This was my first major integration in home assistant when I started with it. And it was and still is a mess and big mistake. At least half of that switches I removed and decided to move from tuya and local tuya as far as I could.
I never set up a trv in local tuya so I can only guess that probably problem lies in some local tuya options you are using trying to set this up. Or maybe this trv is not supported or fully supported.
Sorry but this is tuya/local tuya reality.
Maybe you find a way to make this work or just dump it and get zigbee one.

Edit:

“I’m wondering about “localtuya” as username.”

I will leave it blank. I don’t think that this is a username and I don’t wanna mess it up again on my system.

I think my devices are a mix of tuya and zigbee with a wifi connection instead of using a hub, because all shop pages with the device name it tuya / Zigbee.

I don’t know. If you have a zigbee coordinator try to pair them to coordinator. If they pair forget local tuya and tuya integration.

no I don’t have a zigbee coordinator. I connect the devices via wifi to the smart life app and that it.
I see also the the devices in my network mesh, but I’m not able to connect to them via local tuya.

Well I don’t know about your trv. This is the first time I heard that there is some tuya wifi device that is also a zigbee device. Usually those devices are defined or as wifi or zigbee.
Oke, there could be a rf or bluettoh but they are in minority. I have zigbee trv from moes, yes its again tuya based devices, but this is zigbee device. It doesn’t have an ip in router and it’s connected to zigbee network only.
I have a wifi mesh but I don’t think that this can be a problem.

I found out, that if I do a nmap on port 6668 on the ip of one of my devices I get the message port closed. But this seems to be the address that local tuya is checking.

And I see a strange behavior of the MAC address. I can check the MAC address in the smart life app where it’s always the same. But if the device is connected to my router, it shows there a different MAC address.

I cheked this port on a few tuya wifi switches with nmap and it says

6668/tcp open  irc

They are integrated in local tuya. I don’t know man. I think that you will waste a lot of time and energy trying to debug this problem. Or just move on, buy zigbee coordinator and zigbee trv.

@FrankDaze did you make Local Tuya work?
I’ve just spent a day and half on this and have given up.

A new local key is issue when there is any power outage? Sorry I’m new to this. Is it a new key or your network dhcp renewed and mess up the config? I’m thinking of having part wifi switch($ cough…) in my setup. If its just the ip, then setting a static one should be good.