Skip to content

julianpas/esphome-supramatic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Garage gate control for Supramatic E4 with UAP1-HCP

Since my garage door uses the SupraMatic E4 drive by Hoermann I wanted to not only have to use the remote or the Bluetooth app they provide to control the door and have it open automatically when I drive home. Therefore I ordered the extension board for that drive called UAP1-HCP which breaks out all controls of the door as pins and also provides the end-state information for the door. It would have been nice if it also provided a more precise position information but maybe if I manage to figure out the communication protocol used between the drive and the breakout board I will be able to get that too as the app can show it.

BOM

  1. 1 x ESP32 DevKit board
  2. 9 x 1kΩ resistors
  3. 6 x 2N3904 NPN transistors
  4. 1 x 24V DC to 5V DC USB converter
  5. Hoermann UAP1-HCP

Schematic

This is the schematic of the build: Schematic

The inputs of the breakout board are supposed to be driven low to be enabled so I implemented this with some 2N3904 trnaistors to avoid subjecting the ESP32 pins to the voltage that pulls them high which is likely higher than what the ESP32 will like.

The outputs are actually relays that switch between the NO and NC contacts so I connected the common pin to GND and the NO output to a pin of the ESP32 with the internal pull-up set. Note: I have not put the resistors to the input pins as I drew them on the schematic.

This is the ready board:

Board top

Board bottom

Board with ESP32

Configuration

This is project requered no custom code as all pins are trivially GPIO driven. The only logic I added is to configure all movement controls to be mutually exclusive.

Position control is very imprecise because the time to close is dominated by the warning time of the drive when it blinks its light but doesn't move.

BLE Status Updates

I was about to proudly present my project on the HomeAssistant forum when I found this thread which made me hide back in my hole with shame that while I was toying with the UAP1 board folks have reverse engineered the bus protocol that the door motor uses to talk to this board and get all the fine details and precise control one could wish for. I will likely use this threasure throve in the future too but in the mean time one particular post there caught my attention. It was the discovery that if Bluetooth is enabled on the motor it constantly broadcasts the door status. And since all I was really missing was the precise door position and it is actually present in this stream I have now a solution that at least for me does all I care about.

The updates then are also copied into the cover control. Thanks to some ideas from scobee81 I was able to also make the position control of the cover work with state from the BLE data. It likely overshoots by a few percent because of the lag but is still as precise as I need it.

About

Garage gate control for Supramatic E4 with UAP1-HCP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages