]> git.giorgioravera.it Git - homeassistant.git/commitdiff
added script to sync with google home
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Sat, 8 Jun 2019 12:27:34 +0000 (14:27 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Sat, 8 Jun 2019 12:27:34 +0000 (14:27 +0200)
components/google_assistant.yaml
customizations/home_assistant.yaml
script/home_assistant.yaml
ui-lovelace.yaml

index c1e946a0fb96badaef4c09f04e4d8c48f522b95e..5e34e5f88cbb4fd7931d5f831f1f783e51b123c0 100644 (file)
@@ -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:
index a2b639b4bf6a008f7dcf40d631dccda60a7e82e2..b5e9ac8903153701963ad6f309429cd5f119ca98 100644 (file)
@@ -10,3 +10,6 @@ script.homeassistant_clearlog:
 
 script.homeassistant_upgrade:
   icon: mdi:update
+
+script.homeassistant_google_home_sync:
+  icon: mdi:google
index 9f95866cbfac54f1f92ccfe983d423438b692112..cedd9e1435526617a7e0b61b220a817df3830cdc 100644 (file)
@@ -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
index 620c5b618ddb2e3ccdd6ca304cd9aeb57a9dd8e8..31815df02c181c4c2a1957079b8ac32a55bb6125 100644 (file)
@@ -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: