mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-09 23:02:59 +00:00
Extract bathroom switch
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user