From 81410a43489362d8d10981914b38a4cd659b76d6 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 10 Jul 2022 23:20:10 +0200 Subject: [PATCH] [Bedroom bed button] Change sleep button to sleep/wakeup --- .../automations/bedroom-bed-button.yaml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/configuration/automations/bedroom-bed-button.yaml b/configuration/automations/bedroom-bed-button.yaml index bd8321d..ebbd4a3 100644 --- a/configuration/automations/bedroom-bed-button.yaml +++ b/configuration/automations/bedroom-bed-button.yaml @@ -9,8 +9,8 @@ action: - service: script.bedroom_bed_lamp_toggle -- id: bedroom-bed-sleep - alias: '[Bedroom] Bed Sleep' +- id: bedroom-bed-sleep-morning + alias: '[Bedroom] Bed Sleep/Morning' trigger: - device_id: 0d584dbfe721e00880b38c4dfc1c108e domain: zha @@ -24,4 +24,17 @@ entity_id: input_select.home_mode state: Away action: - - service: script.good_night + - choose: + - conditions: + - condition: state + entity_id: input_select.home_mode + state: Day + sequence: + - service: script.good_night + - conditions: + - condition: state + entity_id: input_select.home_mode + state: Night + sequence: + - service: script.good_morning +