]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Modified speech automations
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Mon, 25 Feb 2019 13:01:50 +0000 (14:01 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Mon, 25 Feb 2019 13:01:50 +0000 (14:01 +0100)
automation/speech.yaml

index c943b2c62637926e873507e3714234e4cc9a61be..0290cc63e209f5cf0179aeebaa9807eb7dcc8e85 100644 (file)
@@ -1,6 +1,8 @@
 ######################################################################
 # Welcome message
-# - greeting
+#
+# Operations:
+# - script.speech_engine
 # - disable away mode
 ######################################################################
 
     - 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."