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

Manual Google Assistant needs new setup instructions #35867

Open
y8s opened this issue Nov 21, 2024 · 7 comments
Open

Manual Google Assistant needs new setup instructions #35867

y8s opened this issue Nov 21, 2024 · 7 comments

Comments

@y8s
Copy link

y8s commented Nov 21, 2024

Feedback

Was trying to add the Google Assistant functionality for non nabu casa people and ran into the depreciation of Google actions.

The actions page pushed you to use the developer console instead (actions is now view only and you can't add new ones).

The good news is that after some playing around, doing it through the new Google Home Developer Console seems to work. And other than a few changes to the process, has basically the same elements. I think you just leave it at the point before testing and add your service account, update hass configuration, then you can add it to Google home on your phone.

So the steps just need to be reworked to match the new console.

URL

https://www.home-assistant.io/integrations/google_assistant/

Version

2024.11.2

Additional information

No response

@home-assistant
Copy link

Hey there @home-assistant/cloud, mind taking a look at this feedback as it has been labeled with an integration (google_assistant) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of google_assistant can trigger bot actions by commenting:

  • @home-assistant close Closes the feedback.
  • @home-assistant rename Awesome new title Renames the feedback.
  • @home-assistant reopen Reopen the feedback.
  • @home-assistant unassign google_assistant Removes the current integration label and assignees on the feedback, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information) to the feedback.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information) on the feedback.

@balloob
Copy link
Member

balloob commented Nov 21, 2024

Would you be able to update the guide with the steps that you took?

@y8s
Copy link
Author

y8s commented Nov 21, 2024

I'll look at it if I get some time this week, sure.

@y8s
Copy link
Author

y8s commented Nov 22, 2024

I think the migration is causing some inconsistencies but I just wrote up the part of the process that's different with the Google Home Developer Console (as compared to the Actions Console).

