more small fixes and consolidating the driveway

This commit is contained in:
CeeWeasel
2025-07-20 16:39:50 -04:00
parent 0baf98f917
commit ca1082899b
25 changed files with 254 additions and 540 deletions
+34 -42
View File
@@ -1,102 +1,94 @@
alias: HVAC Fan On
id: automation_hvac_fan_on
trigger:
triggers:
# Has the fan been off for ten minutes?
- platform: state
- trigger: state
entity_id: switch.thermostat_fan_mode
to: 'off'
for: '00:10:00'
to: "off"
for: "00:10:00"
# Did the temp just switch to just right?
- platform: state
- trigger: state
entity_id: binary_sensor.temp_just_right
to: 'on'
to: "on"
# Did it just become cooler inside or outside?
- platform: state
- trigger: state
entity_id: binary_sensor.cooler_outside
from: 'off'
to: 'on'
from: "off"
to: "on"
# Did it just become warmer inside or outside?
- platform: state
- trigger: state
entity_id: binary_sensor.warmer_outside
from: 'off'
to: 'on'
from: "off"
to: "on"
# Is it starting to get too warm inside?
- platform: numeric_state
- trigger: numeric_state
entity_id: sensor.thermostat_temperature
above: 80
# Is it starting to get too cool inside?
- platform: numeric_state
- trigger: numeric_state
entity_id: sensor.thermostat_temperature
below: 60
condition:
- condition: state
entity_id: input_boolean.allow_fan
state: 'on'
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
entity_id: sensor.hvac_multisensor_return
above: 50
- condition: numeric_state
entity_id: sensor.hvac_temperature
entity_id: sensor.hvac_multisensor_supply
above: 50
# Is the fan currently off?
- condition: state
entity_id: switch.thermostat_fan_mode
state: 'off'
state: "off"
# Is the system currently idle?
- condition: state
entity_id: sensor.hvac_action
state: 'idle'
state: "idle"
# Is the home occupied?
- condition: state
entity_id: input_boolean.home_occupied
state: 'on'
state: "on"
# Is the outside temp just right?
- condition: state
entity_id: binary_sensor.temp_just_right
state: 'on'
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: 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'
- 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
entity_id: switch.thermostat_fan_mode
@@ -24,8 +24,7 @@ variables:
before_zones:
- from_street
after_zones:
- driveway_center
- driveway_east_side
- driveway
- parking_spot
input_zones:
- from_street
@@ -25,8 +25,7 @@ variables:
before_zones:
- from_street
after_zones:
- driveway_center
- driveway_east_side
- driveway
- parking_spot
input_zones:
- from_street
+45 -37
View File
@@ -1,48 +1,56 @@
alias: Furnace Room Lights
id: automation_furnace_room_lights
description: "Handles the lights in the furnace room"
mode: queued
trigger:
- platform: state
id: door_open
entity_id: binary_sensor.furnace_room_door, binary_sensor.furnace_room_door_contact
triggers:
- id: door_open
entity_id: >-
binary_sensor.hvac_multisensor_door,
binary_sensor.furnace_room_door_contact
from: "off"
to: "on"
- platform: state
id: door_closed
entity_id: binary_sensor.furnace_room_door, binary_sensor.furnace_room_door_contact
trigger: state
alias: >-
When one of the door sensors detect that the furnace room door has been
opened
- id: door_closed
entity_id: >-
binary_sensor.hvac_multisensor_door,
binary_sensor.furnace_room_door_contact
to: "off"
for: "00:10:00"
- platform: state
id: motion_off
trigger: state
alias: When the furnace room door has been closed for 10 minutes
- id: motion_off
entity_id: binary_sensor.furnace_room_motion_switch_home_security_motion_detection
to: "off"
for: "00:15:00"
action:
trigger: state
actions:
- choose:
# - conditions:
# - condition: trigger
# id: "door_open"
# - condition: state
# entity_id: light.furnace_room
# state: 'off'
# sequence:
# - service: light.turn_on
# target:
# entity_id: light.furnace_room
- conditions:
- condition: trigger
id: "door_closed"
- condition: state
entity_id: binary_sensor.furnace_room_motion_switch_home_security_motion_detection
state: "off"
- condition: state
entity_id: light.furnace_room
state: 'on'
sequence:
- service: light.turn_off
target:
entity_id: light.furnace_room
- conditions:
- condition: trigger
id: door_open
- condition: state
entity_id: light.furnace_room
state: "off"
sequence:
- target:
entity_id: light.furnace_room
action: light.turn_on
data: {}
- conditions:
- condition: trigger
id: door_closed
- condition: state
entity_id: >-
binary_sensor.furnace_room_motion_switch_home_security_motion_detection
state: "off"
- condition: state
entity_id: light.furnace_room
state: "on"
sequence:
- target:
entity_id: light.furnace_room
action: light.turn_off
data: {}
+4 -4
View File
@@ -2,21 +2,21 @@ alias: Mancave Lights
id: automation_mancave_lights
mode: queued
trigger:
- platform: state
triggers:
- trigger: state
id: door_open
entity_id: binary_sensor.mancave_door_contact
from: "off"
to: "on"
- platform: state
- trigger: state
id: door_closed
entity_id: binary_sensor.mancave_door_contact
from: "on"
to: "off"
for: "00:10:00"
- platform: state
- trigger: state
id: motion_off
entity_id: binary_sensor.mancave_motion_switch_home_security_motion_detection
to: "off"