2021-02-14 12:08:37 +00:00
|
|
|
# HCPBridge
|
2021-02-14 14:29:20 +00:00
|
|
|
emuliert ein Hörmann HAP 1 HCP auf dem ESP8622.<br/>
|
2021-02-14 17:15:21 +00:00
|
|
|
## Funktionen:
|
2021-02-14 14:29:20 +00:00
|
|
|
- Abrufen des aktuellen Status (Tor, Licht)
|
|
|
|
- Aulösen der Aktionen (Licht an/aus, Tor öffen, schließen, stoppen sowie Lüftungsstellung
|
|
|
|
- WebInterface
|
|
|
|
- WebService
|
2021-02-14 14:39:03 +00:00
|
|
|
- Schalten eines Relay mit der Beleuchtung
|
2021-02-14 12:33:02 +00:00
|
|
|
|
2021-02-14 17:15:21 +00:00
|
|
|
## WebInterface:
|
2021-02-14 12:55:20 +00:00
|
|
|
![alt text](https://github.com/hkiam/HCPBridge/raw/master/Images/webinterface.PNG)
|
2021-02-14 12:33:02 +00:00
|
|
|
|
2021-02-14 17:15:21 +00:00
|
|
|
## WebService:
|
2021-02-14 17:17:43 +00:00
|
|
|
### Aktion ausführen
|
2021-02-14 17:15:21 +00:00
|
|
|
http://<deviceip>/command?action=<id>
|
2021-02-14 14:29:20 +00:00
|
|
|
| Action | Beschreibung |
|
|
|
|
| --- | --- |
|
|
|
|
| 0 | schließe Tor |
|
|
|
|
| 1 | öffne Tor |
|
|
|
|
| 2 | stoppe Tor |
|
|
|
|
| 3 | Lüftungsstellung |
|
|
|
|
| 4 | 1/2 öffnen |
|
|
|
|
| 5 | Lampe an/an |
|
|
|
|
|
2021-02-14 17:17:43 +00:00
|
|
|
|
|
|
|
### Status abfragen:
|
2021-02-14 17:15:21 +00:00
|
|
|
http://<deviceip>/status
|
2021-02-14 17:17:43 +00:00
|
|
|
|
2021-02-14 17:15:21 +00:00
|
|
|
Response:
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"valid" : true,
|
|
|
|
"doorstate" : 1,
|
|
|
|
"doorposition" : 0,
|
|
|
|
"doortarget" : 0,
|
|
|
|
"lamp" : true,
|
|
|
|
"debug" : 0,
|
|
|
|
"lastresponse" : 0
|
|
|
|
}
|
|
|
|
```
|
2021-02-14 14:29:20 +00:00
|
|
|
|
2021-02-14 17:15:21 +00:00
|
|
|
## Pinout RS485 (Plug):
|
2021-02-14 13:46:07 +00:00
|
|
|
![alt text](https://github.com/hkiam/HCPBridge/raw/master/Images/plug-min.png)
|
|
|
|
1. GND (Blue)
|
|
|
|
2. GND (Yellow)
|
|
|
|
3. B- (Green)
|
|
|
|
4. A+ (Red)
|
|
|
|
5. +25V (Black)
|
2021-02-14 13:46:35 +00:00
|
|
|
6. +25V (White)
|
2021-02-14 13:46:07 +00:00
|
|
|
|
2021-02-14 17:15:21 +00:00
|
|
|
## RS485 Adapter:
|
2021-02-14 17:17:43 +00:00
|
|
|
![alt text](https://github.com/hkiam/HCPBridge/raw/master/Images/rs485board-min.png)
|
2021-02-14 13:46:07 +00:00
|
|
|
Zwischen A+ (Red) und B- (Green) ist ein 120 Ohm Widerstand zum terminieren des BUS!
|
2021-02-14 17:17:43 +00:00
|
|
|
|