README.md 1.14 KB
Newer Older
digitalLumberjack's avatar
digitalLumberjack committed
1 2
# ESP32 Camera Door Bell

digitalLumberjack's avatar
digitalLumberjack committed
3 4 5 6 7 8 9 10

Roadmap:
* Click on the button to send an alert to openHab
* A video stream that show the camera image
* Messages on the screen showing the current state of the application
* Detection sensor that automatically trigger the alert
* Automatic door open with a button in openHab

digitalLumberjack's avatar
digitalLumberjack committed
11 12
## Flows
###Configuration flow:
digitalLumberjack's avatar
digitalLumberjack committed
13

digitalLumberjack's avatar
digitalLumberjack committed
14 15 16 17 18 19 20 21 22 23 24
```mermaid
graph TD
    wifi[Configuring Wifi]
    mqtt[Configuring MQTT]
    waitButton[Waiting for ring]
    InitalState --> wifi
    wifi --> mqtt
    mqtt --> waitButton
 ```
 
 Ring flow:
digitalLumberjack's avatar
digitalLumberjack committed
25

digitalLumberjack's avatar
digitalLumberjack committed
26 27 28 29 30 31 32 33 34 35 36 37 38
```mermaid
graph TD
    waitButton[Waiting for ring]
    push[Push MQTT Ring Message]
    wait[Wait MQTT Answer Message]
    answered[Answered]
    noanswer[No answser received for 10 seconds]
    waitButton --> push
    push --> wait
    wait --> answered
    wait --> noanswer
    noanswer --> waitButton
```
digitalLumberjack's avatar
digitalLumberjack committed
39

digitalLumberjack's avatar
digitalLumberjack committed
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
 Camera flow:

```mermaid
graph TD
    stream[Stream video]
    wait[Wait MQTT Camera Message]
    wait --> stream
```

 Open Door flow:

```mermaid
graph TD
    open[Open Door]
    wait[Wait MQTT Open Message]
    wait --> open
```
digitalLumberjack's avatar
digitalLumberjack committed
57 58 59 60

Credits:
* openHab: https://www.openhab.org/
* https://github.com/lewisxhe/esp32-camera-series