codetheweb / tuyapi

🌧 An easy-to-use API for devices that use Tuya's cloud services. Documentation: https://codetheweb.github.io/tuyapi.
MIT License
2.07k stars 341 forks source link

Questions related to data log #561

Closed BrianSBUS closed 2 years ago

BrianSBUS commented 2 years ago

Just a question since I saw you guys working on retrieving data from Tuya via the API method, I am currently trying to obtain the data from my third-party temperature sensor and would like to obtain those data logs without using the IoT platform since it can only store up to 7 days of data and I would like to store more of those data for analysis. Is it possible to obtain those data via API unencrypted and can be stored else where?

MkMunich commented 2 years ago

I would like the same: getting the device values directly instead of puhing them into the cloud. If someone has a solution, how to 'read' the values e.g. with an ESP32 would be great!

codetheweb commented 2 years ago

Sensors aren't generally continuously connected to WiFi, so this likely isn't possible. You could try intercepting requests from the sensors to Tuya's cloud, but as far as I know that hasn't been tried before.

Apollon77 commented 2 years ago

I think with the cloud API you can get a MQTT connection to get all updates as well ?! maybe thats a may, WIll experiment around soon