Advanced Ventilation/AC Management Blueprint
Click here to import directly into Home Assistant:
Celcius
Fahrenheit
Overview
This Home Assistant blueprint provides intelligent control of fans and air conditioners based on indoor temperature, outdoor conditions, forecasted heatwaves, and window/door sensor status. The system automatically adjusts cooling devices to maintain optimal comfort while being energy-efficient and responsive to environmental conditions.
Key Features
Multi-Device Support
Controls various types of fans and AC units with graduated response levels
Weather Integration
Proactive cooling based on heatwave predictions from weather forecasts
Smart Energy Saving
Window/door awareness prevents energy waste when openings are detected
Intelligent Thresholds
Different cooling levels based on temperature with hysteresis control
Supported Devices
Fan Types (All Optional)
- On/Off Fan: Simple switch-controlled fans (exhaust fans, basic fans)
- Ceiling Fan: Variable speed control with percentage-based speeds (25%, 50%, 75%, 100%)
AC Types (All Optional)
- Portable AC 1 (Advanced): Full fan mode options (silent, low, medium, high, full, Auto)
- Portable AC 2 (Basic): Limited fan modes (auto, low, medium, high)
Configuration Parameters
Parameter | Default | Description |
---|---|---|
Fan Start Threshold | 24.0Β°C | Indoor temperature to start fans |
Fan Stop Threshold | 22.0Β°C | Indoor temperature to stop fans |
AC High Temperature | 26.0Β°C | Temperature for AC high cooling mode |
AC Heatwave Threshold | 22.0Β°C | AC activation temp during heatwave |
Max Outdoor Temp for Ventilation | 25.0Β°C | Maximum outdoor temp to allow ventilation |
Heatwave Forecast Threshold | 30.0Β°C | Forecasted temp triggering heatwave mode |
Decision Tree Logic
TRIGGER EVENT
βββ Indoor temperature change
βββ Outdoor temperature change
βββ Weather forecast update
βββ Window/door sensor state change
βΌ
INITIAL VALIDATION
βββ Check if automation entity is available
βββ Verify sensor states are not βunavailableβ or βunknownβ
βββ Continue if all checks pass
βΌ
VARIABLE CALCULATION
βββ current_room_temp = Indoor temperature sensor value
βββ current_outdoor_temp = Outdoor temperature sensor value (or default)
βββ is_heatwave = Check if forecasted temp β₯ heatwave threshold
βββ is_window_open = Window/door sensor state
βΌ
ON/OFF FAN CONTROL (if configured)
βββ IF current_room_temp β₯ fan_start_threshold (24Β°C)
β AND current_outdoor_temp β€ max_outdoor_temp (25Β°C)
β βββ ACTION: Turn ON fan
βββ IF current_room_temp < fan_stop_threshold (22Β°C)
β βββ ACTION: Turn OFF fan
βΌ
CEILING FAN CONTROL (if configured)
βββ IF current_room_temp > (ac_high_threshold + 2Β°C) [>28Β°C]
β βββ ACTION: Set speed to 100% (Maximum cooling)
βββ IF current_room_temp > ac_high_threshold [>26Β°C]
β βββ ACTION: Set speed to 75% (High cooling)
βββ IF current_room_temp > (ac_high_threshold - 2Β°C) [>24Β°C]
β βββ ACTION: Set speed to 50% (Medium cooling)
βββ IF current_room_temp > (ac_high_threshold - 4Β°C) [>22Β°C]
β βββ ACTION: Set speed to 25% (Low cooling)
βββ IF current_room_temp < fan_stop_threshold [<22Β°C]
β βββ ACTION: Turn OFF ceiling fan
βΌ
PORTABLE AC CONTROL (AC1 & AC2 - if configured)
β
βββ WINDOW/DOOR CHECK
β βββ IF is_window_open = TRUE AND turn_off_ac_on_window_open = TRUE
β β βββ ACTION: Turn OFF AC immediately
β β βββ REASON: Prevent energy waste with open window
β β
β βββ IF is_window_open = FALSE
β βββ PROCEED TO TEMPERATURE CONTROL
β
βββ TEMPERATURE-BASED AC CONTROL
β
βββ HEATWAVE MODE (Priority)
β βββ IF is_heatwave = TRUE AND current_room_temp heatwave_threshold (22Β°C)
β β βββ ACTION: Set HVAC mode = βcoolβ, Fan mode = βmediumβ
β β βββ REASON: Proactive cooling during forecasted heatwave
β
βββ EXTREME HEAT MODE
β βββ IF current_room_temp > (ac_high_threshold + 2Β°C) [>28Β°C]
β β βββ ACTION: Set HVAC mode = βcoolβ, Fan mode = βFullβ (AC1) / βhighβ (AC2)
β β βββ REASON: Maximum cooling power for extreme temperatures
β
βββ HIGH HEAT MODE
β βββ IF current_room_temp > ac_high_threshold [>26Β°C]
β β βββ ACTION: Set HVAC mode = βcoolβ, Fan mode = βhighβ
β β βββ REASON: Strong cooling for high temperatures
β
βββ MODERATE HEAT MODE
β βββ IF current_room_temp > (ac_high_threshold - 1Β°C) [>25Β°C]
β β βββ ACTION: Set HVAC mode = βcoolβ, Fan mode = βmediumβ
β β βββ REASON: Moderate cooling for warm temperatures
β
βββ MILD HEAT MODE
β βββ IF current_room_temp > (ac_high_threshold - 2Β°C) [>24Β°C]
β β βββ ACTION: Set HVAC mode = βcoolβ, Fan mode = βlowβ
β β βββ REASON: Gentle cooling for mildly warm temperatures
β
βββ FAN-ONLY MODE
β βββ IF current_room_temp β€ (ac_high_threshold - 3Β°C) [β€23Β°C]
β β AND current_room_temp > fan_stop_threshold [>22Β°C]
β β βββ ACTION: Set HVAC mode = βfan_onlyβ, Fan mode = βAutoβ
β β βββ REASON: Air circulation without cooling
β
βββ OFF MODE
βββ IF current_room_temp < fan_stop_threshold [<22Β°C]
βββ ACTION: Turn OFF AC
βββ REASON: Comfortable temperature reached
Example Scenarios
Scenario 1: Normal Day
Indoor: 25Β°C, Outdoor: 23Β°C, No heatwave
Result: Ceiling fan at 50%, AC in cool mode with medium fan
Scenario 2: Heatwave Predicted
Indoor: 23Β°C, Outdoor: 35Β°C forecast, Heatwave detected
Result: AC activates proactively in cool mode with medium fan
Scenario 3: Window Open
Indoor: 27Β°C, Window sensor: Open
Result: AC turns off immediately (if configured), fans continue
Scenario 4: Cool Evening
Indoor: 21Β°C, Outdoor: 18Β°C
Result: All devices turn off, comfortable temperature achieved
Setup Recommendations
Basic Setup (Minimal Configuration)
- Configure room temperature sensor
- Set fan start/stop thresholds based on comfort
- Add one cooling device (fan or AC)
Advanced Setup (Full Features)
- Configure all relevant devices
- Set up outdoor temperature sensor
- Configure weather forecast integration
- Add window/door sensors for energy efficiency
- Fine-tune all temperature thresholds
Configuration Tips:
β’ Fan thresholds: Start 1-2Β°C above your comfort temperature
β’ AC thresholds: Set 2-4Β°C above fan start threshold
β’ Heatwave threshold: Set 2-4Β°C below normal AC threshold
β’ Ensure stop thresholds are lower than start thresholds to prevent cycling
Troubleshooting
Common Issues
- Devices not responding: Verify entity IDs are correct and devices are available
- Rapid cycling: Ensure stop thresholds are lower than start thresholds
- AC not starting: Check window sensor status and outdoor temperature limits
- Weather integration not working: Verify weather entity provides forecast data
Testing Tips
- Use Home Assistantβs automation trace feature to debug logic
- Monitor entity states during temperature changes
- Test window sensor integration by manually opening/closing windows
Smart Features
Heatwave Detection
Uses weather forecast entity to predict high temperatures and proactively activates AC at lower indoor temperature (22Β°C vs 26Β°C) to maintain comfort before extreme heat arrives.
Window/Door Integration
Monitors window/door sensors to prevent energy waste with configurable behavior: immediate AC shutdown or prevent startup only.
Hysteresis Control
Different thresholds for starting (24Β°C) and stopping (22Β°C) devices prevents rapid on/off cycling and ensures stable operation.
Multi-Zone Logic
Considers both indoor and outdoor temperatures to prevent inefficient ventilation when outdoor air is too hot, optimizing energy usage based on conditions.
Compatibility
Supported Integrations
- Climate entities: Any Home Assistant climate integration
- Fan entities: Standard fan platforms with percentage control
- Weather entities: Most weather integrations with forecast data
- Binary sensors: Standard door/window sensors
Device Requirements
- Temperature sensors: Must report in Celsius with numeric values
- Climate devices: Must support hvac_mode and fan_mode services
- Fan devices: Must support percentage control or dimmer functionality
Ready to install? Click here:
Celcius
Fahrenheit
This blueprint ensures optimal comfort while maximizing energy efficiency through intelligent automation. Perfect for those who want a comprehensive climate control solution that adapts to both current conditions and weather predictions!