Moved master bedroom climate stuff to Node-RED

This commit is contained in:
2022-06-17 03:09:54 -04:00
parent bdd732078c
commit a934ceba33
2 changed files with 182 additions and 140 deletions

View File

@ -417,145 +417,171 @@
- automation.family_has_arrived
- automation.family_has_left
mode: queued
- id: '1652215901673'
alias: Master Bedroom Nighttime Protocol
description: Management of the fan and air conditioner in the master bedroom
trigger:
- platform: time
at: input_datetime.master_bedroom_cooling
id: master-bedroom-cooling
- platform: time
at: input_datetime.master_bedroom_wakeup
id: master-bedroom-wakeup
- platform: time
at: input_datetime.master_bedroom_fan
id: master-bedroom-fan
condition:
- condition: state
entity_id: input_boolean.vacation_mode
state: 'off'
- condition: numeric_state
entity_id: sensor.tonights_low_temp
above: '40'
action:
- choose:
- conditions:
- condition: trigger
id: master-bedroom-cooling
sequence:
- if:
- condition: numeric_state
entity_id: sensor.current_forecast
attribute: overnight_low
above: '50'
then:
- service: climate.set_hvac_mode
data:
hvac_mode: cool
- service: climate.set_temperature
data:
temperature: 72
target:
entity_id: climate.master_bedroom_aircon
- service: climate.turn_on
data: {}
target:
entity_id: climate.master_bedroom_aircon
- parallel:
- service: script.text_notify_tony
data:
title: AC Schedule Activated
message: '"Master bedroom AC temp has been set as scheduled based on
tonight''s forecast low"'
- service: script.text_notify_tina
data:
title: AC Schedule Activated
message: '"Master bedroom AC temp has been set as scheduled based on
tonight''s forecast low"'
else:
- service: climate.set_hvac_mode
data:
hvac_mode: fan_only
target:
entity_id: climate.master_bedroom_aircon
- service: climate.turn_on
data: {}
target:
entity_id: climate.master_bedroom_aircon
- parallel:
- service: script.text_notify_tony
data:
title: AC Schedule Skipped
message: Too cold outside, AC running fan only
- service: script.text_notify_tina
data:
title: AC Schedule Skipped
message: Too cold outside, AC running fan only
- conditions:
- condition: trigger
id: master-bedroom-fan
sequence:
- if:
- condition: numeric_state
entity_id: sensor.current_forecast
attribute: overnight_low
above: '40'
then:
- service: switch.turn_on
data: {}
target:
entity_id: switch.master_bedroom_fan_socket_1
- parallel:
- service: script.text_notify_tony
data:
title: Fan Schedule Activated
message: '"Master bedroom fan has been activated, as scheduled based
on tonight''s forecast low"'
- service: script.text_notify_tina
data:
title: Fan Schedule Activated
message: '"Master bedroom fan has been activated, as scheduled based
on tonight''s forecast low"'
- conditions:
- condition: trigger
id: master-bedroom-wakeup
sequence:
- service: switch.turn_off
data: {}
target:
entity_id:
- switch.master_bedroom_fan_socket_1
- switch.master_bedroom_echo_dot_do_not_disturb_switch
- if:
- condition: numeric_state
entity_id: sensor.todays_high_temp
above: '80'
then:
- service: climate.set_hvac_mode
data:
hvac_mode: cool
- service: climate.set_temperature
data:
temperature: 75
target:
entity_id: climate.master_bedroom_aircon
- service: climate.turn_on
data: {}
target:
entity_id: climate.master_bedroom_aircon
else:
- service: climate.turn_off
data: {}
target:
entity_id: climate.master_bedroom_aircon
default:
- service: script.text_notify_tony
data:
title: Master Bedroom Info
message: '"Today''s wakeup time is set to {{ states(''input_datetime.master_bedroom_wakeup'')
}} and tonight''s cooling is set to start at {{ states(''input_datetime.master_bedroom_cooling'')
}}"'
mode: queued
# - id: '1652215901673'
# alias: Master Bedroom Nighttime Protocol
# description: Management of the fan and air conditioner in the master bedroom
# trigger:
# - platform: time
# at: input_datetime.master_bedroom_cooling
# id: master-bedroom-cooling
# - platform: time
# at: input_datetime.master_bedroom_wakeup
# id: master-bedroom-wakeup
# - platform: time
# at: input_datetime.master_bedroom_fan
# id: master-bedroom-fan
# condition:
# - condition: state
# entity_id: input_boolean.vacation_mode
# state: 'off'
# - condition: numeric_state
# entity_id: sensor.tonights_low_temp
# above: '40'
# action:
# - choose:
# - conditions:
# - condition: trigger
# id: master-bedroom-cooling
# sequence:
# - if:
# - condition: numeric_state
# entity_id: sensor.current_forecast
# attribute: overnight_low
# above: '50'
# then:
# - service: climate.turn_on
# data: {}
# target:
# entity_id: climate.master_bedroom_aircon
# - delay:
# hours: 0
# minutes: 0
# seconds: 10
# milliseconds: 0
# - service: climate.set_hvac_mode
# data:
# hvac_mode: cool
# - delay:
# hours: 0
# minutes: 0
# seconds: 5
# milliseconds: 0
# - service: climate.set_temperature
# data:
# temperature: 72
# target:
# entity_id: climate.master_bedroom_aircon
# - parallel:
# - service: script.text_notify_tony
# data:
# title: AC Schedule Activated
# message: '"Master bedroom AC temp has been set as scheduled based on
# tonight''s forecast low"'
# - service: script.text_notify_tina
# data:
# title: AC Schedule Activated
# message: '"Master bedroom AC temp has been set as scheduled based on
# tonight''s forecast low"'
# else:
# - service: climate.turn_on
# data: {}
# target:
# entity_id: climate.master_bedroom_aircon
# - service: climate.set_hvac_mode
# data:
# hvac_mode: fan_only
# target:
# entity_id: climate.master_bedroom_aircon
# - delay:
# hours: 0
# minutes: 0
# seconds: 5
# milliseconds: 0
# - parallel:
# - service: script.text_notify_tony
# data:
# title: AC Schedule Skipped
# message: Too cold outside, AC running fan only
# - service: script.text_notify_tina
# data:
# title: AC Schedule Skipped
# message: Too cold outside, AC running fan only
# - conditions:
# - condition: trigger
# id: master-bedroom-fan
# sequence:
# - if:
# - condition: numeric_state
# entity_id: sensor.current_forecast
# attribute: overnight_low
# above: '40'
# then:
# - service: switch.turn_on
# data: {}
# target:
# entity_id: switch.master_bedroom_fan_socket_1
# - parallel:
# - service: script.text_notify_tony
# data:
# title: Fan Schedule Activated
# message: '"Master bedroom fan has been activated, as scheduled based
# on tonight''s forecast low"'
# - service: script.text_notify_tina
# data:
# title: Fan Schedule Activated
# message: '"Master bedroom fan has been activated, as scheduled based
# on tonight''s forecast low"'
# - conditions:
# - condition: trigger
# id: master-bedroom-wakeup
# sequence:
# - service: switch.turn_off
# data: {}
# target:
# entity_id:
# - switch.master_bedroom_fan_socket_1
# - switch.master_bedroom_echo_dot_do_not_disturb_switch
# - if:
# - condition: numeric_state
# entity_id: sensor.todays_high_temp
# above: '80'
# then:
# - service: climate.turn_on
# data: {}
# target:
# entity_id: climate.master_bedroom_aircon
# - delay:
# hours: 0
# minutes: 0
# seconds: 10
# milliseconds: 0
# - service: climate.set_hvac_mode
# data:
# hvac_mode: cool
# - delay:
# hours: 0
# minutes: 0
# seconds: 5
# milliseconds: 0
# - service: climate.set_temperature
# data:
# temperature: 75
# target:
# entity_id: climate.master_bedroom_aircon
# else:
# - service: climate.set_hvac_mode
# data:
# hvac_mode: 'off'
# target:
# entity_id: climate.master_bedroom_aircon
# default:
# - service: script.text_notify_tony
# data:
# title: Master Bedroom Info
# message: '"Today''s wakeup time is set to {{ states(''input_datetime.master_bedroom_wakeup'')
# }} and tonight''s cooling is set to start at {{ states(''input_datetime.master_bedroom_cooling'')
# }}"'
# mode: queued
- id: '1654547257475'
alias: Battery Monitoring
description: Monitor all battery-powered things for low battery states
@ -581,3 +607,19 @@
data:
title: Low Batteries in House
message: 'Low battery alert for: {{sensors}}'
- id: '1655415573165'
alias: Nursery Cooling
description: For keeping the babys room at a safe temperature
trigger:
- platform: time
at: input_datetime.nursery_cooling
condition:
- condition: numeric_state
entity_id: sensor.tonights_low_temp
above: '50'
action:
- service: fan.turn_on
data: {}
target:
entity_id: fan.nursery_air_conditioner
mode: queued