YIO-Remote / remote-software

💎 YIO Remote Software repository
GNU General Public License v3.0
164 stars 21 forks source link

App doesn't start anymore without reachable dock #338

Closed zehnm closed 4 years ago

zehnm commented 4 years ago

Expected behavior For development purposes the remote-software app can be compiled and run on Linux, macOS and Windows without an actual dock or outside the home network.

Current behavior The app doesn't start anymore without a reachable dock on the same network. It is stuck at the spinning circle.

Detailed description

martonborzak commented 4 years ago

I think I have fixed this.

ChristianRiedl commented 4 years ago

I had a similar problem. Can you set a breakpoint in integration.cpp where "emit loadComplete()" should fire. I think the problem is there.

martonborzak commented 4 years ago

The problem was that the dock integration wouldn't emit the signal, because it was connected to the mdns service discovery signal. I added a timer to timeout and emit the loadComplete() signal

zehnm commented 4 years ago

Unfortunately it's still not working if I disconnect the dock and reboot the remote.

Further information from the logs: After connecting the dock the following log sequence starts:

  1. qml loadComplete (main.qml 265)
  2. connection successful (homeassistant.cpp 168)
  3. connection successful: "YIO-Dock-xxx"

It looks like the remote startup is still stuck waiting for a connect signal / confirmation of the dock integration.

martonborzak commented 4 years ago

Pushed an update to the dock integration.

zehnm commented 4 years ago

Working now!