Create Project in Google Home Developer Console

  1. Go to the Google Home Developer Console
  2. Click on Create a Project
    Screenshot 2024-11-22 141432
  3. On the Get Started page, click Create a Project
    Screenshot 2024-11-22 141824
  4. Enter a project name and click Create Project
    9cf67b392989a51075faa1b52f312cf8
  5. Save your Project ID (it's under the main project name) for use below.
  6. On the Project Home page, add a Cloud-to-Cloud integration.
    Screenshot 2024-11-22 142124
  7. Click the Next: Develop button at the bottom.
  8. Click the Next: Setup button at the bottom.
  9. Enter a name for the integration.
  10. Select all applicable device types (you can select them all).
  11. Create an app icon 144 x 144 pixels and upload it by selecting the Upload image button.
  12. under Account Linking, in the OAuth Client ID field, Enter https://oauth-redirect.googleusercontent.com/r/[YOUR_PROJECT_ID]. (Replace [YOUR_PROJECT_ID] with your project ID from above).
  13. Add any string (without special characters) to the Client Secret field. Home Assistant doesn't need this field.
  14. Enter https://[yourdomain:port]/auth/authorize in the Authorization URL field.
  15. Enter https://[yourdomain:port]/auth/token in the Token URL field.
  16. Enter https://[yourdomain:port]/api/google_assistant in the Cloud fulfillment URL field.
  17. Skip Local fulfillment and App Flip for now and
  18. Under Scope(s), add email and click + Add scope and add name.
  19. Leave the "Have Google transmit Client ID and secret via HTTP basic auth header" UNchecked.
  20. Click Save
  21. You will see your project saved with the status "Draft".
  22. You do not need to test.

Finish Setup.

  1. Click on the Analytics link in the left hand menu for your project.
  2. Click on the Hamburger (sandwich?) menu and select APIs and Services.
  3. Continue from Home Assistant Google Assistant Integration Page Step 4 (You're already in the Cloud Console).

I think the rest is essentially the same.

@SalutLesNoobs
Copy link

I think the migration is causing some inconsistencies but I just wrote up the part of the process that's different with the Google Home Developer Console (as compared to the Actions Console).

Create Project in Google Home Developer Console

1. Go to the [Google Home Developer Console](https://console.home.google.com/projects)

2. Click on _Create a Project_
   ![Screenshot 2024-11-22 141432](https://private-user-images.githubusercontent.com/23405764/389099349-2ca8f36c-a1f6-478b-ac45-40ee10ba1938.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzI0ODEyMzksIm5iZiI6MTczMjQ4MDkzOSwicGF0aCI6Ii8yMzQwNTc2NC8zODkwOTkzNDktMmNhOGYzNmMtYTFmNi00NzhiLWFjNDUtNDBlZTEwYmExOTM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDExMjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMTI0VDIwNDIxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJlYjQ5NGU0YjA0NTllODcxZDQ2ZmJlZWJiOGJiMWYzNWNjNzIwNzczMTI4MzI3YzVkMzg5MzhlYmM0MGRkYmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.N94CgMcChWTRhR8-X_wf6UKFYoCwLeImfWVJF8LUKKg)

3. On the Get Started page, click _Create a Project_
   ![Screenshot 2024-11-22 141824](https://private-user-images.githubusercontent.com/23405764/389099481-9ffc0368-a6b8-443d-bfd5-5d6047ee2b25.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzI0ODEyMzksIm5iZiI6MTczMjQ4MDkzOSwicGF0aCI6Ii8yMzQwNTc2NC8zODkwOTk0ODEtOWZmYzAzNjgtYTZiOC00NDNkLWJmZDUtNWQ2MDQ3ZWUyYjI1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDExMjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMTI0VDIwNDIxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM3MGNiYWMxNThkNzhmNGUzMWUxNzkzMmNkMGE3MmRkYWEwZGUyMWRhNWVkYjcyYjJmNTY1OGNkOGM5NDJiYTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.eDMZAOX-lB7AmGeAMimnGN4QH2qatEmXbf8DHSm1-mg)

4. Enter a project name and click _Create Project_
   ![9cf67b392989a51075faa1b52f312cf8](https://private-user-images.githubusercontent.com/23405764/389099526-b411efbb-583b-4583-bbfb-b17f523e77be.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzI0ODEyMzksIm5iZiI6MTczMjQ4MDkzOSwicGF0aCI6Ii8yMzQwNTc2NC8zODkwOTk1MjYtYjQxMWVmYmItNTgzYi00NTgzLWJiZmItYjE3ZjUyM2U3N2JlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDExMjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMTI0VDIwNDIxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM2NzIwYjI5ZDU0ZmFlZThlYjQ4M2NkYzhhMWFlYzUwZTkwYTU1OTg3N2EyMjFkNjI2Y2YyMzAzOWE5NjNiNTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._1WCLiD7Ex4HM6M0IkgCVDFJZFSoSjkHQhvXZyoBPXU)

5. Save your **Project ID** (it's under the main project name) for use below.

6. On the _Project Home_ page, add a Cloud-to-Cloud integration.
   ![Screenshot 2024-11-22 142124](https://private-user-images.githubusercontent.com/23405764/389099568-2ee3f675-97f9-4aba-8ea1-a852c2464dcc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzI0ODEyMzksIm5iZiI6MTczMjQ4MDkzOSwicGF0aCI6Ii8yMzQwNTc2NC8zODkwOTk1NjgtMmVlM2Y2NzUtOTdmOS00YWJhLThlYTEtYTg1MmMyNDY0ZGNjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDExMjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMTI0VDIwNDIxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNlZTY3OTU4YjM5OTAxZDE0MzI4NTkwNGUxMmE2YmQyOTYyNTc0YjM2ODM5ZmU0YmQwMDdmYjEwMDQ5MGIwZjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.BhBtAjpOsUlRZoeUh6bZL1n8sRTRq_Q07xPcpJdUVAc)

7. Click the _Next: Develop_ button at the bottom.

8. Click the _Next: Setup_ button at the bottom.

9. Enter a name for the integration.

10. Select all applicable device types (you can select them all).

11. Create an app icon 144 x 144 pixels and upload it by selecting the _Upload image_ button.

12. under _Account Linking_, in the _OAuth Client ID_ field, Enter `https://oauth-redirect.googleusercontent.com/r/[YOUR_PROJECT_ID]`. (Replace [YOUR_PROJECT_ID] with your project ID from above).

13. Add any string (without special characters) to the _Client Secret_ field. Home Assistant doesn't need this field.

14. Enter `https://[yourdomain:port]/auth/authorize` in the _Authorization URL_ field.

15. Enter `https://[yourdomain:port]/auth/token` in the _Token URL_ field.

16. Enter `https://[yourdomain:port]/api/google_assistant` in the _Cloud fulfillment URL_ field.

17. Skip _Local fulfillment_ and _App Flip_ for now and

18. Under _Scope(s)_, add `email` and click _+ Add scope_ and add `name`.

19. Leave the "Have Google transmit Client ID and secret via HTTP basic auth header" **UN**checked.

20. Click _Save_

21. You will see your project saved with the status "Draft".

22. You do not need to test.

Finish Setup.

1. Click on the _Analytics_ link in the left hand menu for your project.

2. Click on the Hamburger (sandwich?) menu and select _APIs and Services_.

3. Continue from Home Assistant [Google Assistant Integration Page ](https://www.home-assistant.io/integrations/google_assistant/#google-cloud-platform-configuration) Step 4 (You're already in the Cloud Console).

I think the rest is essentially the same.

Yes, But :
image

@y8s
Copy link
Author

y8s commented Nov 24, 2024

I think the migration is causing some inconsistencies
Yes, But : image

that's the inconsistent part. try again later? I got that a couple of times too.

@SalutLesNoobs
Copy link

I think the migration is causing some inconsistencies
Yes, But : image

that's the inconsistent part. try again later? I got that a couple of times too.

i have deleted everythings and that OK. I have done all and on my iPhone, it says : "[test]HomeAssistant is associated" and 1 sec later : "A error ahs occured..."

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

3 participants