Add TV automations
This commit is contained in:
parent
2e46d167e9
commit
0662b6d9ac
1 changed files with 20 additions and 0 deletions
20
automations/files/automations/tv-automations.yaml
Normal file
20
automations/files/automations/tv-automations.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
- id: tv-volume notification
|
||||
alias: '[Phone] Sleep as Android'
|
||||
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:
|
||||
- service: notify.kitchen
|
||||
data:
|
||||
title: Volume 🔊
|
||||
message: '{{ ( state_attr(''media_player.living_room'', ''volume_level'') * 100) | int }} %'
|
||||
data:
|
||||
duration: 1
|
||||
color: black
|
Loading…
Reference in a new issue