#problem with tuya api

1 messages · Page 1 of 1 (latest)

shell arrow
#

hi im not sure if this is place where i can to look for help with this problem but i have contact sensors from aliexpress that tuya integration dont support local tuya too so i used this this tutorial https://blog.rpanachi.com/howto-integrate-unsupported-tuya-devices-homeassistant to check if in my case door is open on HA it working for like 10hours and in the night today its stopped working on tuya dev api exproler when i want to get device info i cant code error 1010 token expired ( i cant to get new token) and this script give me this when i try to use it

Traceback (most recent call last):
File "/PATH_TO_YOUR_CONFIG/tuya.py", line 94, in <module>
attributes = get_device_properties(access_token, device_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/PATH_TO_YOUR_CONFIG/tuya.py", line 76, in get_device_properties
properties = json_result["result"]["properties"]
~~~~~~~~~~~^^^^^^^^^^
KeyError: 'result'

some one know how to fix this or i just need to wait

#

other things that use local tuya or tuya integration in house work normaly (sorry for my english in case of errors)

tepid pilot
#

try disable IPv6 in network settings, then try again

#

/PATH_TO_YOUR_CONFIG??

shell arrow
shell arrow
tepid pilot
#

check tuya developers platform if your IP is in the whitelist of your project. Maybe Tuya API is blocking you

#

though i am not certain to be honest.

shell arrow
#

and remember tuya api gives me error 1010 acces token is expired but i cant get new one

shell arrow
#

i tried to ask tuya api rn for device details and get error and messsage please upgrade to the official version your quota of trial edition is used up 😭😭😭😭 @tepid pilot