Go to file
Maik Hofmann be2ff488e4 cleanup repository 2021-03-06 18:25:03 +01:00
HCPBridgeCombo cleanup repository 2021-03-06 18:04:49 +01:00
HCPBridgeESP32 cleanup repository 2021-03-06 18:04:49 +01:00
HCPBridgeISR cleanup repository 2021-03-06 18:04:49 +01:00
Hardware simple script to send notification on your phone on open door and more 2021-02-14 13:23:55 +01:00
Images cleanup repository 2021-03-06 18:25:03 +01:00
Investigation simple script to send notification on your phone on open door and more 2021-02-14 13:23:55 +01:00
WebUI cleanup repository 2021-03-06 18:04:49 +01:00
tools cleanup repository 2021-03-06 18:04:49 +01:00
.gitignore simple script to send notification on your phone on open door and more 2021-02-14 13:23:55 +01:00
README.md Update README.md 2021-03-06 18:11:08 +01:00

README.md

HCPBridge

Emuliert ein Hörmann HAP 1 HCP auf dem ESP8622.

Kompatible Torantriebe (HCP2-Bus - Modbus):

  • SupraMatic E/P Serie 4
  • ProMatic Serie 4

Bitte beachten, das Projekt emuliert UAP 1 HCP und ist auch nur mit der Serie 4 kompatibel! Ältere Antriebe als Serie 4 haben eine andere Pinbelegung und ein komplett anderes Protokoll.

Funktionen:

  • Abrufen des aktuellen Status (Tor, Licht)
  • Auslösen der Aktionen (Licht an/aus, Tor öffen, schließen, stoppen sowie Lüftungsstellung
  • WebInterface
  • WebService
  • Schalten eines Relais mit der Beleuchtung

WebInterface:

alt text

WebService:

Aktion ausführen

http://[deviceip]/command?action=[id]

Action Beschreibung
0 schließe Tor
1 öffne Tor
2 stoppe Tor
3 Lüftungsstellung
4 1/2 öffnen
5 Lampe an/an

Status abfragen:

http://[deviceip]/status

Response (JSON):

{
 "valid" : true,
 "doorstate" : 1,
 "doorposition" : 0,
 "doortarget" : 0,
 "lamp" : true,
 "debug" : 0,
 "lastresponse" : 0
}

Pinout RS485 (Plug):

alt text

  1. GND (Blue)
  2. GND (Yellow)
  3. B- (Green)
  4. A+ (Red)
  5. +25V (Black)
  6. +25V (White)

RS485 Adapter:

alt text
Zwischen A+ (Red) und B- (Green) ist ein 120 Ohm Widerstand zum terminieren des BUS!

Schaltung

alt text ESP8266 + Arduino Combo (Bisher stabil, benötigt allerdings zwei MCU)

alt text ESP8266 ISR (instabil, WLAN Probleme können die ModBus-Verbindung beenden, dann wir ein Neuanlernen erforderlich)

Installation

alt text

  • Adapter am Bus anschließen (grüner Pfeil)
  • Busscan ausführen (blauer Pfeil auf off und wieder zurück auf off). Der Adapter bekommt erst dann Strom über die 25V Leitung und muss während des Busscans antworten, sonst wird der Strom wieder abgeschaltet. Im Falle eines Fehlers oder wenn der Adapter abgezogen werden soll, einfach die Busscan Prozedur (On/Off) wiederholen.

Changelog

24.02.2021: Neue Version via Interrupt und für ESP32 zur Vermeidung von Timing-Problemen