simeonovp / node-red-contrib-tuya-devices

Support for Tuya devices in SmartHome projects using Node-RED. The goal of the project is to allow using local devices supports Tuya in Node-Red
MIT License
8 stars 1 forks source link

Problem to discover device #6

Open jpg06 opened 4 months ago

jpg06 commented 4 months ago

Hi, The manager node is "online" When i click to refresh, i have an error : "Error: [TuyaCloudSDKException] code: 60009001 message: "

image

If i use a device node, i found my device with no "Data Point"

adis1987 commented 4 months ago

I have the same issue if I exclude User ID in settings and all other parameters are added. If I add my User ID then I get other message: "Error: permission deny"

Have no clue what to do.

jpg06 commented 4 months ago

Same as you if i had the UserID

krall70 commented 1 month ago

I have the same problem... News ???

simeonovp commented 1 month ago

The version 1.3.0 is available. @krall70 : please get the version used on problem reports.

krall70 commented 1 month ago

The version 1.3.0 is available. @krall70 : please get the version used on problem reports.

My version is 1.3.0 but if i refresh tuya manager recive the same error: "Error: [TuyaCloudSDKException] code: 60009001 message: " My cloud project in tuya is OK. AccessID and Secret is OK. The authorization is OK. With the same data I regularly log in with TiniTuya and with Tuya-Cli. Have any idea ? Tanks.

simeonovp commented 1 month ago

The version 1.3.0 is available. @krall70 : please get the version used on problem reports.

My version is 1.3.0 but if i refresh tuya manager recive the same error: "Error: [TuyaCloudSDKException] code: 60009001 message: " My cloud project in tuya is OK. AccessID and Secret is OK. The authorization is OK. With the same data I regularly log in with TiniTuya and with Tuya-Cli. Have any idea ? Tanks.

May be something is going wrong in you local cache. You can try manualy clear the cache. Simply delete the content of the folder ".node-red/node_modules/node-red-contrib-tuya-devices/resources/". Then click the Refresh button in the GUI of the Tuya Manager node. If the credentials are correct, the local cache will be filled from the cloud. In the next version I can add a new "clear cache" option over the GUI.

jpg06 commented 1 month ago

Hi, The last version didn't discover my devices. But i can send command to a tuya usb wifi relay and it work ! Great.

krall70 commented 1 month ago

good morning, I deleted the resources folder, I restarted nodered but the problem remains the same. Do you have any other suggestions? Thanks in advance!

Il giorno ven 4 ott 2024 alle ore 19:38 simeonovp @.***> ha scritto:

The version 1.3.0 is available. @krall70 https://github.com/krall70 : please get the version used on problem reports.

My version is 1.3.0 but if i refresh tuya manager recive the same error: "Error: [TuyaCloudSDKException] code: 60009001 message: " My cloud project in tuya is OK. AccessID and Secret is OK. The authorization is OK. With the same data I regularly log in with TiniTuya and with Tuya-Cli. Have any idea ? Tanks.

May be something is going wrong in you local cache. You can try manualy clear the cache. Simply delete the content of the folder ".node-red/node_modules/node-red-contrib-tuya-devices/resources/". Then click the Refresh button in the GUI of the Tuya Manager node. If the credentials are correct, the local cache will be filled from the cloud. In the next version I can add a new "clear cache" option over the GUI.

— Reply to this email directly, view it on GitHub https://github.com/simeonovp/node-red-contrib-tuya-devices/issues/6#issuecomment-2394242859, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALQFEYVX3QTZZCQYCRM2UYLZZ3HABAVCNFSM6AAAAABLHHMDR6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJUGI2DEOBVHE . You are receiving this because you were mentioned.Message ID: @.***>

simeonovp commented 1 month ago

@krall70 @jpg06 Hi, I fixed a finding when discovering devices and made the logic more robust in case of connection errors. The tests with full discovery after deleting the cache were OK. The patch version v1.3.1 should be available today. If you still have any problems, you can send me more details for a more detailed problem analysis. E.g. zipped local cache folder (".node-red/node_modules/node-red-contrib-tuya-devices/resources/") and console output

krall70 commented 1 month ago

Hello, I downloaded the latest version 1.3.1 but I don't see the changes reported in the 1.3.1 changelog. Can you confirm that they still need to be made? Thanks!

krall70 commented 1 month ago

Hello, I tried everything but it keeps giving me the error: "Error: [TuyaCloudSDKException] code: 60009001 message: " when I try to list the devices associated with my account. Also, every time I run the Deploy, it gives me the following error: "Cloud configuration is wrong or missing, please review the node settings" Attached is the resources folder related to the test project. I hope you can help me! Thanks a lot! resources.zip

simeonovp commented 1 month ago

Hello, I tried everything but it keeps giving me the error: "Error: [TuyaCloudSDKException] code: 60009001 message: " when I try to list the devices associated with my account. Also, every time I run the Deploy, it gives me the following error: "Cloud configuration is wrong or missing, please review the node settings" Attached is the resources folder related to the test project. I hope you can help me! Thanks a lot! resources.zip

@krall70 : This exception points more to a problem with the cloud connection. In the cache you can see that the synchronization started but was not completed. I have four Node-Red servers (RaspberryPi) on which the package runs. I have observed similar problems when the internet connection was not stable. The exception comes from the framework and I have not yet found a way to catch it. Note: The Tuya devices do not necessarily need a connection to the internet once they have been set up. The Node-Red server only needs this until the synchronization is completely completed. To your question: the entries in the changelog for 1.3.1 should be present in the version Good luck!

simeonovp commented 2 weeks ago

Local cash problem is fixed in node-red-contrib-tuya-devices v1.3.5