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
+18-1Lines changed: 18 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -159,7 +159,8 @@ lock:
159
159
160
160
# Commands and Events
161
161
162
-
You can send any command using the service `dahua_vto.send_command` and receive reply as event.
162
+
You can send any command using the service `dahua_vto.send_command` or `dahua_vto.send_instance_command` and receive reply as event.
163
+
`dahua_vto.send_instance_command`sequential call to service.factory.instance, service.method with object returned by factory.instance and service.destroy, where service it's a first part of the `method` before `.`. Result of service.method returned as event.
163
164
I doesn't found documentation but you can grab some commands and their parameters from [Dahua-JSON-Debug-Console-v2.py](https://github.com/mcw0/Tools)
164
165
165
166
All device `client.notifyEventStream` messages you will receive as events, information about some of them you can find [here](https://github.com/elad-bar/DahuaVTO2MQTT/blob/master/MQTTEvents.MD).
description: "Tag, will be present in event data, example: 1 or {name: tag}"
41
+
example: "{name: tag}"
42
+
selector:
43
+
object:
30
44
<<: &timeout
31
45
timeout:
32
46
name: Timeout
@@ -38,35 +52,42 @@ open_door:
38
52
min: 1
39
53
max: 99
40
54
41
-
send_command:
42
-
name: Send command
43
-
description: Send the command
55
+
send_instance_command:
56
+
name: Send instance command
57
+
description: Send the command to the instance, sequential call to service.factory.instance, service.method with object returned by factory.instance, service.destroy
0 commit comments