I found what caused the error in my setup, you need to enable the home graph api. Previously in the documentation that was explained under the api_key instructions. Now it is described under the service account under point 9 and 10, this was changed 20 hours ago. This took me a few hours to understand, hopefully it will help someone else!
I had this message on log when trying to trigger an automation (send push to my phone when switch.radiator state is on). The push was not sent and the error appeared on log.
I’ve tried the same automation but with a different entity (switch.tv) and it worked (push was sent to my phone and no errors in log).
I’ve found that despite i had switch.radiator in Google Home app it was not associated to my home. It appeared down as “Linked to you - x devices not in a home”.
After i added it (switch.radiator) to my home the automation started working, without errors.
Moved to v0.105.0 sadly problem remains. Testing is enabled, yet the error persists. This has me stumped.
When I examine the metrics for HomeGraph, it seems I am getting around 50% errors over a given period. Can I interpret that as I am also having 50% success; thus this fault is “intermittent”? And therefore, my setup is working - just not consistently…
With so many folk saying that they overcame the 404 error, it forced me to take drastic action. I did a complete re-build of HA from scratch. Not using a snapshot restore via Supervisor; but manually piecing everything back together from a snapshot extracted to a local drive. No more errors and I didn’t change anything on the Google side of things. Something in my build was hinky - but that’s history now.
The problem is that it works, so we will have little luck getting the code owners to look for a problem (that isn’t in their code). I followed the instructions accurately on my old build and I had errors. Followed the identical process on a new build and I have zero errors. My installation had a gremlin, not the Google Assistant code as such. So thats my/our problem to solve. If this thread had many many more complaints it might get attention. I suppose a long standing deployment of HA can acquire cobwebs that trigger a fault like this. Good luck.
PS. I did try a supervisor snapshot restore on a fresh install, that was no good - it just imported the bug to the new build.
I have the same error 404 and i have already the agent_user_id define in my automation, but not the good one…i previously put the admin one (create by the system) and its the user one that is needed…lol
Now, good buy the 404 error, even when i automate the syncing.
I ran into the same issue. I tried several things which did not help:
Disable and re-enable Homegraph API
Restart home assistant
Recreate project
What finally helped to fix the errors was to first unlink my Project in the Google Home app (Android) and then relink the Project again. Relinking without unlinking did not help!
thanks for this solution, i lost my mind today to unlink/relink my “test” account in google assistant…
What is really strange is i succeed, it works for 2 hours and then i can syncing anymore…
Then i read your POST, and go to the API Homegraph page with your link, and surprise, the Homegraph API wasnt active anymore!!! but i activated 2 hours before…dont understand how the Homegraph API can desactivated by itself??