From ea7edd45a126f8b989592cd07a806a1e516d939c Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Tue, 21 Apr 2020 11:23:55 +0200 Subject: [PATCH] Fixed google sync and automation --- automation/startup.yaml | 4 +--- components/google_assistant.yaml | 7 +------ components/google_assistant/car.yaml | 5 +++++ script/home_assistant.yaml | 2 ++ 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/automation/startup.yaml b/automation/startup.yaml index bceb8290..446f798e 100644 --- a/automation/startup.yaml +++ b/automation/startup.yaml @@ -20,12 +20,10 @@ ###################################################################### - alias: "Startup: Google Sync" - initial_state: 'off' trigger: - platform: homeassistant event: start action: - - delay: 0:10:00 - - service: google_assistant.request_sync + - service: script.homeassistant_google_home_sync diff --git a/components/google_assistant.yaml b/components/google_assistant.yaml index 07dc15f0..931a7c62 100644 --- a/components/google_assistant.yaml +++ b/components/google_assistant.yaml @@ -3,13 +3,8 @@ ###################################################################### project_id: !secret google_project +secure_devices_pin: !secret google_pin service_account: !include ../credentials/google.json #report_state: true expose_by_default: false -exposed_domains: - - climate - - cover - - input_boolean - - media_player - - script entity_config: !include_dir_merge_named google_assistant/ diff --git a/components/google_assistant/car.yaml b/components/google_assistant/car.yaml index 03db7fa6..eeb66f71 100644 --- a/components/google_assistant/car.yaml +++ b/components/google_assistant/car.yaml @@ -6,3 +6,8 @@ switch.ff590mr_lock: name: Blocco Auto expose: true room: Generale + +#lock.ff590mr_lock: +# name: Auto +# expose: true +# room: Generale diff --git a/script/home_assistant.yaml b/script/home_assistant.yaml index a5ffd731..4b0d41ec 100644 --- a/script/home_assistant.yaml +++ b/script/home_assistant.yaml @@ -53,3 +53,5 @@ homeassistant_google_home_sync: alias: "Sincronizza Google Home" sequence: - service: google_assistant.request_sync + data: + agent_user_id: !secret google_agent -- 2.47.3