From: Giorgio Ravera Date: Sat, 9 Feb 2019 11:32:55 +0000 (+0100) Subject: Added script to change the TV channel X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=3b9f5addf0bd554213bdc67bf96760a307f24c46;p=homeassistant.git Added script to change the TV channel --- diff --git a/script/all_covers.yaml b/script/all_covers.yaml index 3be63fa8..d6aaa8a3 100644 --- a/script/all_covers.yaml +++ b/script/all_covers.yaml @@ -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 index 00000000..ed2ea8f6 --- /dev/null +++ b/script/media_player.yaml @@ -0,0 +1,23 @@ +###################################################################### +# Script: TV Change Channel +# Inputs: +# - tv +# - channel +# +# Operations: +# - media_player.play_media +###################################################################### + +tv_change_channel: + alias: TV Cambia Canale + sequence: + - service: media_player.play_media + data_template: + entity_id: >- + {% if tv | length == 0 %} + {% set tv = 'media_player.tv_sala' %} + {% endif %} + {{ tv }} + media_content_type: "channel" + media_content_id: >- + {{ channel }} diff --git a/script/notify.yaml b/script/notify.yaml index 103fec59..c3ceba67 100644 --- a/script/notify.yaml +++ b/script/notify.yaml @@ -6,9 +6,9 @@ # - enable_persistent # # Operations: -# - mail -# - browser push -# - enable_persistent notification +# - notify.mail +# - notify.push +# - persistent_notification.create (if enable_persistent) ###################################################################### notify_text_internal: @@ -63,7 +63,15 @@ notify_text: ###################################################################### # Script: Voice Notification -# - google home +# Input: +# - media_player +# - volume_level +# - language +# - message +# +# Operations: +# - media_player.volume_set +# - tts.google_say ###################################################################### notify_voice: diff --git a/script/speech_engine.yaml b/script/speech_engine.yaml index fe291329..9292bf29 100644 --- a/script/speech_engine.yaml +++ b/script/speech_engine.yaml @@ -6,8 +6,8 @@ # - message # - enable_greeting # -# - announcement -# - welcome_message +# Operations: +# - script.notify_voice (greeting + message) ###################################################################### speech_engine: