Nabu Cloud not updating the status correctly in Google Home/Assistant

Hi All,
i recently moved from OpenHab and overall I am very impressed with HomeAssistant. Im pretty much setting things up 1-1, the final step is intergration with Google Assistant in NabuCloud, unfortunaltely this is where Im having issues.

In OpenHab any changes on the OpenHab Cloud were pushed to google and would show on the Google Home app almost instantly, but in NabuCloud a change there (in the web HA interface or my local HA interface) isnt reflected in google home unless google home is refreshed.

This would seem to be an issue with Google Home, but this wasnt an issue for the (free) OpenHab cloud.

Another strange (but no doubt related) issue is that when setting the status of a device (in this case a hue light) to ON in Google Home i always see the status as ON for 1-2 seconds and then it reverts to OFF, despite the light still being ON. Voice commands are different though, they do keep the correct status in Google Home, it doesnt revert back to an incorrect state and does should the correct state after a 3-5 second wait.

It seems others have had this issue, but no posts have a solution which doesnt include turning off google assistant status updates in HA:

…but thats like cutting off your arm because your scratched your finger!

Generally it does work, its just the status updates in google home which are problematic, is there any solution to this?

In the log i see the requests from Google together with a published response, no errors:

2024-11-08 08:25:37.360 DEBUG (MainThread) [hass_nabucasa.google_report_state] Received message:
{'msgid': '76a75fba9d884f99a0aef18c0e53406c',
 'payload': {'requestId': '76a75fba9d884f99a0aef18c0e53406c'}}
2024-11-08 08:25:38.363 DEBUG (MainThread) [hass_nabucasa.google_report_state] Publishing message:
{'msgid': 'c61ec4b0a15447a99354e2cc35520dcc',
 'payload': {'devices': {'states': {'switch.office_switch': {'on': True,
                                                             'online': True}}}}}

But this does appear sometimes:

2024-11-08 08:27:00.918 INFO (MainThread) [hass_nabucasa.google_report_state] Timeout while waiting to receive message`

If i cant solve it then i have to cancel the NabuCasa subscription, and move back to OpenHab, that would be a lot of work down the drain.

Hi there @mmdanmm

For me GoogleAssistant is allmost instant.

But, I do not use NabuCasa, instead I went this way → Google Assistant - Home Assistant

So not sure what your issue would be…for sure it is NabuCasa, GoogleAssistant or HomeAssistant :thinking:

I also just stumbled on enable-device-sync on the same page :smiley:
Also have a look at step 4 of google-cloud-platform-configuration

Hi, it should be possible to get immediate updates. I just tested with my Nabu Casa account and when I flip a switch in HA, Google Home is updated faster than I could switch apps on my ipad.

What integration are you using for the hue lights? Are the lights connected to the hue hub or trough a coordinator stick in HA? I wonder if it is not a Google Home delay but a delay in HA getting the proper status itself. Do you have e.g. wifi connected devices with the same problem?

Is the state in HA updating normally, or also acting strange?

Hi @Edwin_D , the state in HA itself and the external interface from NabuCasa is instant (around 5-15ms), so within HA all is fine and working as expected. The HA addon for Hue is connecting to the latest gen of Hue Hub. But its not just Hue, its the same for any device (Shelly and Tasmota on SonOff)

Its only the Google Assistant/Home side that is having the status update issue. The logs arent really very helpful, also without logs on the NabuCasa side i cant check timestamps for any delays :frowning:

Hi @aceindy i was planning on the self hosting too, but wanted to see how it all performs with NabuCase in the free month trial, not looking good so far :stuck_out_tongue:

I think ill invest the time now and setup the manual service, more granular control over the communication is always nice :slight_smile:

It should be possible to increase the log level on the integration, maybe ask on the discord channel in the dev channels which modules you need to increase the levels for.

I already did that, in configuration.yaml i added the following:

logger:
logs:
hass_nabucasa: debug
snitun: debug
homeassistant.components.cloud: debug
homeassistant.components.cloud.iot: debug

It seems to me that the issue is in the Google Home ↔ NabuCasa communication for my account. Either side could have an issue, but i can’t log that :-/