Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devices stop responding after a number of connections #581

Open
hluhome opened this issue Jan 14, 2025 · 8 comments
Open

Devices stop responding after a number of connections #581

hluhome opened this issue Jan 14, 2025 · 8 comments
Labels
tuya_device Support for specific Tuya Devices

Comments

@hluhome
Copy link

hluhome commented Jan 14, 2025

Hi,
I've setup tinytuya first to control my heatpump. I was also using it to poll the state of the device, however, after a number of days the device stopped responding with error code 914. Only rebooting the heatpump helped. Since then I've changed the logic to interact minimally but it still seems to hang after a month or so. I reported this to the vendor.

However, since then I also set it up with 2 energy metering smart sockets - pulling the energy consumption every 2 minutes. Both sockets stopped working after 3 days (after being polled ~2200 times). So I wonder if there is something that causes these devices to fail - and what I can do to fix this...? Or even debug.... I only use the status() call to pull the data. And yes, everything seems fine from the Tuya Cloud.

@uzlonewolf
Copy link
Collaborator

Yes, this is a common problem, especially for v3.4 devices. #443 There are no known solutions at this time besides power cycling the device when it happens.

@uzlonewolf uzlonewolf added the tuya_device Support for specific Tuya Devices label Jan 14, 2025
@jasonacox
Copy link
Owner

I sure wish we knew what is happening inside these devices that is causing that. There must be some memory stack or buffer overrun corrupting the execution code space. If we knew of a way to clear it, we could add that. I suspect Tuya never soak tests the local APIs for conditions like this. Or, possibly the app is sending something that is triggering the clear?

@hluhome
Copy link
Author

hluhome commented Jan 15, 2025 via email

@jasonacox
Copy link
Owner

No, I have 33 devices that do not do this. It is a small percentage that behave this way, but it seems to be more prominent with 3.4 devices.

@hluhome
Copy link
Author

hluhome commented Jan 16, 2025 via email

@jasonacox
Copy link
Owner

Are you seeing problems with the 3.3 devices, or just the heatpump?

If anyone has suggestion for these "stop responding" 3.4 devices, we would love to hear your ideas. My suggestion was to try the SmartLife app after the device locks up to see if it can unlock it. That may give us a clue as to what we could send to the device to free it.

@hluhome
Copy link
Author

hluhome commented Jan 17, 2025 via email

@jasonacox
Copy link
Owner

Thanks @hluhome ! Let us know what you find out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tuya_device Support for specific Tuya Devices
Projects
None yet
Development

No branches or pull requests

3 participants