From 129ac4c7339cb92f6d82fd15cdbf6c5efbada56f Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Wed, 22 Feb 2023 16:54:38 -0500 Subject: [PATCH] Use new master bedroom handling for good morning routine --- packages/lighting_and_scenes.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/lighting_and_scenes.yaml b/packages/lighting_and_scenes.yaml index cfd0547..1aeccbc 100644 --- a/packages/lighting_and_scenes.yaml +++ b/packages/lighting_and_scenes.yaml @@ -1104,13 +1104,14 @@ script: morning_scene: alias: 'Morning Scene' sequence: + - service: input_boolean.turn_off + target: + entity_id: input_boolean.master_bedroom_sleeping - if: - - condition: template - value_template: "{{ states('weather.iron_nerd_weather_station') not in ['sunny','clear-night'] }}" + - condition: numeric_state + entity_id: sensor.pirateweather_cloud_coverage + above: 50 then: - - service: light.turn_on - target: - entity_id: light.master_bedroom_lights - if: - condition: template value_template: "{{ is_state('input_boolean.kallen_sleeping','off') and is_state('person.kallen_stork','home') }}"