diyhue / diyHue

Main diyHue software repo
https://diyhue.org/
Other
1.56k stars 279 forks source link

Sleep as android can no longer connect with diyHue #19

Closed Nostras closed 4 years ago

Nostras commented 5 years ago

Describe the bug DiyHue used to work fine with Sleep as android.

To Reproduce Steps to reproduce the behavior: Simply install sleep as android and attempt to connect it with diyHue, it will hang on attempting to add it. I tried installing an older version, but with these it still fails. As diyHue has been updated I assume the problem must lie here.

Expected behavior Well, it should be working.

Nostras commented 4 years ago

Hi alex, could you please tell me where these files are? In docker I deleted them from /mnt /export or something as I couldn't find any anywhere else.

alexyao2015 commented 4 years ago

@Nostras Can you create a new post in the discourse regarding this issue? This thread is getting too long and hard to follow. I will be rewriting and validating the new commits soon.

alexyao2015 commented 4 years ago

@Nostras I finally got around to testing this around. 2 findings. 1. It seems the latest build works fine with sleep. 2. The error you were getting was related to the incorrect default config being downloaded. I'll be pushing a fix for that shortly.

Nostras commented 4 years ago

Great to hear you tested it and saw the same. I'll regularly check in to see if you've committed anything.

alexyao2015 commented 4 years ago

I've already committed the fix to beta and a new stable branch at least for docker. Try stable first.

Nostras commented 4 years ago

Didn't really work on the Nas (same issue as before) but works fine on the Pi after refreshing 10+ times.

I'd say it's solved, are you seeing the same?

alexyao2015 commented 4 years ago

I'm not sure if it should have ever worked on the nas due to the port 80 and 443 requirements. Not sure about the 10+ refreshes you mentioned.

Nostras commented 4 years ago

Port 80 and 443 are open and free on the NAS. Nonetheless I do not think I can fault DiyHue this issue as it works(?) on the Pi. On the Pi I get the same behavior as I had on the Nas, it does work, but it does take a lot of refreshes (and luck?).

If you're not seeing this perhaps something on the network is in some way hampering the connection and others are unlikely to see this issue. Ergo not DiyHues fault.

alexyao2015 commented 4 years ago

I run diyhue in a vm using docker and do not see these issues. As this thread is getting long, please make a new thread on the forums.

ghost commented 4 years ago

This issue has been mentioned on diyHue. There might be relevant details there:

https://diyhue.discourse.group/t/diyhue-on-nas-cant-be-detected-works-fine-on-pi/58/1

diyHue
Diyhue on NAS can't be detected, works fine on Pi
Hi there, I’ve been having some issues with Diyhue and working properly with Sleep as Android. You can find more info here. As Diyhue works fine(ish?) on a raspberry Pi (2) on the same network, the foremost problem is that Diyhue is refusing to work properly on the Nas I have. I’m running a docker install docker run -d -e "DEBUG=true" --name "diyHue" --restart="always" --network="host" -v '/mnt/hue-emulator/export/':'/opt/hue-emulator/export/':'rw' diyhue/core:latest I’ve looked in anoth...