Some bugfixes to master bedroom climate handling
This commit is contained in:
Submodule node-red/projects/NerdFlows updated: f60c0fb436...9c3cd70ca2
@ -36,6 +36,9 @@ automation:
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity_id: group.adults
|
entity_id: group.adults
|
||||||
state: home
|
state: home
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.vacation_mode
|
||||||
|
state: 'off'
|
||||||
action:
|
action:
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
@ -84,9 +87,18 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- variables:
|
- variables:
|
||||||
brightness: "{{ state_attr('switch.adaptive_lighting_master_bedroom','brightness_pct') }}"
|
brightness: "{{ state_attr('switch.adaptive_lighting_master_bedroom','brightness_pct') }}"
|
||||||
- service: button.press
|
- if:
|
||||||
target:
|
- condition: template
|
||||||
entity_id: button.master_bedroom_day_mode
|
value_template: >
|
||||||
|
{% from 'time.jinja' import ct %}
|
||||||
|
{% set ct = ct() | int %}
|
||||||
|
{% set cooling = state_attr('input_datetime.master_bedroom_cooling','timestamp') | int %}
|
||||||
|
{% set wakeup = state_attr('input_datetime.master_bedroom_wakeup','timestamp') | int %}
|
||||||
|
{{ 21600 < ct < cooling }}
|
||||||
|
then:
|
||||||
|
- service: button.press
|
||||||
|
target:
|
||||||
|
entity_id: button.master_bedroom_day_mode
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: switch.master_bedroom_echo_dot_do_not_disturb_switch
|
entity_id: switch.master_bedroom_echo_dot_do_not_disturb_switch
|
||||||
@ -152,9 +164,14 @@ script:
|
|||||||
alias: 'Master Bedroom Sleep'
|
alias: 'Master Bedroom Sleep'
|
||||||
mode: restart
|
mode: restart
|
||||||
sequence:
|
sequence:
|
||||||
- service: button.press
|
- if:
|
||||||
target:
|
- condition: state
|
||||||
entity_id: button.master_bedroom_night_mode
|
entity_id: input_boolean.night_mode
|
||||||
|
state: 'off'
|
||||||
|
then:
|
||||||
|
- service: button.press
|
||||||
|
target:
|
||||||
|
entity_id: button.master_bedroom_night_mode
|
||||||
- wait_template: "{{ is_state('light.master_bedroom_lights','off') }}"
|
- wait_template: "{{ is_state('light.master_bedroom_lights','off') }}"
|
||||||
timeout:
|
timeout:
|
||||||
minutes: 60
|
minutes: 60
|
||||||
|
Reference in New Issue
Block a user