[HA] Hướng dẫn cài đặt Google Assistant vào Home assistant để điều khiển nhà từ điện thoại , loa google mini
Hướng dẫn cài đặt Google Assistant vào Home assistant để điều khiển nhà từ điện thoại , loa google mini
Manual setup :
A. Tạo project tại google cloud
truy cập vào link : https://console.actions.google.com/
Manual setup :
A. Tạo project tại google cloud
truy cập vào link : https://console.actions.google.com/
- Create a new project in the Actions on Google console.
- Add/Import a project and give it a name.
- Click on the
Smart Home
card, select theSmart home
recommendation. - Click
Build your Action
, selectAdd Action(s)
. Add your Home Assistant URL:https://[YOUR HOME ASSISTANT URL:PORT]/api/google_assistant
in theFulfillment URL
box, replace the[YOUR HOME ASSISTANT URL:PORT]
with the domain / IP address and the port under which your Home Assistant is reachable. - Click
Save
. Then click onOverview
, which will lead you back to the app details screen.
Account linking
is required for your app to interact with Home Assistant. Set this up under theQuick Setup
section.- Leave it at the default
No, I only want to allow account creation on my website
and selectNext
. - For the
Linking type
selectOAuth
andAuthorization Code
. ClickNext
- Client ID:
https://oauth-redirect.googleusercontent.com/
, the trailing slash is important. - Client Secret: Anything you like, Home Assistant doesn’t need this field.
- Authorization URL (replace with your actual URL):
https://[YOUR HOME ASSISTANT URL:PORT]/auth/authorize
. - Token URL (replace with your actual URL):
https://[YOUR HOME ASSISTANT URL:PORT]/auth/token
. ClickNext
- Configure your client: Type
email
and clickAdd scope
, then typename
and clickAdd scope
again. - Do NOT check
Google to transmit clientID and secret via HTTP basic auth header
. ClickNext
- Testing instructions: Enter anything. It doesn’t matter since you won’t submit this app. Click
Save
- Leave it at the default
- Select the
Develop
tab at the top of the page, then in the upper right hand corner select theTest
button to generate the draft version Test App. - Add the
google_assistant
integration configuration to yourconfiguration.yaml
file and restart Home Assistant following the configuration guide below. - (Note that app versions may be slightly different.) Open the Google Home app and go to
Settings
. - Click
Add...
,+ Set up or add
,+ Set up device
, and clickHave something already setup?
. You should have[test] your app name
listed under ‘Add new’. Selecting that should lead you to a browser to login your Home Assistant instance, then redirect back to a screen where you can set rooms and nicknames for your devices if you wish.
- Create a new project in the Actions on Google console.
- Add/Import a project and give it a name.
- Click on the
Smart Home
card, select theSmart home
recommendation. - Click
Build your Action
, selectAdd Action(s)
. Add your Home Assistant URL:https://[YOUR HOME ASSISTANT URL:PORT]/api/google_assistant
in theFulfillment URL
box, replace the[YOUR HOME ASSISTANT URL:PORT]
with the domain / IP address and the port under which your Home Assistant is reachable. - Click
Save
. Then click onOverview
, which will lead you back to the app details screen.
Account linking
is required for your app to interact with Home Assistant. Set this up under theQuick Setup
section.- Leave it at the default
No, I only want to allow account creation on my website
and selectNext
. - For the
Linking type
selectOAuth
andAuthorization Code
. ClickNext
- Client ID:
https://oauth-redirect.googleusercontent.com/
, the trailing slash is important. - Client Secret: Anything you like, Home Assistant doesn’t need this field.
- Authorization URL (replace with your actual URL):
https://[YOUR HOME ASSISTANT URL:PORT]/auth/authorize
. - Token URL (replace with your actual URL):
https://[YOUR HOME ASSISTANT URL:PORT]/auth/token
. ClickNext
- Configure your client: Type
email
and clickAdd scope
, then typename
and clickAdd scope
again. - Do NOT check
Google to transmit clientID and secret via HTTP basic auth header
. ClickNext
- Testing instructions: Enter anything. It doesn’t matter since you won’t submit this app. Click
Save
- Leave it at the default
- Select the
Develop
tab at the top of the page, then in the upper right hand corner select theTest
button to generate the draft version Test App. - Add the
google_assistant
integration configuration to yourconfiguration.yaml
file and restart Home Assistant following the configuration guide below. - (Note that app versions may be slightly different.) Open the Google Home app and go to
Settings
. - Click
Add...
,+ Set up or add
,+ Set up device
, and clickHave something already setup?
. You should have[test] your app name
listed under ‘Add new’. Selecting that should lead you to a browser to login your Home Assistant instance, then redirect back to a screen where you can set rooms and nicknames for your devices if you wish.
Nhận xét
Đăng nhận xét