2020-11-08 22:54:34 +00:00
|
|
|
- id: tv_morning
|
2021-01-23 18:32:51 +00:00
|
|
|
alias: '[Behaviour] Morning TV turn off'
|
2020-11-08 22:54:34 +00:00
|
|
|
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
|