smarthomej / addons

SmartHome/J addons for openHAB
Eclipse Public License 2.0
59 stars 23 forks source link

Support for Tuya Cloud Device #389

Closed palaslet closed 1 year ago

palaslet commented 1 year ago

Some Tuya devices does not accept direct network connection. These are in particular extreme low power devices such as battery powered temperature sensors etc. These devices wake up based on an interval (my particular device wakes up once every hour), and posts their status to the cloud and/or retrieves commands from the cloud.

Such devices maybe configured as a TuyaCloudDevice thing, or maybe TuyaDevice can fall back to cloud api calls if direct connection fails, so that the binding can use the cloud api to retreive status and post commands.

I do not have enough java experience to implement such solution myself, but from the logs in openhab it seems the binding is already retrieving this information during the discovery call.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

0verEngineer commented 1 year ago

Hey, this is still an issue.

dieterkoller commented 6 months ago

Hi, I would also like to have that issue solved. I have a couple of battery driven Tuya-WiFi temperature and humidity sensors (with and w/out display) that update their readings to the tuya cloud only once per hour. The only relevant information I've found so far is [https://www.elektroda.com/rtvforum/topic3968377.html]. But that is beyond my scope.

J-N-K commented 6 months ago

I tried it and didn't manage to get a stable solution. I still have the code, so if anyone wants to try, I can show what I already have.