Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Philips Hue app complains about "old version bridge" #2837

Closed
joeblack2k opened this issue May 27, 2020 · 18 comments
Closed

Philips Hue app complains about "old version bridge" #2837

joeblack2k opened this issue May 27, 2020 · 18 comments

Comments

@joeblack2k
Copy link

When successfully adding Deconz to the official Hue app, the app gives a warning about an update for the bridge that fails
The latest version of the official bridge is:
1938112040

is it possible to change the emulated Deconz version to 1938112040

@townsmcp
Copy link

+1 for this. The Hue app cant be used until theres an update

@hmrc87
Copy link

hmrc87 commented Jun 2, 2020

I just installed the Hue App because I wanted to test if works with the Windows App "Hue Sync".

Have the same issue - but I am unsure: Was the official Hue App working with deconz before? I never tried it before so cant answer.

How did you find out the emulated Hue Bridge Version of Deconz?

@kurzdev
Copy link

kurzdev commented Jun 6, 2020

Same here. While trying to connect to the emulated bridge, this is what occurs:
image

Would be nice to know either how to possibly fix this so that one can contribute (possibly how older versions have been fixed), or have it fixed. Thank you! 😄

@Smanar
Copy link
Collaborator

Smanar commented Jun 6, 2020

You haven't the version gived by deconz ?
1810251352 ?

@kurzdev
Copy link

kurzdev commented Jun 6, 2020

The hue app needs version 1938112040 to function, i.e. to be used at all. @Smanar

@Smanar
Copy link
Collaborator

Smanar commented Jun 6, 2020

Yep but IDK wich one deconz is using.
Perhaps https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/rest_configuration.cpp#L990

If you test with changing this value ? Or if you can retreive the value gived by deconz to be sure it's the good line ?

@kurzdev
Copy link

kurzdev commented Jun 6, 2020

Right, let me check - do you have any idea how to retrieve the version from the API? Otherwise I will try to reverse engineer as good as I can 😄

@Smanar
Copy link
Collaborator

Smanar commented Jun 6, 2020

Nope :(, and it seem the code don't answer the same thing depending of the request type.

But you can try to edit the value and recomplile the code, it s easy if you have a linux machine (and not HA or ARM 64)

@kurzdev
Copy link

kurzdev commented Jun 6, 2020

Yeah I guess I'll do that tomorrow. Thanks so much for your help already, will let you know when I've made any progress or at least know more 👍

@kurzdev
Copy link

kurzdev commented Jun 6, 2020

@Smanar Ok, I just figured it out. The trick is to set the devicetype while requesting an API key to a name that starts either with "Hue " or "hue_" as seen here:

req.mode = ApiModeHue;

After that the the ApiRequestMode ist set to ApiModeHue which is not ApiModeNormal and thus forces the API to output the swversion upon request on http://yourdevice/api/your_api_key/

After doing that, you should find the line "swversion": "1810251352" which is exactly what we are looking for. Tomorrow, I will either try to change the corresponding lines of code or implement a proxy that modifies said data, and will come up with a comprehensive report on possible results. 👍

@ebaauw
Copy link
Collaborator

ebaauw commented Jun 6, 2020

After setting swversion, apiversion, and datastoreversion to the values of the current Hue bridge gen-2 firmware, the Hue app connects to deCONZ v2.05.77. I've included these changes in my current PR.

@kurzdev
Copy link

kurzdev commented Jun 6, 2020

@ebaauw Awesome, thanks so much!

@fonix232
Copy link

Would it be possible to have a user-settable field for this, that is pre-populated with the hardcoded value, instead of just a hardcoded value? It would mean people won't need to wait for the next update to use their Hue apps again, but could manually update the firmware on their end.

@pattyland
Copy link

On my phone the hue app still wants to install an update that I can’t dismiss. I’m using 2.05.78

@fonix232
Copy link

fonix232 commented Jul 2, 2020

@pattyland - I had the same issue, however it looks like something is broken even deeper - removing all the Hue app data allowed me to set up the virtual bridge, but it was incredibly buggy, I couldn't get away from the room management screen in any way, rooms were not synced from deCONZ (though if I did try to create a room with the same name, it would freak out), rooms wouldn't save (either generic error, or the room seemingly saves, but it disappears in a matter of seconds).

@stale
Copy link

stale bot commented Jul 25, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 25, 2020
@stale stale bot closed this as completed Aug 1, 2020
@WegnerDan
Copy link

This issue is still relevant, the problem still exists.

@SwoopX SwoopX reopened this Feb 12, 2021
@close-issue-app
Copy link

Hi there.

Thank you for filing this issue. Unfortunately, we cannot help you, as you haven't sticked to the provided template and/or have not provided all information requested. Consequently, this issue has been closed.
We're more than happy to help out where we can once you raise a new issue containing all requested information in the requested format.

In this regard, please take note that:
- read the template thoroughly
- all given header lines (starting with ###) must not be deleted
- everything enclosed by <!-- --> is intended to give you guidance and should be replaced by your input specific to the issue
- Listings regarding your environment must be filled out completely where applicable (bug reports and user questions).
- Not following the template or providing insufficient information can still implicate manual closure.

So please, first help us a bit to help you!

@stale stale bot removed the stale label Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests