1
0

Add PC suspend when tv is turned on

This commit is contained in:
pgrondek 2021-04-29 08:01:09 +02:00
parent ac6376e808
commit ae2ddf20bf

View File

@ -1,5 +1,5 @@
- id: tv-volume notification
alias: '[Phone] Sleep as Android'
- id: tv-volume-notification
alias: '[TV] Volume notification'
mode: single
trigger:
- platform: state
@ -17,4 +17,15 @@
message: '{{ ( state_attr(''media_player.living_room'', ''volume_level'') * 100) | int }} %'
data:
duration: 1
color: black
color: black
- id: tv-suspend-pc
alias: '[TV] When turned on suspend PC'
description: ''
mode: single
trigger:
- platform: state
entity_id: media_player.samsung_qe55q6fam
from: 'off'
to: 'on'
action:
- service: script.pc_sleep