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

File diff suppressed because one or more lines are too long