]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Minor fixes
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 24 Apr 2020 13:39:33 +0000 (15:39 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 24 Apr 2020 13:39:33 +0000 (15:39 +0200)
automation/test_mode.yaml [new file with mode: 0644]
components/tts.yaml

diff --git a/automation/test_mode.yaml b/automation/test_mode.yaml
new file mode 100644 (file)
index 0000000..1b970c5
--- /dev/null
@@ -0,0 +1,38 @@
+######################################################################
+# Test Mode: Enable Action
+######################################################################
+
+- alias: "Modalità Test: Azione on"
+  initial_state: 'on'
+
+  trigger:
+    - platform: state
+      entity_id: input_boolean.test_mode
+      to: 'on'
+
+  action:\r
+
+    - service: automation.turn_off
+      entity_id: automation.startup_restart_on_error
+
+    - service: automation.turn_off
+      entity_id: automation.startup_google_sync
+
+######################################################################
+# Test Mode: Disable Action
+######################################################################
+
+- alias: "Modalità Test: Azione off"
+  initial_state: 'on'
+
+  trigger:
+    - platform: state
+      entity_id: input_boolean.test_mode
+      to: 'off'
+
+  action:
+    - service: automation.turn_on
+      entity_id: automation.startup_restart_on_error
+
+    - service: automation.turn_on
+      entity_id: automation.startup_google_sync
index e73881bc672b42fcab81233f643dcba4828c8c33..713710d5953884dc6e688126574c748b32c55cec 100644 (file)
@@ -7,4 +7,3 @@ cache: true
 cache_dir: ./tts
 time_memory: 300
 base_url: !secret base_url
-language: 'it'