Tuya Loal - How to safely integrate the device (isolation from the main network possible?)

I've integrated my few Tuya devices into a separate IoT Wi-Fi network, creating an isolated VLAN. This meant the Tuya devices didn't have direct access to my main VLAN running Home Assistant.

Access to the Tuya devices was managed via Tuya Integration.

Now I have one Tuya device that only displays one of its many values ​​in Home Assistant. The solution would be to integrate it via Tuya Local. However, my main network (Home Assitant) only uses WPA3, which the Tuya device doesn't support. Even so, I'd consider it too insecure for my main network.

What's the best approach in your opinion?

Replace the device with one that fulfill your security requirements.

If you are worried about security, buy NO (zero) Tuya WIFI. None.
Tuya Zigbee can *usually be run locally without any Tuya Hub.

As Wally said, buy something else that is local.
Buy a Zigbee or Z wave device.
Matter can be a problem with security as well because it requires IPv6 which is hard to contain.

1 Like

For the sake of simplicity (less configurating, less headaches, less concerns), replacing the device/s and moving to zigbee, zwave, or thread is certainly the path of least resistance.

But for the sake of dialectics, there are things you can do with the WiFi devices to isolate and secure them locally.

Step 1 is segmenting the network (via vlan). This is possible, but you'd be introducing layers of complexity, because now you need to be mindful of all the various protocols of the devices (AVAHI, mDNS, etc), as well as poking holes in your firewall for cross-interfacing between networks if devices need to communicate with other devices and discovery. This is a rabbit-hole all on it's own that can lead to disaster. I'm not going to go into further details of what this entails, but there are plenty of threads on this forum that touch the subject. I will say this - HA is designed for a flat network. Happy digging.

If you proceed and manage to successfully complete Step 1, then Step 2 is setting up TuyaLocal.

Step 3 is banning your device from communicating with your WAN interface (the internet) using a traffic rule in your firewall.

Step 4 is redirecting the devices DNS probes into a blackhole via pihole or AdGuard so that it can't phone home under any circumstances.

Step 5, if the device needs time correction (like RTSP cameras), is forwarding the devices NTP probes to a trusted source for time.

I've done it before. Do I recommend it? No. Absolutely not. At least not for anyone with novice knowledge of networking. Even though I managed to accomplish it, I still ended up replacing the device and going with zigbee.

1 Like

The problem is, that nearly all easy and cheap pool water measuring devices are tuya.

So the main problem is that both the Tuya device and Home Assistant need to be in the same VLAN to use Tuya Local Integration, right?

Another solution, such as sending missing data from the Tuya Cloud to Home Assistant via MQTT, is also not possible, is it?

If measuring the pool water level is your end-game, your better bet is going DIY and using ESPHome with an ESP32. There are several threads on the forum of people setting this up for sump pits and aquariums.

To answer your questions. Yes, both the device and HA need to communicate and if you setup vlans, then your hurdle is making sure HA can discover the device. I would think Tuya Cloud has bot protections, so sending additional info via MQTT may not be a simple task, as you would need to scrape the info from the cloud.

No, I want to measure pH and ORP :wink:

This is the type of thing I like to use AI for more than anything, lol. Go forth and fetch me some info, robot!! https://www.domadoo.fr/en/smart-home-products/7909-yieryi-zigbee-smart-pool-water-analyser-tuya-smart-life.html

It's not "cheap", but it works with Z2M.

EDIT - after looking at the cost of other "solutions", I guess this is a MUCH cheaper alternative.

EDIT 2 - found it on aliexpress here

The first one has no option for external probes. :frowning:

Your Edit2 is not available in my location. Can you write the name of the part, that I can search for it?

The model is shown as YY‑1099L Zigbee or BLE‑YL01 Zigbee

EDIT - here's the link for the device in Z2M which shows the data it exposes and the model numbers.