]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Added script to change the TV channel
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Sat, 9 Feb 2019 11:32:55 +0000 (12:32 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Sat, 9 Feb 2019 11:32:55 +0000 (12:32 +0100)
script/all_covers.yaml
script/media_player.yaml [new file with mode: 0644]
script/notify.yaml
script/speech_engine.yaml

index 3be63fa8738b4cd314822ac81760e13ce14e2a45..d6aaa8a38eceb7538aa265b72d558a9cddcbfb5c 100644 (file)
@@ -1,5 +1,10 @@
 ######################################################################
 # All Covers Operation
+# Inputs:
+# - modus
+#
+# Operations:
+# - cover.{{modus}}_cover
 ######################################################################
 
 all_covers_operation:
@@ -15,6 +20,11 @@ all_covers_operation:
 
 ######################################################################
 # All Covers Position
+# Inputs:
+# - position
+#
+# Operations:
+# - cover.set_cover_position
 ######################################################################
 
 all_covers_position:
diff --git a/script/media_player.yaml b/script/media_player.yaml
new file mode 100644 (file)
index 0000000..ed2ea8f
--- /dev/null
@@ -0,0 +1,23 @@
+######################################################################\r
+# Script: TV Change Channel\r
+# Inputs:\r
+# - tv\r
+# - channel\r
+#\r
+# Operations:\r
+# - media_player.play_media\r
+######################################################################\r
+\r
+tv_change_channel:\r
+  alias: TV Cambia Canale\r
+  sequence: \r
+    - service: media_player.play_media\r
+      data_template:\r
+        entity_id: >-\r
+          {% if tv | length == 0 %}\r
+          {% set tv = 'media_player.tv_sala' %}\r
+          {% endif %}\r
+          {{ tv }}\r
+        media_content_type: "channel"\r
+        media_content_id: >-\r
+          {{ channel }}\r
index 103fec590a1b5338b16ebcaef8ba9a9f6f40667c..c3ceba674d692aed0a9d85d8b1ed412dd58516d7 100644 (file)
@@ -6,9 +6,9 @@
 # - enable_persistent\r
 #\r
 # Operations:\r
-# - mail\r
-# - browser push\r
-# - enable_persistent notification\r
+# - notify.mail\r
+# - notify.push\r
+# - persistent_notification.create (if enable_persistent)\r
 ######################################################################\r
 \r
 notify_text_internal:\r
@@ -63,7 +63,15 @@ notify_text:
 \r
 ######################################################################\r
 # Script: Voice Notification\r
-# - google home\r
+# Input:\r
+# - media_player\r
+# - volume_level\r
+# - language\r
+# - message\r
+#\r
+# Operations:\r
+# - media_player.volume_set\r
+# - tts.google_say\r
 ######################################################################\r
 \r
 notify_voice:\r
index fe291329ed3d29b5a7db56ae66532f0b3cfbe846..9292bf29b4e6b0de8c08a73bb97fee1e23459546 100644 (file)
@@ -6,8 +6,8 @@
 # - message\r
 # - enable_greeting\r
 #\r
-# - announcement\r
-# - welcome_message\r
+# Operations:\r
+# - script.notify_voice (greeting + message)\r
 ######################################################################\r
 \r
 speech_engine:\r