From 7014d8773145bff6e6272dc2b882c5af23291222 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Sat, 8 Jun 2019 14:27:34 +0200 Subject: [PATCH] added script to sync with google home --- components/google_assistant.yaml | 1 + customizations/home_assistant.yaml | 3 +++ script/home_assistant.yaml | 9 +++++++++ ui-lovelace.yaml | 1 + 4 files changed, 14 insertions(+) diff --git a/components/google_assistant.yaml b/components/google_assistant.yaml index c1e946a0..5e34e5f8 100644 --- a/components/google_assistant.yaml +++ b/components/google_assistant.yaml @@ -69,6 +69,7 @@ entity_config: expose: true # Script & Routine input_boolean.home_mode_away: + name: Modalità Vacanza room: Generale expose: true script.speech_status: diff --git a/customizations/home_assistant.yaml b/customizations/home_assistant.yaml index a2b639b4..b5e9ac89 100644 --- a/customizations/home_assistant.yaml +++ b/customizations/home_assistant.yaml @@ -10,3 +10,6 @@ script.homeassistant_clearlog: script.homeassistant_upgrade: icon: mdi:update + +script.homeassistant_google_home_sync: + icon: mdi:google diff --git a/script/home_assistant.yaml b/script/home_assistant.yaml index 9f95866c..cedd9e14 100644 --- a/script/home_assistant.yaml +++ b/script/home_assistant.yaml @@ -34,3 +34,12 @@ homeassistant_upgrade: sequence: - service: shell_command.homeassistant_upgrade +###################################################################### +# Home Assistant: Sync with Google Home +# - homeassistant.restart +###################################################################### + +homeassistant_google_home_sync: + alias: "Sincronizza Google Home" + sequence: + - service: google_assistant.request_sync diff --git a/ui-lovelace.yaml b/ui-lovelace.yaml index 620c5b61..31815df0 100644 --- a/ui-lovelace.yaml +++ b/ui-lovelace.yaml @@ -568,6 +568,7 @@ views: - script.homeassistant_restart - script.homeassistant_clearlog - script.homeassistant_upgrade + - script.homeassistant_google_home_sync # - type: entity-button # entity: script.homeassistant_restart # tap_action: -- 2.47.3