mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-11-09 13:48:44 +00:00
Update bathroom switch automations
This commit is contained in:
@@ -42,10 +42,10 @@ automation:
|
|||||||
data_template:
|
data_template:
|
||||||
volume_level: >-
|
volume_level: >-
|
||||||
|
|
||||||
{% if state_attr('media_player.bathroom', 'volume_level')|float > 0.5 %}
|
{% if state_attr('media_player.bathroom', 'volume_level')|float > 0.45 %}
|
||||||
0.2
|
0.25
|
||||||
{% else %}
|
{% else %}
|
||||||
0.55
|
0.5
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
- alias: Youtube · play latest pds on bathroom switch dobule click
|
- alias: Youtube · play latest pds on bathroom switch dobule click
|
||||||
@@ -60,5 +60,5 @@ automation:
|
|||||||
- service: media_player.volume_set
|
- service: media_player.volume_set
|
||||||
entity_id: media_player.bathroom
|
entity_id: media_player.bathroom
|
||||||
data:
|
data:
|
||||||
volume_level: 0.55
|
volume_level: 0.5
|
||||||
- service: script.youtube_play_latest_pds
|
- service: script.youtube_play_latest_pds
|
||||||
|
|||||||
Reference in New Issue
Block a user