diff --git a/configuration/automations/bathroom-mirror-button.yaml b/configuration/automations/bathroom-mirror-button.yaml index 188968a..0966031 100644 --- a/configuration/automations/bathroom-mirror-button.yaml +++ b/configuration/automations/bathroom-mirror-button.yaml @@ -1,16 +1,4 @@ -- id: bathroom-mirror-lights-on - 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 +- id: bathroom-mirror-lights alias: '[Bathroom] Mirror Button Lights toggle' trigger: - device_id: ea9d3cc90cf5da1108925e50489efce9 @@ -22,7 +10,7 @@ - service: script.bathroom_mirror_lights_toggle mode: single -- id: bathroom-mirror-button-3 +- id: bathroom-mirror-button-vacuum alias: '[Bathroom] Mirror Button Vacuum' trigger: - device_id: ea9d3cc90cf5da1108925e50489efce9 @@ -45,7 +33,7 @@ target: entity_id: vacuum.valetudo_valetudos5 -- id: bathroom-mirror-button-4 +- id: bathroom-mirror-button-automations-off alias: '[Bathroom] Mirror Button Automations' trigger: - device_id: ea9d3cc90cf5da1108925e50489efce9 diff --git a/configuration/automations/bathroom-music-button.yaml b/configuration/automations/bathroom-music-button.yaml index e608937..60a953a 100644 --- a/configuration/automations/bathroom-music-button.yaml +++ b/configuration/automations/bathroom-music-button.yaml @@ -32,6 +32,11 @@ platform: device type: 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: not conditions: @@ -47,7 +52,7 @@ target: entity_id: media_player.bathroom data: - media_content_id: https://open.spotify.com/playlist/71mXIu6HcdVj3fAMduaHop + media_content_id: "{{ states('input_text.bathroom_playlist') }}" media_content_type: music - id: bathroom-music-button-pause @@ -60,5 +65,10 @@ platform: device type: 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: - service: script.bathroom_music_toggle \ No newline at end of file diff --git a/configuration/configuration.yaml b/configuration/configuration.yaml index 0bf8972..aad8e88 100644 --- a/configuration/configuration.yaml +++ b/configuration/configuration.yaml @@ -99,6 +99,9 @@ input_select: - Away icon: "mdi:home" input_text: + bathroom_playlist: + name: Bathroom playlist + icon: "mdi:folder-music-outline" logbook: network: map: