Page 1 of 1

EspEasy sensor data to Tuya Platform

Posted: 28 Jan 2023, 13:14
by borre
I have a espeasy device with a temp/humanity sensor.
It works fine.

But I was wondering can I send this data to Tuya platform so I can use it to controll my tuya controlled heating and airconditioning?

I already have a tuya temp/hum sensor but it updates to slow ( one time per hour)

Re: EspEasy sensor data to Tuya Platform

Posted: 28 Jan 2023, 14:16
by TD-er
I have no idea what this platform requires.
Does it have some API documentation?

Re: EspEasy sensor data to Tuya Platform

Posted: 28 Jan 2023, 16:22
by iron
TD-er wrote: 28 Jan 2023, 14:16 I have no idea what this platform requires.
Does it have some API documentation?
https://github.com/codetheweb/tuyapi

Re: EspEasy sensor data to Tuya Platform

Posted: 28 Jan 2023, 18:32
by TD-er
That does look like a JavaScript implementation of the protocol. but I didn't see a full description of the low level protocol.
So still no idea whether an existing controller or command may already be used from the rules to interact with this platform.

Re: EspEasy sensor data to Tuya Platform

Posted: 28 Jan 2023, 18:55
by Ath
There is this Tuya developer docs, but I see 2 major blockers before we can implement this:
- Using these services requires HTTPS a connection
- Time versus gain for implementing a controller for this

This is the first ever request for connecting to Tuya devices that I have seen, maybe the requester can work out a preliminary Controller, and possibly a plugin to accompany that if needed, but as said, the HTTPS requirement will delay that for some time, and impose a couple of restrictions/limitations, f.e. only being available for ESP32.

This can be added to the longer-term TODO list though, sometime in the future this will be possible, after some of the limitations have been removed.

Re: EspEasy sensor data to Tuya Platform

Posted: 28 Jan 2023, 20:17
by TD-er
In the link given, was also a link to some MQTT tuya interface. So perhaps this can be run on some host to allow regular MQTT stuff to be used?

Re: EspEasy sensor data to Tuya Platform

Posted: 28 Jan 2023, 20:53
by Ath
But, unfortunately, that tuya-MQTT project has been stopped/abandoned over 2 years ago :?

Re: EspEasy sensor data to Tuya Platform

Posted: 28 Jan 2023, 23:27
by TD-er
Ah, that's not very promising...