You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-3Lines changed: 30 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,11 +135,14 @@ Other users have been sharing configurations that work for them on our GitHub si
135
135
### Camera MQTT Parameters
136
136
137
137
-`motionTopic`: The MQTT topic to watch for motion alerts.
138
-
-`motionMessage`: The message to watch for to trigger motion alerts. Will use the name of the camera if blank.
138
+
-`motionMessage`: The message to watch for to trigger motion alerts. Will use the name of the camera if both `motionMessage` and `motionMessageRegExp` are blank.
139
+
-`motionMessageRegExp`: A RegExp string to match messages on the motion mqtt topic and trigger motion alerts. Ex: '".*"' will match any message.
139
140
-`motionResetTopic`: The MQTT topic to watch for motion resets.
140
-
-`motionResetMessage`: The message to watch for to trigger motion resets. Will use the name of the camera if blank.
141
+
-`motionResetMessage`: The message to watch for to trigger motion resets. Will use the name of the camera if both `motionResetMessage` and `motionResetMessageRegExp` are blank.
142
+
-`motionResetMessageRegExp`: A RegExp string to match messages on the motionReset mqtt topic and trigger motion alerts. Ex: '"/.*/"' will match any message.
141
143
-`doorbellTopic`: The MQTT topic to watch for doorbell alerts.
142
-
-`doorbellMessage`: The message to watch for to trigger doorbell alerts. Will use the name of the camera if blank.
144
+
-`doorbellMessage`: The message to watch for to trigger doorbell alerts. Will use the name of the camera if both `doorbellMessage` and `doorbellMessageRegExp` are blank.
145
+
-`doorbellMessageRegExp`: A RegExp string to match messages on the doorbell mqtt topic and trigger motion alerts. Ex: '".*"' will match any message.
143
146
144
147
#### Camera MQTT Example
145
148
@@ -165,6 +168,30 @@ Other users have been sharing configurations that work for them on our GitHub si
165
168
}
166
169
```
167
170
171
+
#### Camera MQTT Example with RegExp Message Matching
172
+
173
+
```json
174
+
{
175
+
"platform": "Camera-ffmpeg",
176
+
"cameras": [
177
+
{
178
+
"name": "Camera Name",
179
+
"videoConfig": {
180
+
"source": "-i rtsp://myfancy_rtsp_stream"
181
+
},
182
+
"mqtt": {
183
+
"motionTopic": "home/camera",
184
+
"motionMessageRegExp": "ON", // will match any message that contains "ON"
185
+
"motionResetTopic": "home/camera",
186
+
"motionResetMessageRegExp": "OFF", // will match any message that contains "OFF"
187
+
"doorbellTopic": "home/doobell",
188
+
"doorbellMessageRegExp": ".*"// will match all messages
189
+
}
190
+
}
191
+
]
192
+
}
193
+
```
194
+
168
195
### Automation Parameters
169
196
170
197
-`mqtt`: Defines the hostname or IP of the MQTT broker to connect to for MQTT-based automation. If not set, MQTT support is not started. See the project site for [more information on using MQTT](https://sunoo.github.io/homebridge-camera-ffmpeg/automation/mqtt.html).
0 commit comments