question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stopped working from Homebridge `ECONNREFUSED`

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

Out of nowhere, I’m now not able anymore to control my plug.

There’s this error in the log and it’s weird because the IP adress that it is showing is one of my computer (not even the one with homebridge) and not the plug…

I don’t know why.

I tried upgrading the the latest v7.1.0, but it’s the same.

Also I’m still able to control the plugs from the Kasa App, so it really is from homebdrige.

What, if anything, has recently changed?

Nothing’s changed. It just happened out of nowhere…

Version

v7.1.0-next.0 / v7.0.1

Node Version

v16.14.0

Homebridge Version

v1.4.0

Which OS/Platform?

Linux

Relevant log output

[3/23/2022, 12:56:39 AM] [TplinkSmarthome.API] TCP 192.[...]:9999 Error: connect ECONNREFUSED 192.[...]:9999
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '192.[...]',
  port: 9999
}
[3/23/2022, 12:56:39 AM] [TplinkSmarthome.API] [Lampe] device.send() Error: connect ECONNREFUSED 192.[...]:9999
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '192.[...]',
  port: 9999
}
[3/23/2022, 12:56:39 AM] [TplinkSmarthome] [Lampe] {"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"192.[...]","port":9999}

Configuration

{
    "name": "TplinkSmarthome",
    "addCustomCharacteristics": true,
    "switchModels": [
        "HS103"
    ],
    "deviceTypes": [
        "plug",
        "bulb"
    ],
    "_bridge": {
        "username": "[...],
        "port": [...]
    },
    "platform": "TplinkSmarthome"
}

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
EricSabecommented, May 12, 2022

I think the magical fairies are temperamental.

0reactions
phydeauxfilmscommented, May 12, 2022

I think the magical fairies are temperamental.

LOL, That they are. Before I totally reorganized my network I was able to trigger it on command by checking the eufy cameras and operating some Tplink switches at the same time. Now it’s much less often and I can’t even trigger it at the moment. Last error was at 9:30 am this morning. It may just be an overloaded network combined with home bridge, a Pi-hole, and a neighborhood that has 116 Wifi networks within range of my apartment (true story, I checked wifi explorer). IDK. Just glad it’s working at the moment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

harmonyhub plugin error: "Error: connect ECONNREFUSED"
The homebridge-harmonyhub plugin was working OK last night (16th Dec 2018), but today issuing commands via Siri stopped working - TV, ...
Read more >
HomeKit Integration with Homebridge-Garadget Plugin
I've got homebridge running on an RPi. I copy the script in verbatim and get “Config Syntax Error”. “accessories”: [
Read more >
code: 'econnrefused', app 19097 output: syscall: 'connect'
There's this error in the log and it's weird because the IP adress that it is showing is one of my computer (not...
Read more >
Cannot make MQTT work with homebridge (Pi 3, Mac ...
(5/5) [3/26/2017, 5:52:24 PM] [eDomoticz] Could not connect to MQTT broker! (127.0.0.1:1883). Homebridge in installed and it seems to work.
Read more >
Home Bridge Home Assistant Plugin SSL - Homebridge
With one exception HomeBridge now can't talk to HomeAssistant i updated my HomeBridge ... So that would not work for me unfortunately.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found