ziirish / OctoPrint-TuyaSmartplug

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

All I get is a network error, but the plug is reachable through the app #47

Closed Deses closed 1 year ago

Deses commented 1 year ago

For the longest time I have been unable to use my plug using the plugin. image

I can toggle it using Google Home or the Smart Life app, it's even visible in the Tuya IoT Platform site, which I used to get the local key again just in case it changed.

The debug log only shows this, which is not very helpful:

[2023-02-28 21:52:01,363] DEBUG: Checking status of Ender 3.
[2023-02-28 21:52:01,364] DEBUG: Sending command: info to Ender 3
[2023-02-28 21:52:04,516] DEBUG: Network error

The plug 100% has network because every other app can reach it. In the plug-in's settings the IP is the correct one and the Device ID is also ok. Label is the same as the name of my plug and Version 3.3 is enabled. My system runs OctoPrint 1.8.6 Python 3.7.3 OctoPi 0.17.0.

Any ideas?

Deses commented 1 year ago

ok I was trusting the output of Advanced IP Scanner but that 192.168.1.110 IP it was showing me was outdated, I don't know why that program shows me that if the device is not reachable, but that's unrelated to this issue.

If I ping 192.168.1.110, there's indeed nothing going on. I've checked with The Smart Life app and the device's IP is 74.126.189.*. It's not showing me the last numbers. My public IP is not that one though, my public IP starts with 96.x.x.x.

What is going on? why the different IP?

Deses commented 1 year ago

Reseted the device, now its IP is the same as my public IP, so that 74.x.x.x should be an old public I had.

Anyway, why is this stupid thing not showing anywhere in my local network. It's like it's skipping my router and Pi-Hole and connecting directly to the internet. Pihole only registered network activity for one minute or so, captured 15 DNS requests and then it disappeared again. I tried to MAC block the smart plug withing my router because it doesn't have VLAN support and I can't block access to the outside internet, but that did nothing.

Deses commented 1 year ago

I ended up desoldering the ESP8285 chip that my BSD34 smart plug had and I flashed it with tasmota. Screw Tuya lol