2022-08-18 23:02:16 +00:00
|
|
|
- id: living-room-tv-volume-notification
|
|
|
|
alias: '[Living Room][TV] Volume notification'
|
2021-04-17 11:41:51 +00:00
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: media_player.living_room
|
|
|
|
attribute: volume_level
|
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: media_player.living_room
|
|
|
|
state: TV
|
|
|
|
attribute: source
|
|
|
|
action:
|
2021-04-19 10:27:01 +00:00
|
|
|
- service: notify.shield
|
2021-04-17 11:41:51 +00:00
|
|
|
data:
|
|
|
|
title: Volume 🔊
|
|
|
|
message: '{{ ( state_attr(''media_player.living_room'', ''volume_level'') * 100) | int }} %'
|
|
|
|
data:
|
|
|
|
duration: 1
|
2021-04-29 06:01:09 +00:00
|
|
|
color: black
|
2021-05-10 10:24:31 +00:00
|
|
|
|
2022-08-18 23:02:16 +00:00
|
|
|
- id: living-room-tv-suspend-pc
|
|
|
|
alias: '[Living Room][TV] When turned on suspend PC'
|
2021-04-29 06:01:09 +00:00
|
|
|
description: ''
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: media_player.samsung_qe55q6fam
|
|
|
|
from: 'off'
|
|
|
|
to: 'on'
|
|
|
|
action:
|
|
|
|
- service: script.pc_sleep
|
2021-07-23 22:35:39 +00:00
|
|
|
|
2022-08-18 23:02:16 +00:00
|
|
|
- id: living-room-tv-update-harmony-mode
|
|
|
|
alias: '[Living Room][TV] Update harmony mode'
|
2021-07-23 22:35:39 +00:00
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: media_player.samsung_qe55q6fam
|
|
|
|
to: 'unavailable'
|
2021-08-11 22:51:22 +00:00
|
|
|
for:
|
|
|
|
minutes: 5
|
2021-07-23 22:35:39 +00:00
|
|
|
action:
|
|
|
|
- service: script.tv_off
|