Rebroadcast UDP (or maybe TCP) across VLANs

I am trying to get Home Assistant to talk to a Tuya fan on a separate VLAN. From what I’ve gathered, the connection process involves UDP packets on ports 6666 and 6667, maybe port 6668. How can I set up the Route10 to rebroadcast these packets so my Home Assistant can connect with the fan?

Hmm, I’m not sure there’s a way to at this time. Some searching indicates the Tuya fans only perform network broadcasts rather than multicast (which the Route10 already supports repeating) which aren’t intended to reach outside of their own subnet,

That being said, it appears some people have been able to do with pfSense which has a UDP Broadcast Relay service to kinda force it to work: https://www.reddit.com/r/homeassistant/comments/15cg1sj/localtuya_works_across_vlans_on_pfsense/

And it appears that there’s a package available for OpenWRT, which the Route10 is based on: packages/net/udp-broadcast-relay-redux-openwrt at master · openwrt/packages · GitHub

There might be a way to install it manually on the Route10 via the CLI, otherwise a feature request might be needed for Alta Labs to add that feature in.

That all being said, there might be another way to make this work rather than waiting! I just can’t think of one off hand. Maybe a VM with that relay installed could work? Not sure, just thinking out loud a bit :sweat_smile:

Maybe a feature request in parallell?

Is this issue of mine related?

Interesting! If it’s actually doing multicast then I would expect it to work, althogh this thread on the OpenWRT forum might be worth digging into mDNS: avahi works once and then never again - #15 by robca - Installing and Using OpenWrt - OpenWrt Forum

I might have a Synology NAS available I could do a similar test on at some point. But I’ll follow up in the other thread if I get a chance!

1 Like

This thread has been automatically closed due to inactivity. If you believe you have the same issue, please create a new post describing your issue. Feel free to link to this post for context if desired.