hass-emulated-hue / core

Hue Emulation for Home Assistant
Apache License 2.0
319 stars 55 forks source link

"Update Hue Bridge" mandatory update screen #257

Open lukevink opened 2 years ago

lukevink commented 2 years ago

Describe the bug

When adding the emulated bridge to the philips hue app, we are now greeted by "Update hue bridge" screen. One assumes the emulated bridge is an older version and needs to be updated somehow.

Steps to Reproduce

  1. Follow usual setup instructions
  2. Add bridge to hue app
  3. Press "link" button (inside hass.io popup)
  4. "Update Hue Bridge" mandatory update screen appears

Expected behavior

Should be able to add emulated bridge to the philips hue app without performing an update

Logs

Hardware Info:

Additional context

Philips hue ios app: V4.10.0 (9396)

alexyao2015 commented 2 years ago

Related issues: #165, #237, #240, #249 Related discussion: #228

alexyao2015 commented 2 years ago

The v2 API has not been implemented and thus the official Hue app is currently not supported. Other Hue compatible apps which do not require the v2 API such as Hue Essentials and others continue to work as normal.

macfr76 commented 2 years ago

I don't understand the answer : "The v2 API has not been implemented".

On the main Github page, it is written : "Fully emulates a "V2" HUE bridge." and "You or your family like to use the HUE app for control over ALL your lights, so even non-Zigbee/HUE lights..."

It seems it's not correct if I right understand ?

FlorianFreudiger commented 2 years ago

I don't understand the answer : "The v2 API has not been implemented".

On the main Github page, it is written : "Fully emulates a "V2" HUE bridge." and "You or your family like to use the HUE app for control over ALL your lights, so even non-Zigbee/HUE lights..."

It seems it's not correct if I right understand ?

If I understood correctly, the versions in "v2 API" and "V2 HUE bridge" don't refer to the same thing. The "V2 HUE bridge" refers to the square version of the real HUE bridge which was released back in 2015. The "v2 API" refers to the new API which was only recently announced last November.

Currently this project only emulates the v1 API and since the HUE app switched to the v2 API it's incompatible for now but you can still use other apps (or older app versions) that use the v1 API.

Until the v2 API has been implemented the readme should probably be updated to clarify the lack of v2 API support since I also mistook them as referring to the same version when I first looked into this project a few days ago...

alexyao2015 commented 2 years ago

@FlorianFreudiger is correct. The current readme is a little dated, however, if you look at the other pinned issue #265, you can see how to join the "beta" which will eventually include support for this.

macfr76 commented 2 years ago

Thanks for you reply, I better understand this issue between v2 and v2.

i will have a look at the beta, as I would like to try a way to keep using the Hue App with my Zigbee2MQTT network.

dcmeglio commented 2 years ago

So short story is this doesn't work anymore?

JustinGaoF commented 2 years ago

do we have plan to fix it ? can we find the API description so that we can fix it eventually? Update me if you got the API and need help to fix it. Like this project. Thanks.

hiddevanbrussel commented 1 year ago

Why is this ticket closed? Problem is still there.

jlukas99 commented 1 year ago

Problem still there

alvarossac commented 1 year ago

I'm facing the same issue described here. Does someone know if there is any intention to fix it?

milandzuris commented 1 year ago

@alexyao2015 something new?

FlorianFreudiger commented 1 year ago

For everyone who needs to use V2 API apps like the official Hue App or Hue Sync there is an alternative method which is a bit more complicated to setup than this plug-and-play add-on but works well with the official apps.

The DiyHue project works similar to Home Assistant + this add-on: It acts as a Hub connecting different smart home lights solutions like Hue, other ZigBee lights, etc. which can then be interfaced via the Hue API including the official apps. It also supports lights from Home Assistant via Home Assistant's REST API.

You can host it separately or set it up as a as a Home Assistant Addon. If you run it on the same host make sure the ports aren't conflicting with the hass-emulated-hue add-on!

In the DiyHue web UI you can then add your Home Assistant lights using a long-lived access token you can generate in the Home Assistant user settings.

You should now be able to connect the official apps to DiyHue which will act like a proxy to your HA lights. If a similar "Update Hue Bridge" message pops up you can change the version in the DiyHue web ui under "Bridge" (the latest version numbers are also linked on that page)

github-actions[bot] commented 1 year ago

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

lululombard commented 1 year ago

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

Nope it's still broken

computergreek commented 1 year ago

very broken

daloki83 commented 1 year ago

For everyone who needs to use V2 API apps like the official Hue App or Hue Sync there is an alternative method which is a bit more complicated to setup than this plug-and-play add-on but works well with the official apps.

The DiyHue project works similar to Home Assistant + this add-on: It acts as a Hub connecting different smart home lights solutions like Hue, other ZigBee lights, etc. which can then be interfaced via the Hue API including the official apps. It also supports lights from Home Assistant via Home Assistant's REST API.

You can host it separately or set it up as a as a Home Assistant Addon. If you run it on the same host make sure the ports aren't conflicting with the hass-emulated-hue add-on!

In the DiyHue web UI you can then add your Home Assistant lights using a long-lived access token you can generate in the Home Assistant user settings.

You should now be able to connect the official apps to DiyHue which will act like a proxy to your HA lights. If a similar "Update Hue Bridge" message pops up you can change the version in the DiyHue web ui under "Bridge" (the latest version numbers are also linked on that page)

@FlorianFreudiger How did you manage to get it working with HA? I'm trying to add "https://github.com/diyHue/diyHue" to the repositorie but it fails with "https://github.com/diyHue/diyHue is not a valid add-on repository"

