Improved Good Morning flow #75

This commit is contained in:
2023-02-15 13:20:33 -05:00
parent 0ba4bd5e18
commit 2224d1eab9
3 changed files with 27 additions and 8 deletions

Submodule node-red/projects/NerdFlows updated: 1ab1ebb11c...c15f901fdc

View File

@ -215,13 +215,6 @@ script:
- service: input_boolean.turn_off
entity_id: input_boolean.good_morning
morning_briefing_alexa:
alias: 'Morning Briefing Alexa'
sequence:
- service: button.press
target:
entity_id: button.good_morning
kallen_nightly_briefing:
alias: 'Kallen Nightly Briefing'
sequence:

View File

@ -1051,6 +1051,32 @@ script:
Nightlight
{% endif %}
morning_scene:
alias: 'Morning Scene'
sequence:
- if:
- condition: template
value_template: "{{ states('weather.iron_nerd_weather_station') not in ['sunny','clear-night'] }}"
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') }}"
then:
- service: light.turn_on
target:
entity_id: light.kallen_bedroom_lights
- if:
- condition: state
entity_id: input_boolean.emma_sleeping
state: 'off'
then:
- service: light.turn_on
target:
entity_id: light.emma_bedroom_light
#! Unless there is a good reason, do not define multi-room scenes below.
#! Use scripts instead, to avoid some straight-up haunted house bullshit...