Automated Window Controller - a standalone ESP32 based ventilation solution

Hi all,
I know there are many dew-point ventilation projects out there, but I had another and more sophisticated approach:

  • motorize a window for passive ventilation
  • standalone operation, with decisions on device. This makes the operation more robust, as it is working also with interrupted WiFi
  • various modes, so we can change the logic, without rewriting the code
  • on-device monitoring with a display
  • on-device parameter update, if required

So, I built this ESPHome Project:
Flo-R1der/ESPHome_window-opener: Automated ESPHome window controller for temperature and humidity management with absolute humidity comparison, scheduled/manual modes, and standalone local control via OLED and rotary encoder.

:sparkles: Features

  • :window: Automatically controls a motorized window based on indoor and outdoor climate conditions.
  • Uses separate indoor :house: and outdoor :deciduous_tree: sensors for temperature :thermometer: and humidity :droplet:.
  • :abacus: Calculates absolute humidity to determine if ventilation actually helps to improve the air condition.
  • :clipboard: Supported operating modes: Humidity, Temperature, Scheduled, and Manual.
  • :pager: Displays the current measurement values, operating mode and evaluation directly on the display.
  • :gear: Configurable target values and hysteresis for both temperature and humidity.
  • :locked: Local control and configuration using a rotary encoder and OLED display.
  • :prohibited: Standalone operation and configuration, without any Wi-Fi connection supported.
  • :rainbow: Can be fully integrated into Home Assistant through ESPHome.

:play_button: Example Video

Video

:rocket: Results

I let it run for over a week now and it’s doing it’s job quite well:
Video
:yellow_circle: = inside values / :blue_circle: = outside values

:pushpin: Possible Improvements

  • Add physical position feedback or end switches to improve the accuracy and reliability of the window position.
  • Add a rain sensor to prevent the window from opening during rain.
  • Add a wind sensor or wind protection logic for storm conditions.
  • Add additional safety mechanisms for detecting unexpected motor behavior or mechanical obstruction (e.g. monitor the motor current).
  • Support multiple motorized windows with coordinated control.
  • Add support for an additional fan, if the indoor/outdoor deviation is high

I would really appreciate any feedback or improvements on the feedback.

Best Regards, Florian


:heart: Like My Work?

ko-fi
Part My Smart Home Stuff.

1 Like