initial push

This commit is contained in:
CeeWeasel
2024-04-14 14:08:56 -04:00
commit 53bf393d14
1111 changed files with 71730 additions and 0 deletions
+64
View File
@@ -0,0 +1,64 @@
alias: HVAC Fan Off
id: automation_hvac_fan_off
trigger:
# Has the fan been running for ten minutes?
- platform: state
entity_id: switch.thermostat_fan_mode
to: 'on'
for: '00:10:00'
# Did the system turn on?
- platform: state
entity_id: sensor.hvac_action
from: 'idle'
# Check the conditions every 5 minutes
- platform: time_pattern
minutes: '/5'
- platform: state
entity_id: input_boolean.allow_fan
to: 'off'
condition:
# Is the fan currently on?
- condition: state
entity_id: switch.thermostat_fan_mode
state: 'on'
- condition: or
conditions:
# Is it getting too warm outside?
- condition: and
conditions:
- condition: numeric_state
entity_id: sensor.thermostat_temperature
above: 68
- condition: state
entity_id: binary_sensor.warmer_outside
state: 'on'
# Is it getting too cool outside?
- condition: and
conditions:
- condition: numeric_state
entity_id: sensor.thermostat_temperature
below: 65
- condition: state
entity_id: binary_sensor.cooler_outside
state: 'on'
# Did the system turn on?
- condition: not
conditions:
- condition: state
entity_id: sensor.hvac_action
state: 'idle'
action:
- service: logbook.log
data_template:
name: HVAC Fan Off
entity_id: automation.hvac_fan_off
message: >
Turned off HVAC fan
- service: homeassistant.turn_off
entity_id: switch.thermostat_fan_mode
+102
View File
@@ -0,0 +1,102 @@
alias: HVAC Fan On
id: automation_hvac_fan_on
trigger:
# Has the fan been off for ten minutes?
- platform: state
entity_id: switch.thermostat_fan_mode
to: 'off'
for: '00:10:00'
# Did the temp just switch to just right?
- platform: state
entity_id: binary_sensor.temp_just_right
to: 'on'
# Did it just become cooler inside or outside?
- platform: state
entity_id: binary_sensor.cooler_outside
from: 'off'
to: 'on'
# Did it just become warmer inside or outside?
- platform: state
entity_id: binary_sensor.warmer_outside
from: 'off'
to: 'on'
# Is it starting to get too warm inside?
- platform: numeric_state
entity_id: sensor.thermostat_temperature
above: 80
# Is it starting to get too cool inside?
- platform: numeric_state
entity_id: sensor.thermostat_temperature
below: 60
condition:
- condition: state
entity_id: input_boolean.allow_fan
state: 'on'
# Are the internal sensors above 67?
# This is mainly to ensure those sensors are working
- condition: numeric_state
entity_id: sensor.return_temperature
above: 50
- condition: numeric_state
entity_id: sensor.hvac_temperature
above: 50
# Is the fan currently off?
- condition: state
entity_id: switch.thermostat_fan_mode
state: 'off'
# Is the system currently idle?
- condition: state
entity_id: sensor.hvac_action
state: 'idle'
# Is the home occupied?
- condition: state
entity_id: input_boolean.home_occupied
state: 'on'
# Is the outside temp just right?
- condition: state
entity_id: binary_sensor.temp_just_right
state: 'on'
# Is it getting too warm or too cold in the house?
- condition: or
conditions:
- condition: and
conditions:
- condition: numeric_state
entity_id: sensor.thermostat_temperature
above: 75
- condition: state
entity_id: binary_sensor.cooler_outside
state: 'on'
- condition: and
conditions:
- condition: numeric_state
entity_id: sensor.thermostat_temperature
below: 65
- condition: state
entity_id: binary_sensor.warmer_outside
state: 'on'
action:
- service: logbook.log
data_template:
name: HVAC Fan On
entity_id: automation.hvac_fan_on
message: >
Turned on HVAC fan
- service: homeassistant.turn_on
entity_id: switch.thermostat_fan_mode