From a79e7547e1c9db51f203b047d888d0acfd19a744 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Fri, 24 Apr 2020 15:39:33 +0200 Subject: [PATCH] Minor fixes --- automation/test_mode.yaml | 38 ++++++++++++++++++++++++++++++++++++++ components/tts.yaml | 1 - 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 automation/test_mode.yaml diff --git a/automation/test_mode.yaml b/automation/test_mode.yaml new file mode 100644 index 00000000..1b970c51 --- /dev/null +++ b/automation/test_mode.yaml @@ -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: + + - 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 diff --git a/components/tts.yaml b/components/tts.yaml index e73881bc..713710d5 100644 --- a/components/tts.yaml +++ b/components/tts.yaml @@ -7,4 +7,3 @@ cache: true cache_dir: ./tts time_memory: 300 base_url: !secret base_url -language: 'it' -- 2.47.3