FlorianFreudiger commented 1 year ago

@daloki83 Yes, that workaround has been running great for me.

DiyHue itself is a standalone platform, not a home assistant add-on. You would host it yourself on another host or use this add-on which is basically just running DiyHue inside of an HA add-on, but you still need to configure it just as if it was running separately (see my previous comment for that).

You probably clicked on the wrong link in my original comment, the repository url in question would be https://github.com/diyhue/hassio-addon

computergreek commented 1 year ago

the biggest problem with trying to use diyHue is that after i finally got everything working, there was no way to get the Hue automations (Wake up, Go to sleep) to work/sync.

big dealbreaker for me

but so is this program (hass-emulated-hue) until the v2 api gets resolved it’s basically unusable

tech2mar commented 11 months ago

This would be great if it would work 👌

Patrick1610 commented 10 months ago

If a similar "Update Hue Bridge" message pops up you can change the version in the DiyHue web ui under "Bridge" (the latest version numbers are also linked on that page)

This seems like a very easy solution for Emulated Hue? Just add this option as a configuration option and we could add the virtual bridges to the Hue apps?

FlorianFreudiger commented 10 months ago

If a similar "Update Hue Bridge" message pops up you can change the version in the DiyHue web ui under "Bridge" (the latest version numbers are also linked on that page)

This seems like a very easy solution for Emulated Hue? Just add this option as a configuration option and we could add the virtual bridges to the Hue apps?

The underlying issue here isn't the mismatched version number, but rather the new "v2" Hue API. Emulated Hue does not support it, DiyHue does.

You can try changing the version in the code, the official apps still won't connect. I'm guessing some of the unofficial apps support both v1 and v2 APIs and use the version number to select which one to use, so changing it may also break those apps.

Alexander93x commented 10 months ago

broken

eporsche commented 4 months ago

Does DiyHue report the correct on / off states to anyone using the HA or zigbee connection?

FlorianFreudiger commented 4 months ago

Does DiyHue report the correct on / off states to anyone using the HA or zigbee connection?

You mean if you connect your lights to DiyHue and then add DiyHue as a Hue Bridge in HA? Not sure but I would assume it should work.

My workaround was the other way around: Leaving your lights connected to HA and then adding them into DiyHue so you can use the Hue apps.

Tamas-Toth-ebola commented 4 months ago

Does DiyHue report the correct on / off states to anyone using the HA or zigbee connection?

Sadly I had problems with that.

I had a very nicely working HA - Integrated Emulated Hue, without any problem, just to allow my Logitech - Harmony remote to control my non-Hue devices. It worked like a dream. One day, I do not remember why, I deleted my Emulated Hue device from the Harmony config, and since, I can not 'put' it back...

Some days ago I made some experiment with diyHue, but sadly without real success. My Harmony did not find the diyHue, either... but from the other side diyHue did not correctly handled my HA devices correctly because some wrong state report...

Now I'm nowhere...

eporsche commented 4 months ago

Does DiyHue report the correct on / off states to anyone using the HA or zigbee connection?

You mean if you connect your lights to DiyHue and then add DiyHue as a Hue Bridge in HA? Not sure but I would assume it should work.

My workaround was the other way around: Leaving your lights connected to HA and then adding them into DiyHue so you can use the Hue apps.

Actually I mean it in the same way you are doing it - adding the light bulbs from HomeAssistant directly to DiyHue so you can use them in the hue app. However when I am in the app I constantly get wrong light states. For example when I hit the light switch in Homeassistant it is not reflecting in diyHue and not in the App.

eporsche commented 4 months ago

Does DiyHue report the correct on / off states to anyone using the HA or zigbee connection?

Sadly I had problems with that.

I had a very nicely working HA - Integrated Emulated Hue, without any problem, just to allow my Logitech - Harmony remote to control my non-Hue devices. It worked like a dream. One day, I do not remember why, I deleted my Emulated Hue device from the Harmony config, and since, I can not 'put' it back...

Some days ago I made some experiment with diyHue, but sadly without real success. My Harmony did not find the diyHue, either... but from the other side diyHue did not correctly handled my HA devices correctly because some wrong state report...

Now I'm nowhere...

I am not familiar with Harmony devices. Didnt know they can discover Hue Bridges. There are some hints on reddit on this topic: (https://www.reddit.com/r/logitechharmony/comments/kxqjwm/harmony_hub_cant_connect_to_hue_bridge_anymore/)

FlorianFreudiger commented 4 months ago

Does DiyHue report the correct on / off states to anyone using the HA or zigbee connection?

You mean if you connect your lights to DiyHue and then add DiyHue as a Hue Bridge in HA? Not sure but I would assume it should work. My workaround was the other way around: Leaving your lights connected to HA and then adding them into DiyHue so you can use the Hue apps.

Actually I mean it in the same way you are doing it - adding the light bulbs from HomeAssistant directly to DiyHue so you can use them in the hue app. However when I am in the app I constantly get wrong light states. For example when I hit the light switch in Homeassistant it is not reflecting in diyHue and not in the App.

Oh I see, yes that appears to be quite inconsistent, they seem to need a manual refresh, only the color is updated in DiyHue after a few seconds. :/ Admittedly I've only used the Hue apps to quickly change my lights but I can see how this isn't ideal if you have some sort of widget connected to it.

Martin-Fox commented 1 month ago

I know it's been two years, so I assume this addon will not work anymore with Phillips Hue app?