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
+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: