Philips Hue, slow or no update to status

I am a new user of Home Assistant, changing over from HomeSeer, and I am in the process of learning and setting things up from the ground. The first thing I integrated into HA is my Philips Hue setup. It’s not large, it’s about 25 devices, divided into 4 rooms/zones. When I setup the integration, it all came in nicely, but I saw quickly that it does not necessarily replicate the status of the actual lights into HA.

I will always use a combination of app control, HA control and also some Hue Switch controls (I know the caveats with those), but since this is a 2-way system like Z-wave and others, I was expecting HA to reflect the changes done through the Hue App when lights are turned off and on. What’s weird is that sometimes it does, other things it doesn’t. If I turn on a zone (which is marked off in HA), it most of the time updates right away to Zone on and all lights on. However, if I turn off again from the app, the HA dashboard does not reflect it, or in best case, maybe 1-2 of the lights change to off, but the rest stays on.

Is there a secret I need to know about on how to best make this work, or is there basically some error in my system somewhere? In the Hue apps on several phones and pads, the status updates more or less instantly and always correct, so it seems to be the integration between Hue and HA.

If anyone have any good tips, feel free to share them. Thank you.

It looks like the recent update to HA 2021.12 broke a bit in the Hue integration, but a fix is in the next release and a the following.
HA usually comes out with a new version in the beginning of the month and then a lots of small patches the following days.
This recent version was delayed to be released with an event in the Smart Home world that occured on december 11, so we are only now saying the small patch updates.
Wait a few days before trying to fix anything and in the future maybe hold back a bit with the updates on the first monthly releases, if you want to avoid these situations. :slight_smile:

1 Like

I’m facing a similar issue with setup and its been driving me crazy trying to figure out what was going on as i could anything on the forum - till this post…

any know how i can downgrade to HA 2021.11 until the hue integration is working again? i have visitors tomorrow so need stuff to work correctly.

Thanks

1 Like

Thank you, appreciate the feedback. I have been a HomeSeer user for 7-8 years and used to the quirks there, but learning how it works in the HA world now. There is no rush, I am just testing with a VM install with the simple integrations while I wait for my new hardware and USB sticks (Z-wave and Zigbee) to arrive for the proper installation. So as long as it’s sorted within a week or two, I won’t notice much.

It’s just that these niggles tend to demotivate you from doing the switch, if it’s normal :slight_smile:

Yeah the niggles are normal, but they are usually fixed within the week, so its just a question of knowning it and holding back on the need to press that update button.

Most likely a stupid question, but updating the plugins … will there be a button saying Update on the service once there is one available, or do you have to go into some place to find out?

I am not sure with the new release, since it moves around on some stuff in the GUI and I have not updated to it yet. :slight_smile:

I am having a Lovelace card with this setup though.

type: markdown
title: Home Assistant Integration
content: |-
  <table width=100%><tr><td>
  {%- if is_state('binary_sensor.updater','off') -%}
    <font color="green">
  {%- else -%}
    <font color="red">
  {%- endif -%}
    <b>Home Assistant Core</b></font></td><td>{{states('sensor.current_version')}}</td><td>
  {%- if is_state('binary_sensor.updater','off') -%}
    &nbsp;
  {%- else -%}
    {{state_attr('binary_sensor.updater','newest_version')}}
  {%- endif -%}
  </td></tr>
  {%- set hacs_updates = states.binary_sensor -%}
  {%- for hacs_update in hacs_updates -%}
    {%- if hacs_update.name!='Home Assistant Operating System: Update Available' -%}
      {%- if 'Update Available' in hacs_update.name %}
        {%- set hacs_name = hacs_update.name.replace(": Update Available","") -%}
        {%- set hacs_version = 'sensor.'+(hacs_update.object_id.replace("_update_available","_version")) -%}
        {%- set hacs_newest = 'sensor.'+(hacs_update.object_id.replace("_update_available","_newest_version")) -%}
        <tr><td><b>
        {%- if (states(hacs_version)==states(hacs_newest)) -%}
          <font color=green>        
        {%- else -%}
          <font color=red>
        {%- endif -%}
        {{hacs_name}}</b></font></td><td>{{states(hacs_version)}}</td><td>
        {%- if (states(hacs_version)==states(hacs_newest)) -%}
          &nbsp;
        {%- else -%}
          {{states(hacs_newest)}}
        {%- endif -%}
        </td></tr>
      {%- endif -%}
    {%- endif -%}
  {%- endfor -%}
  </table>

And I also have this for HACS addons.

type: markdown
title: HACS Addons
content: |-
  {%- if is_state('sensor.hacs','0') -%}
    <b><font color=green>No updates</font></b>
  {%- else -%}
    <table width=100%>
    {%- set hacs_updates = state_attr('sensor.hacs','repositories') -%}
    {%- for hacs_update in hacs_updates -%} 
      <tr><td><b><font color=red>{{[hacs_update][0]['display_name']}}</b></font></td><td>{{[hacs_update][0]['installed_version']}}</td><td>{{[hacs_update][0]['available_version']}}</td></tr>
    {%- endfor -%}
    </table>
  {%- endif -%}

I have to say that for now this is greek to me, I have not gotten into the programming part yet :slight_smile:

It is a known issue for the latest two 2021.12 releases. .3 will fix it:
Philips Hue integration not properly reporting light states (continuation of #61819) · Issue #61926 · home-assistant/core (github.com)

1 Like

maybe, but it should just work.

Check it out by going to the Overview and then goto edit mode and add a card.
Choose the manual in the bottom of the list and then delete the type: ‘’ test that is already there and paste the text from the gray box in and click save.

If you like then keep it and if not then click the 3 dots in the bottom of the card and choose delete. :slight_smile:

1 Like

With updating to core version 2021.12.2 (coming from version 2021.12.1) I have a lot of trouble with the hue integration. It ist not possible to use any lovelace switch or slider anymore. Going back to 2021.12.1 solve my problem.
But have there been any further changes in the past. I do not get the state unavailable if the bulb is cut off by a physical switch. Does anybody has further information?

Same here. Several motion sensors do not reset the motion detected status and light status is not always updated.

Read Above :point_up:

Hi all, running core-2021.12.3 which seems to have fixed the disconnection issue but the slowness is definitely still there. Is this normal?

No, well not for me anyway, since the .3 fix my system has been lighting fast due to the new V2 api.

Where is the slowness you are experiencing, in commanding an entity or in its state reporting?

The slowness seems to be in reporting the entity.
When I “click” on a switch in HA, the light in the room seems to toggle instantly but will take between 1/2s and 1s to update on the UI.
I’m pretty sure that didn’t use to be the case.

I am still on 2021.11.5 and here the light have 1/2-1s delay on updates and always have had.

I’m actually still getting the issue with the Hue Integration seemingly losing connection and my lights becoming unresponsive.
It starts working again if I reload the integration.