Go to file
Maik Hofmann 8c2b3500d6 cleanup repository 2021-03-06 18:04:49 +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 New Combo ESP8266 + Arduino Pro Mini via i2c 2021-03-06 14:21:33 +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 Merge branch 'master' of https://github.com/hkiam/HCPBridge 2021-02-24 19:08:45 +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

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