1
0
Fork 0

Add TV automations

This commit is contained in:
pgrondek 2021-04-17 13:41:51 +02:00
parent 2e46d167e9
commit 0662b6d9ac

View 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