jneilliii / OctoPrint-TPLinkSmartplug

105 stars 57 forks source link

[BUG]: New Firmware for HS103 Removes support #163

Closed Yeraze closed 4 years ago

Yeraze commented 4 years ago

(Tracking this on python-kasa/python-kasa#42 also)

Describe the bug A new firmware update for the HS103 removes all local network access. Everything works fine on a fresh stock unit if you bypass the Firmware Update during configuration.

jneilliii commented 4 years ago

Not much I'll be able to do if tplink blocks the direct communication, but thanks for the heads up.

eschulma commented 4 years ago

HS300 is not working either. I did upgrade the firmware and don't have a "fresh" one to test.

jneilliii commented 4 years ago

That blows really. Hopefully someone smarter than me is able to reverse engineer it again. Otherwise my plugin is dead in the water. Thanks for the heads up, as that is the unit I'm using. Cam you tell me what the firmware version is?

Yeraze commented 4 years ago

So I'm very confused now.. I setup the upgraded unit this weekend on a separate appliance (box fan), and now it works. the kasa commandline tool finds both units. Both units report Hardware 2.1 and Firmware 1.1.2.

eschulma commented 4 years ago

It may only be partial. I can see the energy usage. But auto shutoff etc. does not work.

jneilliii commented 4 years ago

@eschulma do mean using countdown timers? Can you enable debug logging in the plugin's settings and restart OctoPrint and attempt to do whatever is not working, and then download the plugin_tplinksmartplug_debug.log file from the logging section of OctoPrint's settings. That might help see what's going on.

eschulma commented 4 years ago

Ok I will.

eschulma commented 4 years ago

Here is the log. As you see at 2020-05-29 13:45:52,982 it says that it is powering off the plug -- but it doesn't happen. The plug remains on and the printer is still running. plugin_tplinksmartplug_debug.log

jneilliii commented 4 years ago

So I just had the time to really look at your log @eschulma and it appears you are using a power strip HS300. Did you enable the option within the plugin's settings to automatically power off?

image

@Yeraze can you confirm the plugin is working for you now or not?

Yeraze commented 4 years ago

It's working beautifully now.

eschulma commented 4 years ago

That checkbox was off. I will see what happens tonight.

eschulma commented 4 years ago

I'm sorry to say that I still cannot control the plug even after ensuring the "Off on idle" is set.

jneilliii commented 4 years ago

Not sure if it would make a difference, but did you restart octoprint after making the change? Can you please share screenshots of all your settings and provide log again after restarting octoprint and letting the idle time be reached?

eschulma commented 4 years ago

Good news, it is now working.

I had restarted OctoPrint, but it still didn't work. But I realized that my changes to the individual plugs were not sticking. I had to change them, press close, then on the main screen choose save even if none of the main screen options changed.

To avoid confusion it might be nice to have a save button directly on the plug option page. But this was my error and I thank you for your help.

jneilliii commented 4 years ago

Oh right, didn't think of just pressing close on the main settings modal, probably add a note to the bottom of the plug editor about that.

mikaelnelson commented 4 years ago

I just bought a HS103 for my 3D printer and ran into this issue where it couldnt be controlled locally. I did see this on the TPLink site and was able to get the plug set to local only and working with this plugin: https://www.tp-link.com/us/support/faq/2707/

My HS103 is on firmware 1.1.2, not sure if this is the version people are having issues with or not. The app says my device is on the most recent software version.

jneilliii commented 4 years ago

Thank you for sharing that faq article.

jneilliii commented 4 years ago

I've added a link to the FAQ to the readme and it seems that everyone here effected by this issue is no longer having the problem. I'm going to go ahead and close this ticket now. Don't hesitate to open a new one if this comes back.

whooooosh1 commented 3 years ago

I have the tplink p100 smart plug (other series of tplink) but I get the same debug file error's as the rest. Now can i not set my plug to local only because there is not an option for in the app. Does anyone still have this problem and know exactly now how to fix it? Or else, any suggestions on what I should do or buy to control my printer?

jneilliii commented 3 years ago

@whooooosh1 the p100 is not a kasa based device, it's a tapo based device. You need to look into this fork to control your plug, this one won't.

https://github.com/Tyfy/OctoPrint-TapoSmartplug

whooooosh1 commented 3 years ago

@jneilliii Ahh this would be helpful. I taught that the tp link plugin would work. Thanks for that, but now i have a second problem that it keeps getting stuck on "checking status of (the ip for the smart plug)". The thunderbolt icon keeps spinning but would not connect.

Then I have the question if by the ip address you need to add /0 on the end when only one is connected, or if you only have to put the ip in and it would work. Also, for the user-name and password I assume that I need to fill in my user name (not email) and password of my tapo account?

Thanks for helping me!

jneilliii commented 3 years ago

I have no idea how that other plugin works. Best to seek help in its issue tracker.

https://github.com/Tyfy/OctoPrint-TapoSmartplug/issues

whooooosh1 commented 3 years ago

Oke thanks, I'll ask if he can help me further.