Add basic automation for bathroom switch

This commit is contained in:
2020-05-13 21:23:51 +03:00
parent 296f2e3169
commit 351ac94c08
4 changed files with 37 additions and 0 deletions
@@ -91,3 +91,17 @@ automation:
- service: script.say
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