From 567955f0e0516bfa1cd700e6ec128641751b010c Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Fri, 19 Jan 2024 01:10:56 +0100 Subject: [PATCH] Disable turing music on in bathroom at night --- configuration/automations/bathroom-toothbrush.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configuration/automations/bathroom-toothbrush.yaml b/configuration/automations/bathroom-toothbrush.yaml index a9ebf10..a097c8a 100644 --- a/configuration/automations/bathroom-toothbrush.yaml +++ b/configuration/automations/bathroom-toothbrush.yaml @@ -7,7 +7,13 @@ entity_id: sensor.smart_series_7000_a19f_toothbrush_state action: - service: script.bathroom_mirror_lights_on - - service: script.bathroom_music_on + - choose: + - conditions: + - condition: time + after: "00:00:00" + before: "08:00:00" + sequence: + - service: script.bathroom_music_on - id: bathroom_toothbrush_picked_up alias: '[Bathroom] Toothbrush picked-up'