Hello,
I have connected a TP-Link P100 socket to each of my printers and wanted to control them via the "TP-Link Smartplug" plugin, but I get the error:
[2022-02-17 08:40:11,365] DEBUG: {'system': {'get_sysinfo': {'relay_state': 3}}, 'emeter': {'err_code': True}}
[2022-02-17 08:40:12,722] DEBUG: ImmutableMultiDict([('checkStatus', '192.168.178.171')])
[2022-02-17 08:40:12,722] DEBUG: Checking status of 192.168.178.171.
[2022-02-17 08:40:12,735] DEBUG: {'system': {'get_sysinfo': {}}
[2022-02-17 08:40:12,736] DEBUG: IP 192.168.178.171 is valid.
[2022-02-17 08:40:12,736] DEBUG: Sending command {'system': {'get_sysinfo': {}} to 192.168.178.171
[2022-02-17 08:40:12,742] DEBUG: Could not connect to 192.168.178.171.
While 192.168.178.171 is a valid IP address, you haven't given us enough information to determine if it is a valid address on your Local Area Network (LAN).
Please SSH into your system and provide the output of ifconfig. Verify that your local IP address is in the same netblock (i.e. 192.168.178.* with a netmask of 255.255.255.0).
Any additional troubleshooting that can be done? Anything from a wireless/networking standpoint that would prevent the plugin from connecting to the strip?
There is potentially what's known as AP Isolation mode that would prevent wireless devices from connecting to wired/other wireless devices on the network, but I think that would also impact your access to the Pi from other devices on the network as well. If you're not seeing errors in octoprint.log or plugin_tplinksmartplug_debug.log outside of what you've already shared narrowing down the issue will be difficult. It could also be TPLink deciding to block local access the way they did on one firmware push to the UK devices at one point.
It could also be a routing issue if the two devices are connecting to different radio frequencies (2.4GHz vs 5GHz). I have seen in some cases where I can't access OctoPrint when not on the same frequency, which is a router issue, and sometimes gets resolved with restarting the router.
It seems that my issues may have been network related. When I ssh into the Raspberry Pi, I noticed that there were several IPs that I could not ping. When I ran an arp -n, I saw an (Incomplete) finding the MAC addresses. Rebooted my switch and change the DHCP scope to exclude the address of the Pi and the TPLink strip. I can now communicate to them!!! Thanks much for pointing me in the right direction.