ziirish / OctoPrint-TuyaSmartplug

Tuya Smartplug plugin for OctoPrint
Other
19 stars 15 forks source link

DEBUG: Something went wrong while running the command #46

Open wongzhiwei98 opened 1 year ago

wongzhiwei98 commented 1 year ago

The plugin used to work for me until recently. Does anyone know what the issue is here regarding the command in the log?

Debug Logging Generated: [2022-12-11 04:25:58,170] DEBUG: Checking status of Smart Switch. [2022-12-11 04:25:58,172] DEBUG: Sending command: info to Smart Switch [2022-12-11 04:25:59,334] DEBUG: Something went wrong while running the command [2022-12-11 04:28:20,678] DEBUG: Checking status of Smart Switch. [2022-12-11 04:28:20,679] DEBUG: Sending command: info to Smart Switch [2022-12-11 04:28:20,854] DEBUG: Something went wrong while running the command [2022-12-11 04:29:37,332] DEBUG: Checking status of Smart Switch. [2022-12-11 04:29:37,333] DEBUG: Sending command: info to Smart Switch [2022-12-11 04:29:38,573] DEBUG: Something went wrong while running the command [2022-12-11 04:29:41,078] DEBUG: Checking status of Smart Switch. [2022-12-11 04:29:41,078] DEBUG: Sending command: info to Smart Switch [2022-12-11 04:29:41,235] DEBUG: Something went wrong while running the command [2022-12-11 04:29:43,676] DEBUG: Checking status of Smart Switch. [2022-12-11 04:29:43,676] DEBUG: Sending command: info to Smart Switch [2022-12-11 04:29:44,930] DEBUG: Something went wrong while running the command

swilsonnc commented 1 year ago

Which hardware and os are you running octoprint on?

wongzhiwei98 commented 1 year ago

systeminfo.txt

Here is the system info generated. Let me know what info you need.

swilsonnc commented 1 year ago

The file you posted was blank.

wongzhiwei98 commented 1 year ago

systeminfo.txt

Sorry, please check the file attached here.

wongzhiwei98 commented 1 year ago

Any update on this issue?

swilsonnc commented 1 year ago

Can you log into octopi cli and run python --version and paste the results?

wongzhiwei98 commented 1 year ago

Can you log into octopi cli and run python --version and paste the results?

image

swilsonnc commented 1 year ago

Inn your systeminfo.txt is says python version 3.7.3. I am guessing you are running octoprint in the venv and it is running python 3.7.3. Try running python3 --version. Either way if you are on python 3.7.3 then the plugin should work fine. Did anything change between it working and not working?

swilsonnc commented 1 year ago

What command are you using in octoprint (M81 ip_address)? Is the ip address correct for the plug? Is use version 3.3 checked in the plugin for the plug?

wongzhiwei98 commented 1 year ago

Inn your systeminfo.txt is says python version 3.7.3. I am guessing you are running octoprint in the venv and it is running python 3.7.3. Try running python3 --version. Either way if you are on python 3.7.3 then the plugin should work fine. Did anything change between it working and not working?

image

Is on Python 3.7.3. I do not think I change anything before it was working. I am running on a normal raspberry pi only (not sure what is venv). Could it be anything to do with Tuya backend side regarding the keys and ID?

M81 command for my printer stated. It should be on its default setting, I didnt change anything for this command image My printer is still ON after running M81. My IP is correct cause I am using my Asus router to check the IP for each device. Version 3.3 is checked on the Smart Switch Tuya plugin configuration.

Is it working for your printer now ? Or do you encounter any issue.

wongzhiwei98 commented 1 year ago

Any update on this issue @swilsonnc ?

swilsonnc commented 1 year ago
    Have you tried using the smart life app adding your plug and turning it off and on there.  That will at least let you know it works.Scott 
    Get Outlook for iOS

 From: wongzhiwei98 @.>Sent: Monday, February 20, 2023 8:53 PMTo: ziirish/OctoPrint-TuyaSmartplug @.>Cc: swilsonnc @.>; Mention @.>Subject: Re: [ziirish/OctoPrint-TuyaSmartplug] DEBUG: Something went wrong while running the command (Issue #46)  Any update on this issue @swilsonnc ?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

wongzhiwei98 commented 1 year ago

Yes, I have tested with the smart life apps and the switch work normally without issue.

For anyone else that sees this, do you guys have the same issue? If so, could you comment below? Thanks

swilsonnc commented 1 year ago
    Can you post a screenshot of your settings in octoprint?
    Get Outlook for iOS

 From: wongzhiwei98 @.>Sent: Wednesday, February 22, 2023 8:21 PMTo: ziirish/OctoPrint-TuyaSmartplug @.>Cc: swilsonnc @.>; Mention @.>Subject: Re: [ziirish/OctoPrint-TuyaSmartplug] DEBUG: Something went wrong while running the command (Issue #46) 

Yes, I have tested with the smart life apps and the switch work normally without issue.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

wongzhiwei98 commented 1 year ago

Can you post a screenshot of your settings in octoprint? Get Outlook for iOS  From: wongzhiwei98 @.>Sent: Wednesday, February 22, 2023 8:21 PMTo: ziirish/OctoPrint-TuyaSmartplug @.>Cc: swilsonnc @.>; Mention @.>Subject: Re: [ziirish/OctoPrint-TuyaSmartplug] DEBUG: Something went wrong while running the command (Issue #46)  Yes, I have tested with the smart life apps and the switch work normally without issue. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

image