I have couple of Tuya devices, that worked well with Home Assistant until I’ve reset to factory settings. After that home assistant lost connection with Tuya devices. When I’m trying to reconnect tuya account, there is error: “login error (1013): request time is invalid”. I’ve read in internet, that could be problems with the time settings, but I’ve checked time settings in my router and timezone settings in Home Assistant, and all correct. What can be reason of that error?
I am having the same issue worked ok last night but then I noticed this morning when I tried to relink it I am getting the same error as you reported above. I did add another Tuya account to IOT dev portal to check but no luck.
Hi, this happened to me yesterday.
Don’t know how to solve the issue.
Time zones are set correctly in both Home Assistant and Tuya platform.
I have tried also with LocalTuya, none of them work and I get the same error: “Failed to authenticate. Error 1013: request time is invalid”
OK, I got it. For unknown reason, hassos was configured to use ntp server from cloudflare which was late by 15 minutes. This made the link to Tuya API not accepted.
I changed the NTP server to ntp to 0.fr.pool.ntp.org in file /etc/systemd/timesyncd.conf.
Note: Changing NTP server requires having root access if you use HassOs. I used the procedure here to install configurator and then edit /etc/systemd/timesyncd.conf.
Everything came back to normal and time is now also overall OK in home assistant. And tuya integration works again !
It is not about the wrong time zone. Tuya LoT Core is free for the first 6 months. Then you must start paying or you can try to ask for another 6 months of Trial Period.
II had the same issue.
On prod VM / VMWare, error message was: access denied
On test VM / Virtualbox error message was: request time is invalid
As proposed for solution on another forum, I just reset App password and problem was solved on both VM…
My HA instance runs on a Debian machine and was not perfectly synced for time. I found I did not have systemd-timesyncd installed on the machine. This seems to have solved it for me.
I had same error 1013. I couldn’t access to Tuya integration (it gave me also this error:
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 640, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
I SOLVED the problem by disabling the ipv6 protocol in the machine where installed WMware machine with Home Assistant OS.
I hope it can be useful as I got crazy n finding a solution and read hundreds of forum without getting valid clue
This solved the issue for me too, thanks! Home Assistant had the correct time, but I installed systemd-timesyncd on the Proxmox host machine (not the HAOS VM) and then the Tuya Local add-on could connect no problem.