@@ -49,19 +49,10 @@ help with adding support for new devices or message types that aren't supported
49
49
50
50
## Setup
51
51
52
- ### Docker configuration
52
+ ### Configuration
53
53
54
- The data folder contains the config, logs and a record of all push notifications (so new types of notifications can
55
- be discovered). Mount this directory to a local folder. Replace ` /path/to/local/data/folder `
56
- below with the location where you want to store this data.
57
-
58
- If you run your MQTT broker on the same host as this Docker image, it cannot simply connect to ` localhost ` from inside
59
- this Docker image. In that case, add a line to add the correct IP for the Docker network inside the image as
60
- ` dockerhost ` . You can then use ` mqtt://dockerhost:1883 ` as the MQTT url. Otherwise, you can remove that line from the
61
- example below.
62
-
63
- In the data directory, you will need to create a ` config.yml ` file with your credentials. It should contain the
64
- following contents:
54
+ In the data directory, you will need to create a ` config.yml ` file with your credentials. You can copy this from
55
+ ` config.example.yml ` . It should contain the following contents:
65
56
66
57
``` yaml
67
58
eufy :
71
62
url : " mqtt://dockerhost:1883"
72
63
username : " user"
73
64
password : " password"
65
+ keepalive : 60
66
+ home_assistant :
67
+ off_delay : 5
74
68
` ` `
75
69
70
+ Only the Eufy username and password and MQTT url are required. Also MQTT username and password when set at the broker.
71
+ The other options can be omitted, with the defaults shown above.
72
+
73
+ * MQTT keepalive: adjusts the keepalive interval for the MQTT connection. This is the maximum interval in seconds
74
+ between messages to/from the MQTT broker. Set this higher when you encounter disconnects.
75
+ * Home Assistant ` off_delay`: Sets the delay in seconds after which a motion/doorbell sensor is set back to "No motion"
76
+ after motion is detected.
77
+
78
+ # ## Data folder
79
+
80
+ The data folder contains the config, logs and a record of all push notifications (so new types of notifications can
81
+ be discovered). Mount this directory to a local folder. Replace `/path/to/local/data/folder` in the Docker setups
82
+ below with the location where you want to store this data.
83
+
84
+ # ## Connecting to MQTT
85
+
86
+ If you run your MQTT broker on the same host as this Docker image, it cannot simply connect to `localhost` from inside
87
+ this Docker image. In that case, add a line to add the correct IP for the Docker network inside the image as
88
+ ` dockerhost` . You can then use `mqtt://dockerhost:1883` as the MQTT url. Otherwise, you can remove that line from the
89
+ example below.
90
+
76
91
# ## Run via Docker
77
92
78
93
Run the container, with a volume mapping to the local data directory, for example :
0 commit comments