mirror of
https://github.com/GeorgeSG/sarah.git
synced 2025-12-28 20:30:29 +00:00
start music from kitchen
This commit is contained in:
@@ -40,16 +40,9 @@ views:
|
||||
- type: 'custom:simple-clock-card'
|
||||
hide_seconds: true
|
||||
font_size: 4rem
|
||||
addingTop_size: 0px
|
||||
paddingBottom_size: 0px
|
||||
style: |
|
||||
ha-card {
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
margin-top: 30px;
|
||||
margin-bottom: 10px;
|
||||
text-align: left;
|
||||
}
|
||||
paddingTop_size: 23px
|
||||
paddingBottom_size: 23px
|
||||
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
@@ -73,6 +66,55 @@ views:
|
||||
entity: binary_sensor.kitchen_door
|
||||
name: Door
|
||||
|
||||
|
||||
|
||||
- type: custom:decluttering-card
|
||||
template: v3_section_title
|
||||
variables:
|
||||
- title: Music
|
||||
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: v3_xs_button
|
||||
entity: script.sonos_guitar_instrumental
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: script.sonos_guitar_instrumental
|
||||
name: Китара
|
||||
icon: mdi:music
|
||||
show_state: false
|
||||
- type: custom:button-card
|
||||
template: v3_xs_button
|
||||
entity: script.sonos_french
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: script.sonos_french
|
||||
name: Шансони
|
||||
icon: mdi:music
|
||||
show_state: false
|
||||
- type: custom:button-card
|
||||
template: v3_xs_button
|
||||
entity: script.sonos_starred
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: script.sonos_starred
|
||||
name: Starred
|
||||
icon: mdi:music
|
||||
show_state: false
|
||||
- type: custom:button-card
|
||||
template: v3_xs_button
|
||||
entity: media_player.kitchen
|
||||
name: Stop
|
||||
icon: mdi:stop
|
||||
show_state: false
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: media_player.media_stop
|
||||
service_data:
|
||||
entity_id: media_player.master_bedroom
|
||||
|
||||
|
||||
- type: custom:decluttering-card
|
||||
template: v3_section_title
|
||||
variables:
|
||||
@@ -114,29 +156,31 @@ views:
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: "[[[ return entity.state == 'on' ? 'script.sonos_kitchen_unjoin' : 'script.sonos_kitchen_join' ]]]"
|
||||
- type: custom:button-card
|
||||
template: v3_button_radiator
|
||||
entity: climate.kitchen_radiator_mode
|
||||
name: Radiator
|
||||
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
template: v3_button
|
||||
entity: vacuum.vacuum
|
||||
name: Vacuum
|
||||
- type: custom:button-card
|
||||
template: v3_button
|
||||
name: Coffe machine
|
||||
entity: button.coffee_machine
|
||||
show_state: false
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: button.press
|
||||
service_data:
|
||||
entity_id: button.coffee_machine
|
||||
- type: custom:button-card
|
||||
template: v3_button_brita_water
|
||||
|
||||
# - type: custom:button-card
|
||||
# template: v3_button_radiator
|
||||
# entity: climate.kitchen_radiator_mode
|
||||
# name: Radiator
|
||||
|
||||
# - type: horizontal-stack
|
||||
# cards:
|
||||
# - type: custom:button-card
|
||||
# template: v3_button
|
||||
# entity: vacuum.vacuum
|
||||
# name: Vacuum
|
||||
# - type: custom:button-card
|
||||
# template: v3_button
|
||||
# name: Coffe machine
|
||||
# entity: button.coffee_machine
|
||||
# show_state: false
|
||||
# tap_action:
|
||||
# action: call-service
|
||||
# service: button.press
|
||||
# service_data:
|
||||
# entity_id: button.coffee_machine
|
||||
|
||||
|
||||
- !include ./lovelace/popup_cards.yaml
|
||||
|
||||
@@ -43,7 +43,7 @@ script:
|
||||
- condition: state
|
||||
entity_id: input_select.bedroom_mode
|
||||
state: "day"
|
||||
- service: media_player.join
|
||||
- action: media_player.join
|
||||
entity_id: media_player.master_bedroom
|
||||
data:
|
||||
group_members:
|
||||
@@ -55,7 +55,7 @@ script:
|
||||
sonos_join_tv:
|
||||
alias: Sonos · Join to TV
|
||||
sequence:
|
||||
- service: media_player.join
|
||||
- action: media_player.join
|
||||
entity_id: media_player.living_room
|
||||
data:
|
||||
group_members:
|
||||
@@ -63,7 +63,7 @@ script:
|
||||
- media_player.living_room
|
||||
- media_player.kitchen
|
||||
- media_player.bathroom
|
||||
- service: media_player.select_source
|
||||
- action: media_player.select_source
|
||||
entity_id: media_player.living_room
|
||||
data:
|
||||
source: TV
|
||||
@@ -71,7 +71,7 @@ script:
|
||||
sonos_kitchen_unjoin:
|
||||
alias: Sonos · Kitchen · Unjoin
|
||||
sequence:
|
||||
- service: media_player.unjoin
|
||||
- action: media_player.unjoin
|
||||
entity_id: media_player.kitchen
|
||||
|
||||
sonos_kitchen_join:
|
||||
@@ -84,7 +84,7 @@ script:
|
||||
sonos_bathroom_unjoin:
|
||||
alias: Sonos · Bathroom · Unjoin
|
||||
sequence:
|
||||
- service: media_player.unjoin
|
||||
- action: media_player.unjoin
|
||||
entity_id: media_player.bathroom
|
||||
|
||||
sonos_bathroom_join:
|
||||
@@ -97,7 +97,7 @@ script:
|
||||
sonos_bathroom_up:
|
||||
alias: Sonos · Bathroom up
|
||||
sequence:
|
||||
- service: media_player.volume_set
|
||||
- action: media_player.volume_set
|
||||
entity_id: media_player.bathroom
|
||||
data:
|
||||
volume_level: 0.5
|
||||
@@ -105,7 +105,7 @@ script:
|
||||
sonos_bathroom_down:
|
||||
alias: Sonos · Bathroom down
|
||||
sequence:
|
||||
- service: media_player.volume_set
|
||||
- action: media_player.volume_set
|
||||
entity_id: media_player.bathroom
|
||||
data:
|
||||
volume_level: 0.2
|
||||
@@ -113,7 +113,7 @@ script:
|
||||
sonos_volume_10:
|
||||
alias: Sonos · Volume 10
|
||||
sequence:
|
||||
- service: media_player.volume_set
|
||||
- action: media_player.volume_set
|
||||
entity_id:
|
||||
- media_player.master_bedroom
|
||||
- media_player.bathroom
|
||||
@@ -125,7 +125,7 @@ script:
|
||||
sonos_volume_20:
|
||||
alias: Sonos · Volume 20
|
||||
sequence:
|
||||
- service: media_player.volume_set
|
||||
- action: media_player.volume_set
|
||||
entity_id:
|
||||
- media_player.master_bedroom
|
||||
- media_player.bathroom
|
||||
@@ -134,15 +134,48 @@ script:
|
||||
data:
|
||||
volume_level: 0.2
|
||||
|
||||
sonos_guitar_instrumental:
|
||||
alias: Sonos · Guitar instrumental
|
||||
sequence:
|
||||
- action: script.sonos_join_bedroom
|
||||
- action: script.sonos_volume_10
|
||||
- action: media_player.play_media
|
||||
entity_id: media_player.master_bedroom
|
||||
data:
|
||||
media_content_type: music
|
||||
media_content_id: "https://open.spotify.com/playlist/6Onob5oSLCcIholUFMCQfH?si=e496aef88e564a1d"
|
||||
|
||||
sonos_french:
|
||||
alias: Sonos · French
|
||||
sequence:
|
||||
- action: script.sonos_join_bedroom
|
||||
- action: script.sonos_volume_10
|
||||
- action: media_player.play_media
|
||||
entity_id: media_player.master_bedroom
|
||||
data:
|
||||
media_content_type: music
|
||||
media_content_id: "https://open.spotify.com/playlist/7qM6cl2bp87RNNzh9G2QEq?si=5719b0e289c24d01"
|
||||
|
||||
sonos_starred:
|
||||
alias: Sonos · Starred
|
||||
sequence:
|
||||
- action: script.sonos_join_bedroom
|
||||
- action: script.sonos_volume_10
|
||||
- action: media_player.play_media
|
||||
entity_id: media_player.master_bedroom
|
||||
data:
|
||||
media_content_type: music
|
||||
media_content_id: "https://open.spotify.com/playlist/1dstTefWFQaBFTC6CjcEHd?si=15520be5342b4a14"
|
||||
|
||||
automation:
|
||||
- alias: Media · Sonos · Put Beam in night mode
|
||||
trigger:
|
||||
platform: time
|
||||
at: "22:00:00"
|
||||
action:
|
||||
- service: switch.turn_on
|
||||
- action: switch.turn_on
|
||||
entity_id: switch.sonos_living_room_night_sound
|
||||
- service: logbook.log
|
||||
- action: logbook.log
|
||||
data:
|
||||
name: "🔊 Media Module · "
|
||||
message: "Sonos Mode · Putting Beam in night mode"
|
||||
@@ -153,9 +186,9 @@ automation:
|
||||
platform: time
|
||||
at: "08:00:00"
|
||||
action:
|
||||
- service: switch.turn_off
|
||||
- action: switch.turn_off
|
||||
entity_id: switch.sonos_living_room_night_sound
|
||||
- service: logbook.log
|
||||
- action: logbook.log
|
||||
data:
|
||||
name: "🔊 Media Module · "
|
||||
message: "Sonos Mode · Putting Beam in day mode"
|
||||
|
||||
Reference in New Issue
Block a user