1
0

Bathroom music cleanup

This commit is contained in:
Przemek Grondek 2022-08-08 23:56:35 +02:00
parent ae247e929a
commit 8cb038d6ba
3 changed files with 17 additions and 16 deletions

View File

@ -1,16 +1,4 @@
- id: bathroom-mirror-lights-on - id: bathroom-mirror-lights
alias: '[Bathroom] Mirror Button Music'
trigger:
- device_id: ea9d3cc90cf5da1108925e50489efce9
domain: zha
platform: device
type: remote_button_alt_short_press
subtype: button_2
action:
- service: script.bathroom_music_toggle
mode: single
- id: bathroom-mirror-lights-off
alias: '[Bathroom] Mirror Button Lights toggle' alias: '[Bathroom] Mirror Button Lights toggle'
trigger: trigger:
- device_id: ea9d3cc90cf5da1108925e50489efce9 - device_id: ea9d3cc90cf5da1108925e50489efce9
@ -22,7 +10,7 @@
- service: script.bathroom_mirror_lights_toggle - service: script.bathroom_mirror_lights_toggle
mode: single mode: single
- id: bathroom-mirror-button-3 - id: bathroom-mirror-button-vacuum
alias: '[Bathroom] Mirror Button Vacuum' alias: '[Bathroom] Mirror Button Vacuum'
trigger: trigger:
- device_id: ea9d3cc90cf5da1108925e50489efce9 - device_id: ea9d3cc90cf5da1108925e50489efce9
@ -45,7 +33,7 @@
target: target:
entity_id: vacuum.valetudo_valetudos5 entity_id: vacuum.valetudo_valetudos5
- id: bathroom-mirror-button-4 - id: bathroom-mirror-button-automations-off
alias: '[Bathroom] Mirror Button Automations' alias: '[Bathroom] Mirror Button Automations'
trigger: trigger:
- device_id: ea9d3cc90cf5da1108925e50489efce9 - device_id: ea9d3cc90cf5da1108925e50489efce9

View File

@ -32,6 +32,11 @@
platform: device platform: device
type: remote_button_double_press type: remote_button_double_press
subtype: remote_button_double_press subtype: remote_button_double_press
- device_id: ea9d3cc90cf5da1108925e50489efce9
domain: zha
platform: device
type: remote_button_alt_double_press
subtype: button_2
condition: condition:
- condition: not - condition: not
conditions: conditions:
@ -47,7 +52,7 @@
target: target:
entity_id: media_player.bathroom entity_id: media_player.bathroom
data: data:
media_content_id: https://open.spotify.com/playlist/71mXIu6HcdVj3fAMduaHop media_content_id: "{{ states('input_text.bathroom_playlist') }}"
media_content_type: music media_content_type: music
- id: bathroom-music-button-pause - id: bathroom-music-button-pause
@ -60,5 +65,10 @@
platform: device platform: device
type: remote_button_short_press type: remote_button_short_press
subtype: remote_button_short_press subtype: remote_button_short_press
- device_id: ea9d3cc90cf5da1108925e50489efce9
domain: zha
platform: device
type: remote_button_alt_short_press
subtype: button_2
action: action:
- service: script.bathroom_music_toggle - service: script.bathroom_music_toggle

View File

@ -99,6 +99,9 @@ input_select:
- Away - Away
icon: "mdi:home" icon: "mdi:home"
input_text: input_text:
bathroom_playlist:
name: Bathroom playlist
icon: "mdi:folder-music-outline"
logbook: logbook:
network: network:
map: map: