mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-15 17:12:59 +00:00
Add folders
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
automation:
|
||||
- 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 %}
|
||||
|
||||
- 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