From 511bfde92668a1475fa7fca6a7e7d410b1956400 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Mon, 25 Feb 2019 14:01:50 +0100 Subject: [PATCH] Modified speech automations --- automation/speech.yaml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/automation/speech.yaml b/automation/speech.yaml index c943b2c6..0290cc63 100644 --- a/automation/speech.yaml +++ b/automation/speech.yaml @@ -1,6 +1,8 @@ ###################################################################### # Welcome message -# - greeting +# +# Operations: +# - script.speech_engine # - disable away mode ###################################################################### @@ -89,3 +91,26 @@ - service: input_boolean.turn_off data: entity_id: input_boolean.home_mode_away + +###################################################################### +# Hourly message +# +# Operations: +# - script.speech_engine +###################################################################### + +- alias: "Saluto orario" + initial_state: 'off' + + trigger: + - platform: time + at: '12:00:00' + + condition: [] + + action: + - service: script.speech_engine + data_template: + message: >- + {% set ora = now().strftime('%H') %} + "Sono le {{ ora }} e tutto va bene." -- 2.47.3