Preference to disable music when coming home

This commit is contained in:
2022-06-12 23:35:15 +03:00
parent 9c6a7d5319
commit ead55f4b2e
2 changed files with 8 additions and 8 deletions
@@ -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:
+6 -1
View File
@@ -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: