OctoPrint-TuyaSmartplug icon indicating copy to clipboard operation
OctoPrint-TuyaSmartplug copied to clipboard

DEBUG: Something went wrong while running the command

Open wongzhiwei98 opened this issue 2 years ago • 15 comments

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

wongzhiwei98 avatar Dec 11 '22 04:12 wongzhiwei98

Which hardware and os are you running octoprint on?

swilsonnc avatar Dec 30 '22 03:12 swilsonnc

systeminfo.txt

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

wongzhiwei98 avatar Jan 01 '23 10:01 wongzhiwei98

The file you posted was blank.

swilsonnc avatar Jan 03 '23 17:01 swilsonnc

systeminfo.txt

Sorry, please check the file attached here.

wongzhiwei98 avatar Jan 03 '23 18:01 wongzhiwei98

Any update on this issue?

wongzhiwei98 avatar Jan 19 '23 08:01 wongzhiwei98

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

swilsonnc avatar Jan 19 '23 15:01 swilsonnc

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

image

wongzhiwei98 avatar Jan 19 '23 15:01 wongzhiwei98

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 avatar Jan 19 '23 16:01 swilsonnc

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?

swilsonnc avatar Jan 19 '23 16:01 swilsonnc

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 avatar Jan 27 '23 08:01 wongzhiwei98

Any update on this issue @swilsonnc ?

wongzhiwei98 avatar Feb 21 '23 01:02 wongzhiwei98

	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: @.***>

swilsonnc avatar Feb 21 '23 15:02 swilsonnc

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

wongzhiwei98 avatar Feb 23 '23 01:02 wongzhiwei98

	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: @.***>

swilsonnc avatar Feb 23 '23 13:02 swilsonnc

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

wongzhiwei98 avatar May 11 '23 02:05 wongzhiwei98