jneilliii / OctoPrint-TPLinkSmartplug

105 stars 57 forks source link

[Feature Request]: #331

Closed alessio-pugliese closed 1 year ago

alessio-pugliese commented 1 year ago

Is your feature request related to a problem? Please describe. I'm running octoprint via a docker container which has its specific network, as per the default config (see here). If I ping from within a container terminal shell the IP address of my TPLink P110, which lives in my home network, I can successfully exchange packets of data, this means that the container see the smart plug is up. The problem is when I put the IP address of the smart plug in the TPlink plugin config, it doesn't seem to hook up to the smart plug.

Describe the solution you'd like The solution request is pretty straightforward. I'd like to have a solution for those who runs octoprint in a docker container.

Describe alternatives you've considered The alternative is to config the docker octoprint container to run on the host network. In this case network isolation is lost though.

jneilliii commented 1 year ago

Pretty sure this issue is because my plugin doesn't support tapo devices, only kasa controlled devices.

alessio-pugliese commented 1 year ago

I can confirm that my tapo p110 smart plug works flawlessly with PSUControl plugin combined with PSUControl -tapo subplugin. Sorry if I bothered with docker nonsense. It's a shame we Tapoers cannot give a try to your plugin though. Thanks for the support.

jneilliii commented 1 year ago

There is a fork of this plugin for tapo devices, but since I don't have any don't know how well it works.

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