I actually used the same ESP32 that I was testing that with before, using other projects from Github. So what I did here was I changed the password for wifi and flashed ESP32. Seems like it had stored SSID somewhere, as it connected to my wifi without any further interaction.
I ran the BusScan and was able to find the accessories and can control the gate now (initially I had pins 16 and 17 reversed).
I am noticing though - when I look at device in HA (MQTT), resport is correct whether it is opened/closed. But whenever the door is closing or opening and I stop it in the middle for instance, the status shows UNKNOWN. As soon as I close/open it, it reports closing/opening–>closed/opened
I saw that. While it reports some values in HTTP (such as target and current position, based off which I could template it somehow), those are not published to MQTT.
Therefore I am trying to find a way now how to make controls better. If you use device that is auto-created in MQTT, it does not reflect proper state if door is half/opened. Therefore, if you open door, and stop it, you can’t open it fully since that “open” button is greyed out.
I created mqtt cover template, but so far I struggle with state reflection based on the door posisiton value.
edit:
So far, I managed to at least create MQTT cover. Slider is not working since set_position_cover publishes numeric value instead of payload. Despite being able to see state (numberic value), not sure it supports setting state to “50”
The pinout on the board is different from the one found in most repositories related to this topic.
The Temperature Sensor is not part of the setup because I didn’t need it - I have several temperature sensors in the garage and measuring the temperature inside the Supramatic 4 case was meaningless to me.
@fisch55 you need Hormann Supramatic 4 or Promatic 4 (4 series is needed). I mean - @Dr.Pat 's code is for that. I onlt have experience with this model. Do you have any of that?
Rest is just soldering those pieces together according to schematics and upload Dr.Pat’s code with adjusted MQTT details.
I am using for some statuses also device that gets autodiscovered, but due to (I believe) limitation about state/position reporting, when I open gate, and stop it before it opens fully, then this device does not let me close it, arrow down is greyed out. So I templated MQTT cover that does not have this “limitation” as it works based on position value (0-100), but this does not have state (opening, closing, unknown) and I can’t template it as target position is not being published in MQTT (only on web, for which you would need to poll regularly).
So for opening/closing status, I use autodiscovered device. But for operating the gate, I use templated MQTT cover (see above posts).
I am using device that
So - you already have HAP 1 module. This project here emulates it without need to actually have it.
Regarding the soldering and socket - it is really up to you how you put it together. I don’t have the board for instance, I directly lead those 6 wires from RJ12 to where it needs to go.