mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-15 17:12:59 +00:00
Add basic automation for bathroom switch
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user