meg768 / homebridge-ikea-tradfri-gateway

homebridge-ikea-tradfri-gateway
GNU General Public License v3.0
73 stars 24 forks source link

"The gateway did not respond in time" in v1.2.33 #73

Open ststefa opened 3 years ago

ststefa commented 3 years ago

I just wanted to let you know that I have a problem with using the latest v1.2.33 in Homebridge. It complains...

TradfriError: The gateway did not respond in time.
    at TradfriClient.<anonymous> (/usr/lib/node_modules/homebridge-ikea-tradfri-gateway/node_modules/node-tradfri-client/build/tradfri-client.js:186:39)
    at Generator.next (<anonymous>)
    at fulfilled (/usr/lib/node_modules/homebridge-ikea-tradfri-gateway/node_modules/node-tradfri-client/build/tradfri-client.js:5:58)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) {
  code: 1
}

I reverted back to v1.2.32 and everything works fine.

My configuration looks like so (excerpt)

{
    ...
    "platforms": [
        ...
        {
            "name": "Ikea Trådfri Gateway",
            "platform": "Ikea Trådfri Gateway",
            "_bridge": {
                "username": "A0:C9:BC:67:D3:43",
                "port": 12345
            },
            "host": "192.168.33.44",
            "securityCode": "secret",
            "expose": [
                "lightbulbs",
                "outlets",
                "blinds"
            ]
        }
    ]
}

I tried ...

None of these could make v1.2.33 work for me.

mentex23 commented 3 years ago

same here

michaelvsvendsen commented 3 years ago

Same error. Reverted to v1.2.32

TradfriError: The gateway did not respond in time. at TradfriClient. (/usr/lib/node_modules/homebridge-ikea-tradfri-gateway/node_modules/node-tradfri-client/build/tradfri-client.js:186:39) at Generator.next () at fulfilled (/usr/lib/node_modules/homebridge-ikea-tradfri-gateway/node_modules/node-tradfri-client/build/tradfri-client.js:5:58) at processTicksAndRejections (node:internal/process/task_queues:96:5) { code: 1 }

takerukoushirou commented 2 years ago

I had the same problem suddenly appearing after a Homebridge upgrade/restart yesterday.

In my case though explicitly configuring the host IP of the gateway circumvented the problem. For some reason, even though the gateway is correctly detected on the network, it seems the CoAP library fails to resolve the IP correctly. A problem that never happened before.

a-camacho commented 2 years ago

Same here, rollback to v1.2.32 and it works again.

juan-conca commented 1 year ago

Hi guys, thanks for the info here, but still not working for me, with the latest version or the mention above.

The error I have is this:

[9/18/2022, 8:37:14 PM] [Ikea Trådfri Gateway] Discovered host "gw-xxxxxxxxxxxx"
TradfriError: The gateway did not respond in time.
    at TradfriClient.<anonymous> (/volume2/homebridge/node_modules/homebridge-ikea-tradfri-gateway/node_modules/node-tradfri-client/build/tradfri-client.js:190:39)
    at Generator.next (<anonymous>)
    at fulfilled (/volume2/homebridge/node_modules/homebridge-ikea-tradfri-gateway/node_modules/node-tradfri-client/build/tradfri-client.js:5:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  code: 1
}

The configuration for the module is like this:

"platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "platform": "Ikea Trådfri Gateway",
            "name": "Ikea Trådfri Gateway",
            "securityCode": "secret",
            "expose": [
                "lightbulbs",
                "outlets",
                "blinds"
            ]
        }
    ]

I'm missing something, anything else is required @a-camacho ? How do you get the IP of the Ikea Gateway @takerukoushirou ?

audiocommander commented 1 year ago

Got the same issue recently and I can fix it by restarting the Tradfri Bridge. However, I had to do this once a month/quarter or so - but recently I have to reboot the Tradfri Bridge almost every day. The really bad thing is, that this failure causes the HombeBridge instance to restart indefinitely with a corresponding CPU and wattage peak. Very inconvenient; I think it would be better if HomeBridge would be able to run although this plugin fails loading than ending up in an infinite boot loop rendering everything useless. My plan is to try and get a Zigbee stick for the Raspi in order to remove the Tradfri Bridge alltogether.

Edit: I have checked the configuration and it is setup as recommended with a fixed IP. Everything else up to date. Tradfry Bridge only 12 months old with just a few lights.

audiocommander commented 1 year ago

How do you get the IP of the Ikea Gateway

You have to open up your router settings. Depending on the make/model check your local network and make sure that the IP doesn't change, if it's set to dynamic. Then you can just copy and paste your local IP.

meg768 commented 1 year ago

I abandoned the IKEA Tradfri Bridge a long time ago. Now using a Homey which is compatible with Philips Hue, Nexa, Telldus, IKEA, whatever. But I will try to continue to update and merge new pull requests.