rogierhofboer / com.ikea.tradfri.gateway

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

Crash: Error: unexpected response (4.00) to observeScene #20

Open Barbados02 opened 5 years ago

Barbados02 commented 5 years ago

The app crashes daily, a manual restart of the app makes it work again. Before i did this with candy, but this does not work since homey v2.

This is the error i see in the homey app.

image

rogierhofboer commented 5 years ago

@Barbados02 thanks for the report. It seems to crash in in the underlying node-tradfri-client module. Since I am not on 2.0 myself I cannot reproduce the issue. Just to be sure: Did you change scenes / groups in between or is it running without making changes and then it suddenly crashes?

Barbados02 commented 5 years ago

I waited until it happend again. It seems the app crashed (just?) after i turned on the light.
The lights did go on and i was unable to turn them off. Then i noticed the crash. unfortunately Homey is not very exact in the time of crash that i find. In the log what Homey does see screenshot:

image

And the app time of the crash is not exact at all but:

image

json81 commented 5 years ago

App does not crash for me on Homey 2.0.2 (and did not crash on RC either). Bad bulb?

rogierhofboer commented 5 years ago

Could be, but most probably it has a bad ZigBee reception due to the distance of it to the gateway or other bulbs. Still the app should not crash.

As soon as 2.x also solves the z-wave stability / range problems, I will upgrade.

Barbados02 commented 5 years ago

Strange thing is that the tratfri gateway works without a problem. I only send on or off to a room i did not add all bulbs seperate. So i do not think it has to do with zigbee because homey is not talking zigbee to the gatweway, or do i miss something?

rogierhofboer commented 5 years ago

You are correct about that. Homey communicates over TCP (via Wifi / ethernet) to the tradfri gateway and the tradfri gateway communicaties with Zigbee to the bulbs. I am now on Homey firmware 2.04 myself and want look into the crashing issue. Can you provide a step-by-step guide to reproduce this, or does it happen "randomly"?

Lindansaren commented 5 years ago

It happens to me each day as well. Just random crashes of the app. All works fine after rebooting the app in homey.

cesarenl commented 5 years ago

Any updates on the functionality of this app? I'm postponing the update to Homey 2, till I'm pretty sure most of the apps I'm using are working.

rogierhofboer commented 5 years ago

I still did not take take the time to look at it.

The problem is, I don't really use the gateway myself now.

Hue colour lamps stopped working correctly with the Ikea gateway after the last update and also when switched via regular switch, the lamps 'flicker' once or twice a few seconds after they are turned on when using the Ikea gateway.

I might try to update the node-tradfri-client that I am using, because this app is only a wrapper around this lib.

cesarenl commented 5 years ago

Is there another way to control the tradfri's via Homey, without the gateway?

rogierhofboer commented 5 years ago

There are 4 ways to control them:

  1. Directly via Homey
  2. Via the Ikea Tradfri gateway
  3. Via the Philips Hue Bridge
  4. Create your own gateway and homey app for it (for example a raspberry pi with a Conbee II or a Phoscon gateway using the DeConz REST API http://dresden-elektronik.github.io/deconz-rest-doc/)

Note that the last time I tried (more than a year ago) all the options, changing themes (colour / light temperature) with 5 button remote only worked with options 2 and 4, in other works, if you use the Hue bridge or Homey directy you loose some functionality of the 5 button remote.

Berrie1 commented 4 years ago

I am experiencing the same. When the light switch is used to turn on the lights, the app crashes. When I restart the app, everything works fine again. The problem occurs since 2 more light bulbs were added. The total number of bulbs was increased from 10 to 12. The two added bulbs are a newer version than the other bulbs. Would it help to send a diagnostic report?

json81 commented 4 years ago

Anyone got problems with crashes anymore? It works fine for me.

Berrie1 commented 4 years ago

After the group of 12 bulbs was split in 2 groups of 6 bulbs, I am not experiencing any problems anymore. So it now works fine for me as well.

rogierhofboer commented 3 years ago

I still get many reports of crashes in the (external) node-tradfri-client. The stack trace is always the one at the start of this issue. Because I don't experience the problem, maybe because I don't use groups myself, please contact me (via this issue or via email) so we can look at it.

rogierhofboer commented 3 years ago

Underlying issue: https://github.com/AlCalzone/node-tradfri-client/issues/36

rogierhofboer commented 3 years ago

Maybe 'fixed' by the new scenes ;)