Motorized awning control, ESPHome, HA

This is a crude, but functional prototype. I was too cheap to buy the motorized awning, but after installing the manual version, decided to make it easier to open/close. At first, I made a long-shanked metal hook that could be connected to a cordless screwdriver to run it in/out. I eventually mounted a right-angle drill directly underneath, with some control electronics and a AC/DC power supply. The “brain” is a Wemos D1 Mini, with ESPHome customized firmware, integrated to Home Assistant for control and additional automation. I can share more details on the circuitry if there is interest, but it’s pretty straightforward.

Planned enhancements:

  • Repackaging into a proper enclosure
  • Hiding/better securing the wires for sensors and drill motor
  • Generally making it all pretty
  • Adding a wind sensor for local weather response, rather than regional prediction
  • Solar/battery instead of AC source

I am working on adding automations to do the following:

  1. Close the awning when the sun is below the effective angle (currently implemented). This is more practical than closing it at night.

  2. Close the awning when wind is detected (I can do this now via weather forecast for the region, but need a wind sensor to have this happen based on micro-local conditions).

  3. Close the awning when it rains (currently implemented, using regional weather forecast)

  4. Open the awning to a relative position based on angle of the sun (e.g. extend the awning further as it gets later in the afternoon). This requires an angle/extension sensor to be able to properly implement. This will only trigger this when someone is on the back deck.

Video: https://www.youtube.com/watch?v=Huf7AvCcUww

Github project: https://github.com/moellere/awningcontrol

1 Like

The mechanism is absolutely fantastic. Did it pass the WAF (or is that why you need to tidy it up?)

I wanted to implement a version to prove that it would function, but wasn’t patient enough to refine the packaging before the installed test. My wife is very happy with the automated control, but I’m not satisfied with the current install, and want to make it more robust/“production ready”.

Lesson for next time: just buy the motorized version, and automate via controller integration if needed.

Hahaha I want to do the same thing with my blinds. Quit trying to control them in the housing where it gets complicated, just make a smart twister.

I wonder if something like one of these would work.

1 Like

Unfortunately, no - not nearly enough torque to crank the awning back in.

I would be interested to know what sort of torque is available from the drill you are using. The fact that you are using a 12V/30A power supply did make me think the aliexpress motor wouldn’t be powerful enough :slight_smile:

It’s a Milwaukee 12V cordless angle drill. Nominally rated at 100 inch/lbs. I’m not getting anywhere near max capacity for the power supply, although right now I’m not using the current sensor on the speed controller. I estimate I’m pulling 10A max at stall load for the motor, but plan to test it soon

100 inch pounds is 115 kg cm.

The highest the table goes in the aliexpress page is 30 kg cm. (and that is at 6 rpm!)

I saw your original project and thought I might try it too. Although I might look into this motor instead. It’s an application- tested motor and a custom made bracket. I don’t have a Coolaroo shade but maybe this could work.