rogierhofboer / com.ikea.tradfri.gateway

Athom Homey App for the IKEA Tradfri Gateway
MIT License
18 stars 21 forks source link

App does not work after Homey reboot #21

Closed json81 closed 4 years ago

json81 commented 5 years ago

Homey 2.0.2 (problem was present in all 2.0 versions up to current version).

Problem: IKEA Trådfri Gateway doesn't work after Homey reboot. Trådfri app works. How to reproduce: reboot Homey. Solution: In Homey, go to the IKEA Trådfri Gateway-app and click the save button (no need to change settings).

rogierhofboer commented 5 years ago

Seems it is not ready yet to connect just after reboot. It should retry, but this also doesn't seem to work for you. Unfortunately I am not able to test or reproduce this, since I am still on 1.5.13. Pull requests are welcome though...

slasktrat commented 5 years ago

No issue rebooting for me (2.0 stable)

ErikH-H commented 5 years ago

I have the same experience I could solve the issue by restarting the app

json81 commented 5 years ago

Thanks for your feedback.

I think I have found my problem. It is one of the bulb that is causing this behavior. If I remove the device from Trådfri Gateway I can reboot again and the connection to the gateway works without re-saving the settings . I will do some more research with this bulb and let you know the result.

json81 commented 5 years ago

Update: I have done some more testing with this particular bulb and it is not related to the problem. Problem seems to be intermittent and I think it is network related. Would it be possible to delay the connection retry to fix this problem?

mickeman commented 5 years ago

Hi, also got this problem now. (Unable to control Ikea Gateway after reboot) I have found out that if homey is connected to my newly installed Unifi AC Lite i cannot control my trådfri gateway from homey. Restarting app or re-saving settings helps, until homey is rebooted. Tried with 5ghz disabled in the AC-lite but that did not help. Tried a few different firmwares on the AC-lite too. (didn´t help) After much testing i found out that if i connect Homey to my old Unifi UAP v1 (2.4ghz only) the problem is solved. Now i can reboot homey and the trådfri gateway app works directly. (Have rebooted av few times without problem) I am running on beta firmware on both AP´s ver 4.0.21.9965 and homey is 2.0 Some kind of auto reconnect or maybe delay before starting the app after reboot could solve this?

json81 commented 5 years ago

Hi, Then we have something in common. I am using Homey 2.0.2 and UniFi AC-LR. I have just updated the firmware on AC-LR to latest stable (4.0.15). After the update I could reboot Homey and stay connected to Trådfri Gateway without problems (3 reboots). I just tried to reboot again when I saw your post and it failed. I have been running the same APs for the last year so no change there. My problems started after updated to Homey 2.0. I am running the UniFi app on Homey (that connects to UniFi Controller) without any problems (do not need to reconnect after reboot).

mickeman commented 5 years ago

Hi, I´m also using the Unifi app in homey without problems. (When Homey was connected with AC-lite) Everything else was working without problem. (Hue bridge and Harmony hub) I just tried rebooting again and it is still working. (Homey connected to my old UAP v1) Will try some more today with the AC-lite. Update: Did try all kind of settings but could not get it working with the AC-lite. (when rebooting) It seems to work stable after a restart of the app or re-saving the settings. Question now is if there is something we could do to get this fixed?

rogierhofboer commented 5 years ago

I am now on firmware 2.04 and I am also experiencing this problem now.

There should be no need to re-enter the security code (issue #25). Just go to settings and save the current settings (again). What also helps is to restart the Tradfri gateway app.

I will try look into this in the coming days.

Gizmopower1 commented 5 years ago

2.2.0 After restart of Homey it looses its security code. Type it in and save, and its ok again

rogierhofboer commented 5 years ago

What Homey firmware version are you using? Here at 2.1.2 this doesn't happen. I restarted Homey yesterday by pulling the plug (moved it to use a different wall socket)

Op vr 24 mei 2019 om 12:27 schreef Gizmopower1 notifications@github.com:

After restart of Homey it looses its security code. Type it in and save, and its ok again

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/rogierhofboer/com.ikea.tradfri.gateway/issues/21?email_source=notifications&email_token=ABQFREM7CXNRU2H3OC2Z5SDPW67HPA5CNFSM4GTUYVX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWE3DQQ#issuecomment-495563202, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQFREPUQFPMFKG6JBLC4Y3PW67HPANCNFSM4GTUYVXQ .

Gizmopower1 commented 5 years ago

It has been like this for some versions

I just updated to 2.2.0 rc7 Still the same...

proisland commented 4 years ago

I have the same issue every time I reboot the Homey. I have tried restarting the app, and pressing save in app settings without the issue going away. I always need to put in the security code before the app starts working again.

json81 commented 4 years ago

Same problem with Homey v.2.5.2 and IKEA Trådfri Gateway v.0.0.11. I need to push save-button in the app after I have restarted Homey.

frostih commented 4 years ago

Is there any solution to this problem? It's still like this on my Homey (v.3). I restart it every night and therefore I always need to submit the security code every morning. As much as I love this app, this is frustrating.

C0kedk commented 4 years ago

Is there any solution to this problem? It's still like this on my Homey (v.3). I restart it every night and therefore I always need to submit the security code every morning. As much as I love this app, this is frustrating.

just restart the ikea Gateway app via a flow, set it after 30 mins the homey reboots.

this works without having to resubmit security code.

rogierhofboer commented 4 years ago

Does this still happen with the latest (v0.1.0) version?

C0kedk commented 4 years ago

Yea

torroa commented 4 years ago

Any updates on this?

proisland commented 4 years ago

Still happens here as well. Every since I installed the first version of this app.

torroa commented 4 years ago

The updated v0.1.2 on jan. 16 seems to have fixed the connection to the gateway when Homey reboot.

Thank you for taking your time fixing this rogierhofboer. Just hoping that the "unknown error" does not re-appear. Any chance that increasing memory usage can be prevented? It starts at 12mb but quickly increase to 40mb if the app is not restarted. Memory spikes is not something the Homey is particularly found of as it only got 512 of them...

json81 commented 4 years ago

Closing this case now. Fixed in version 0.1.2.