hass-emulated-hue / core

Hue Emulation for Home Assistant
Apache License 2.0
330 stars 54 forks source link

Lights not detected in iLightShow app #163

Closed simplenotezy closed 3 years ago

simplenotezy commented 3 years ago

Describe the bug When using the app iLightShow no lights are detected.

Steps to Reproduce

  1. Download iLightShow on app store
  2. Add the bridge. Enable link mode
  3. Once connected, the app will say "No light detected"

THIS IS VERY IMPORTANT TO KNOW TO BE ABLE TO FIX THE BUG! If at all possible, please try to create reproduction steps from a clean environment (delete all existing config and reinstall from scratch). Again, please make sure to read all primers to ensure we are able to help you. -->

Expected behavior Light show show up

Logs

Hardware Info:

Additional context It used to work fine when using the Phillips Hue Bridge. I can say that my Phillips Hue TV Abilight+hue integration works great, it's only this app where it's not working.

It could be that the lights should be exposed in a special way, but I don't know.

alexyao2015 commented 3 years ago

There is a chance it's using the v2 api, and if that's the case, it's unlikely it will be supported soon.

simplenotezy commented 3 years ago

I see. What version of the API is the emulater using?

alexyao2015 commented 3 years ago

The v2 api just recently got released along with the new hue app. Its undocumented still and unfortunately I have no devices available to infer the API from, making implementation tough. This uses the v1 api.

github-actions[bot] commented 3 years ago

This issue has been marked as stale due to no activity and will be closed in 7 days.

alexyao2015 commented 3 years ago

Just downloaded the app. It seems that all lights are detected fine.

alexyao2015 commented 3 years ago

Gave this another try today. Previously this app did work, but it appears that a recent update to it has caused it to no longer work. Lights appear perfectly fine for me, however, all effects do not work in either legacy or entertainment mode.

During entertainment mode (once packet size is corrected, normally not an issue), it appears to continually start and stop entertainment mode as if its waiting for a response from the bridge. Additionally, packets received are empty with no light data. During legacy mode, it appears that requests are continually being made to the groups api, but its not doing anything further as if it is receiving an incorrect response.

Would need some input from the app developer to act further.

alexyao2015 commented 3 years ago

Hey @nicolasanjoran are you able to comment on the reason for the behavior above?

alexyao2015 commented 3 years ago

Retested and both modes actually do work. This app validates ssl certificates displayed so if your certificates are wrong, it will fail and exhibit the same symptoms mentioned aboved.

simplenotezy commented 2 years ago

Hey @alexyao2015. Thanks for your reply; I just got in contact with @nicolasanjoran so I went to review this issue. Apologies for my late response.

It's interesting why it works for you, but not for me. I believe my SSL certificates are correct, but I am not sure. I can access my HomeAssistant remotely with Let's Encrypt certificates. How can I verify this?

Also, I'd like to mention that other Hue-partylight apps work fine with my Emulator setup.

Kinda jealous it works for you, but not for me! 😜

alexyao2015 commented 2 years ago

You'll need to ensure the bridge is accessible through standard http/s ports (80 and 443). These cannot be changed. Additionally, when accessing the bridge, it should not show a letsencrypt certificate, but rather one issued from and to your host mac address. All this is typically done automatically when installed as an addon