As you suspected, to be controlled by openHAB, the Tuya device needs to be on the same LAN as the device. And as you observed, the Tuya binding doesn’t play well with the Tuya app.
You would need another openHAB install at your dad’s house. I have two installs and they communicate well with each other using the Remote binding through Tailscale. But I have had enough issues with Tuya Things going offline unpredictably that I wouldn’t trust my father’s safety to a set up that relied on it and the stability of a remote connection
Thanks, I am currently using the Tuya App for that device, too much infraestructure for only that, and also I need Tuya for two Irrigation Controllers that connect to a Tuya Hub using RF not WiFi or Zigbee and can’t be controlled using that (and any other) binding or library.
Strange thing with this tuya binding. I have devices for watering plants (Moes BAF-908) and last year I used them with this binding. I disconnected the devices for the winter and uninstalled the Smarthome/J binding.
Now when I tried to restore everything relatively quickly, something didn’t work.
I managed to generate a Tuya Cloud Project that connects and is online with the iot.tuya.com account. Unfortunately, discovery and Scan to discover tuyaDevice (I have two) don’t work…
Openhab log-viewer returns the information:
WARN org.smarthomej.binding.tuya.internal.local.handlers.TuyaDecoder bf06d5016c33f4ba55lxxx/192.168.x.xx:6668 failed to parse JSON: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
any ideas what could be reason?
I have some logs from the Karaf console but it looks like there is a lot of sensitive data there
In case it helps someone: I have added a Tuya Circuit Breaker through PaperUI which started to act up, i.e. toggling between ONLINE-OFFLINE. It flicked to Online for like 0.3 seconds then back to OFFLINE. It is on a router assigned fix IP.
The solution which helped (after removing/adding again; entering fix ip to the binding; playing with protocols; restarting OH) was a complete power cycle - i.e. take away the mains from the circuit breaker. Following that it works as expected. I hope it helps someone.
Can you share the best way to use one tuya cloud account, one project with multiple instances of openhab tuya binding? Devices seems to work but in the logs there are issuse with token error. can i leave it as it is or it will stop working in the future ?
I have exactly this situation - two separate openHAB installations using the same Tuya SmartHome account. And as you have observed, you get a “This never should happen” warning when you have both of the Tuya account things online.
As I understand it, you only really need the Tuya account to get the description code for new things when they are added. So.I generally keep at least one of them disabled until I get a new device and need to add it.
Hi,
I am trying to add my Tuya Wallbox to OH. I have setup the account and linked it. The discovery is working but after adding the Wallbox to OH there are no configured channels.
I tried to add them but a “DP” is missing which only accepts numbers. I found some specifications in the Cloud project but all “DP” related are alpha numeric. Any suggestions?