Extract bathroom switch

This commit is contained in:
2020-05-16 14:49:34 +03:00
parent 075d739bb7
commit 27ff369db1
3 changed files with 33 additions and 33 deletions
-20
View File
@@ -98,26 +98,6 @@ automation:
message: "Sonos Mode · Putting Beam in day mode"
domain: media_player
- alias: Media · Sonos · Volume up on bathroom switch click
trigger:
platform: event
event_type: zha_event
event_data:
device_ieee: !secret bathroom_switch_ieee
command: single
action:
- service: media_player.volume_set
entity_id: media_player.bathroom
data_template:
volume_level: >-
{% if state_attr('media_player.bathroom', 'volume_level')|float > 0.5 %}
0.2
{% else %}
0.55
{% endif %}
homeassistant:
customize:
media_player.master_bedroom:
@@ -92,16 +92,3 @@ automation:
data:
message: "Just wanted to let you know - a new PDS is available!"
- alias: Youtube · play latest pds on bathroom switch dobule click
trigger:
platform: event
event_type: zha_event
event_data:
device_ieee: !secret bathroom_switch_ieee
command: double
action:
- service: media_player.volume_set
entity_id: media_player.bathroom
data:
volume_level: 0.55
- service: script.youtube_play_latest_pds