mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-15 09:12:57 +00:00
Preference to disable music when coming home
This commit is contained in:
@@ -89,13 +89,8 @@
|
||||
name: Mercury
|
||||
- type: custom:button-card
|
||||
template: v3_button
|
||||
entity: input_select.bedroom_mode
|
||||
name: Bedroom
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: input_select.select_next
|
||||
service_data:
|
||||
entity_id: input_select.bedroom_mode
|
||||
entity: input_boolean.coming_home_play_music
|
||||
name: Coming home music?
|
||||
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
|
||||
@@ -3,6 +3,9 @@ input_boolean:
|
||||
name: Coming home · Say welcome
|
||||
initial: on
|
||||
icon: mdi:account-plus-outline
|
||||
coming_home_play_music:
|
||||
name: Coming home · Play music
|
||||
icon: mdi:music-box-outline
|
||||
|
||||
script:
|
||||
routine_coming_home:
|
||||
@@ -88,6 +91,9 @@ script:
|
||||
before: "23:00:00"
|
||||
- condition: time
|
||||
after: "09:00:00"
|
||||
- condition: state
|
||||
entity_id: input_boolean.coming_home_play_music
|
||||
state: "on"
|
||||
|
||||
- service: script.say
|
||||
data_template:
|
||||
@@ -101,7 +107,6 @@ script:
|
||||
] | random
|
||||
}}
|
||||
- delay: 00:00:02
|
||||
|
||||
- service: script.music_play
|
||||
|
||||
automation:
|
||||
|
||||
Reference in New Issue
Block a user