This one? GitHub - Gifford47/HCPBridgeMqtt: Emulates Hörmann UAP1-HCP board using an ESP32 and a RS485 converter, and exposes garage door controls over web page and MQTT.
Or which one?
At least the above one is a lot better than my one and a lot cheaper also, i think.
No. That one you have linked is for the Series 4. I have Series 3 (SupraMatic P3). I ordered this one:
The only thing I want to do is to flash it so ESPHome instead of ESPeasy what is installed.
Hello threadstone83…have you ordered and flashed the Wlan Modul? I would like to buy the same to connected my Supramatic E2 to Home Assistant…
@anilini yes I ordered the modul, flashed it (with big help of the seller) and have it in use since then. But as I wrote, I have a SupraMatic P3 (Series 3). I don’t know if it works with the SupraMatic E2.
thx…I think, I will give it a try
Could you please send me your ESPHome Code? I think it would be very helpful… Thanks a lot
No problem. Here is the code. But I also have some hints:
- The functions are only rudimentarily implemented.
- The code is for an older version of ESPHome. At some point in the meantime there was an update, so some line of text needs to be added. Unfortunately I can’t tell you exactly what line.
esphome:
name: garagentor
friendly_name: Garagentor
esp8266:
board: esp12e
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "xxxxxxxxxx"
ota:
password: "xxxxxxxxxx"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: 192.xxx.xxx.xxx
gateway: 192.xxx.xxx.xxx
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Garagentor Fallback Hotspot"
password: "xxxxxxxxxx"
captive_portal:
binary_sensor:
- platform: gpio
name: "offen"
pin:
number: 1
inverted: true
- platform: gpio
name: "geschlossen"
pin:
number: 3
inverted: true
- platform: gpio
name: "Lichtstatus"
pin:
number: 2
inverted: true
switch:
- platform: gpio
pin: 12
id: garage_open
name: "öffnen"
on_turn_on:
- delay: 200ms
- switch.turn_off: garage_open
- platform: gpio
pin: 15
id: garage_close
name: "schließen"
on_turn_on:
- delay: 200ms
- switch.turn_off: garage_close
- platform: gpio
pin: 13
id: garage_partial
name: "Lüftungsstellung_Stop"
on_turn_on:
- delay: 200ms
- switch.turn_off: garage_partial
- platform: gpio
pin: 14
id: garage_light
name: "Licht"
on_turn_on:
- delay: 200ms
- switch.turn_off: garage_light
If anyone has any improvements to the code, please let me know.
thank you. ![]()
I haved added interlock group in my config, so that only one relay is open at a time.
I also added a template-cover so that home assistant sees this device as a “gate”.
here is the yaml (i have a different board, so dont be confused by the different pins)
# ==========================
# GATE
# ==========================
cover:
- name: "Hoftor"
platform: template
device_class: gate
lambda: |-
if (id(input_open_endstop).state) {
return COVER_OPEN;
}
if (id(input_closed_endstop).state) {
return COVER_CLOSED;
}
open_action:
- switch.turn_on: relay_3_open
close_action:
- switch.turn_on: relay_2_close
# stop_action:
# - switch.turn_on:
optimistic: false
assumed_state: true
# ==========================
# RELAYS (OUTPUTS)
# ==========================
switch:
- name: "partly open"
id: relay_1_partly_open
platform: gpio
pin:
number: 23
inverted: true
interlock: &interlock_group [relay_1_partly_open, relay_2_close, relay_3_open, relay_4_rsk]
on_turn_on:
- delay: 1s
- switch.turn_off: relay_1_partly_open
- name: "close"
id: relay_2_close
platform: gpio
pin:
number: 5
inverted: true
ignore_strapping_warning: true
interlock: *interlock_group
on_turn_on:
- delay: 1s
- switch.turn_off: relay_2_close
- name: "open"
id: relay_3_open
platform: gpio
pin:
number: 4
inverted: true
interlock: *interlock_group
on_turn_on:
- delay: 1s
- switch.turn_off: relay_3_open
- name: "RSK"
id: relay_4_rsk
platform: gpio
pin:
number: 13
inverted: true
interlock: *interlock_group