node-red-contrib-tplink
node-red-contrib-tplink copied to clipboard
TCP Socket Closed and Connection Refused errors
Problem enconutered I'm using multiple kasa nodes (four, and then one in a subflow which appears 7 times) at different points in my flow to control a single HS100. I have another HS100 and a HS110 on my network but they are not configured in any of the kasa nodes.
I'm getting repeated errors in the Node-RED debug panel immediately after deploying the flow (this is with kasa node debug turned on):
Error connecting to device 192.168.1.112: Error: TCP Socket Closed. segment:0 hadError:false
The nodes do work - for a period of time measured in minutes or hours, and then stop working completely. Sending input does not result in the device responding and there is no output from the node. Redeploying just the node which is borked seems to get things moving again. I'm having a hard time confirming, but I don't think all the nodes stop working at the same time.
Once the node has stopped working, it's this error in the debug panel:
Polling error for 192.168.1.112: Error: connect ECONNREFUSED 192.168.1.112:9999
I have disabled polling on all but one of the nodes, which is set to 15000/10000. This hasn't seemed to make any difference - if anything, it's worse now.
Happy to share my flow if that would be helpful.
OS: Raspbian buster on Pi 3B+