From: Giorgio Ravera Date: Mon, 25 Feb 2019 13:01:50 +0000 (+0100) Subject: Modified speech automations X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=511bfde92668a1475fa7fca6a7e7d410b1956400;p=homeassistant.git Modified speech automations --- 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."