From 99b9a39ca9a9fddca2e4b40be8f0dcfafafd5e32 Mon Sep 17 00:00:00 2001 From: pgrondek Date: Sun, 8 Nov 2020 23:54:34 +0100 Subject: [PATCH] Automation for tv --- automations/files/tv.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 automations/files/tv.yaml diff --git a/automations/files/tv.yaml b/automations/files/tv.yaml new file mode 100644 index 0000000..b01ff78 --- /dev/null +++ b/automations/files/tv.yaml @@ -0,0 +1,29 @@ +- id: tv_morning + alias: Morning TV turn off + description: '' + trigger: + - platform: state + entity_id: media_player.samsung_qe55q6fam + from: 'off' + to: 'on' + condition: + - condition: time + after: '6:00' + before: '10:00' + weekday: + - mon + - tue + - wed + - thu + - fri + action: + - delay: '5' + - service: media_player.turn_off + data: {} + entity_id: media_player.samsung_qe55q6fam + - service: tts.google_translate_say + data: + language: pl + message: Wstawaj a nie oglądaj telewizję + entity_id: media_player.livingroom_speaker + mode: single