diff --git a/config/lovelace/home_dashboard/preferences_dashboard.yaml b/config/lovelace/home_dashboard/preferences_dashboard.yaml index 54b754f..3020486 100644 --- a/config/lovelace/home_dashboard/preferences_dashboard.yaml +++ b/config/lovelace/home_dashboard/preferences_dashboard.yaml @@ -117,6 +117,7 @@ - input_text.wake_up_spotify_playlist - input_number.wake_up_volume - input_number.bathroom_high_volume + - input_text.bedroom_2_playlist - type: custom:decluttering-card template: v3_section_title diff --git a/config/packages/devices/bedroom/bedside_switch_2.yaml b/config/packages/devices/bedroom/bedside_switch_2.yaml index a10bf20..38c799a 100644 --- a/config/packages/devices/bedroom/bedside_switch_2.yaml +++ b/config/packages/devices/bedroom/bedside_switch_2.yaml @@ -1,3 +1,8 @@ +input_text: + bedroom_2_playlist: + name: Bedroom playlist + icon: mdi:spotify + automation: - alias: Bedroom · Bedside Second Switch use_blueprint: @@ -16,8 +21,16 @@ automation: brightness_pct: 100 double_click: - - service: media_player.media_play_pause + - service: scene.turn_on + entity_id: scene.bedroom_ambient_pink + - service: media_player.unjoin entity_id: media_player.master_bedroom + - service: media_player.play_media + target: + entity_id: media_player.master_bedroom + data_template: + media_content_type: "music" + media_content_id: "{{ states('input_text.bedroom_2_playlist') }}" hold: - service: script.toggle_bedroom_mode