Publish MQTT Message to perform action
TOPIC: [MQTT_BROKER_TOPIC_PREFIX]/Command/Open
TOPIC: [MQTT_BROKER_TOPIC_PREFIX]/Command/Mute
Topic [MQTT_BROKER_TOPIC_PREFIX]/MagneticLock/Status
represents the locking status,
Works only if the lock released by the DahuaVTO2MQTT
Since there is no real indication, it pulls from the configuration of the unit the interval allowed between unlocks (as defined in the Web Manager of the unit),
It will also protect duplicate attempts while the magnetic lock is in unlock interval
{
"door":"Door ID",
"isLocked":"true/false"
}
Topic will be always [MQTT_BROKER_TOPIC_PREFIX]/[EVENT NAME]/Event Message represent an event
{
"deviceType":"Device Model",
"serialNumber":"Device Serial Number"
}
{
"Action": "Start",
"Data": {
"CallID": "1",
"IsEncryptedStream": false,
"LocaleTime": "2020-03-02 20:11:13",
"LockNum": 2,
"SupportPaas": false,
"TCPPort": 37777,
"UTC": 1583172673
},
"deviceType":"Device Model",
"serialNumber":"Device Serial Number"
}
{
"Action": "Start",
"Data": {
"LocaleTime": "2020-03-02 20:44:28",
"UTC": 1583174668
},
"deviceType":"Device Model",
"serialNumber":"Device Serial Number"
}
Action: Represented whether event Start or Stop Data.Device: IP of the device connected / disconnected
{
"Action": "Pulse",
"Data": {
"LocaleTime": "2020-03-02 20:24:07",
"State": 8,
"UTC": 1583173447
},
"deviceType":"Device Model",
"serialNumber":"Device Serial Number"
}
{
"Action": "Pulse",
"Data": {
"BeforeModifyTime": "02-03-2020 21:41:40",
"LocaleTime": "2020-03-02 21:41:40",
"ModifiedTime": "02-03-2020 21:41:39",
"UTC": 1583178100
},
"deviceType":"Device Model",
"serialNumber":"Device Serial Number"
}
{
"Action": "Pulse",
"Data": {
"Address": "time.windows.com",
"Before": "02-03-2020 21:41:38",
"LocaleTime": "2020-03-02 21:41:40",
"UTC": 1583178100,
"result": true
},
"deviceType":"Device Model",
"serialNumber":"Device Serial Number"
}
Data.Status: Repesents whether the state changed to On or Off
Action: Represents whether event Start or Stop
Data.FingerPrintID: Finger print ID, if 0, check failed
{
"Action": "Pulse",
"Data": {
"Date": "02-03-2020 21:42:59",
"LocaleTime": "2020-03-02 21:42:59",
"Success": true,
"UTC": 1583178179
},
"deviceType":"Device Model",
"serialNumber":"Device Serial Number"
}
{
"Action": "Pulse",
"Data": {
"CardNo": "",
"CardType": null,
"LocaleTime": "2020-03-02 20:24:08",
"Method": 4, // 4=Remote/WebIf/SIPext | 6=FingerPrint
"Name": "OpenDoor", // Access control action name
"Password": "",
"ReaderID": "1",
"RecNo": 691,
"SnapURL": "",
"Status": 1,
"Type": "Entry",
"UTC": 1583173448,
"UserID": "" // By FingerprintManager / Room Number / SIPext
},
"deviceType":"Device Model",
"serialNumber":"Device Serial Number"
}
{
"Action": "Pulse",
"Data": {
"DeviceType": "Which device type",
"RemoteID": "UserID",
"RemoteIP": "IP of VTH / SIP device",
"ChannelStates": "Status"
},
"deviceType":"Device Model",
"serialNumber":"Device Serial Number"
}
{
"Action": "Pulse",
"Data": {
"CallID": "1",
"IsEncryptedStream": false,
"LocaleTime": "2020-03-02 20:11:13",
"LockNum": 2,
"SupportPaas": false,
"TCPPort": 37777,
"UTC": 1583172673
},
"deviceType":"Device Model",
"serialNumber":"Device Serial Number"
}
{
"Action": "?",
"Data": {
"FtpUrl": "FTP uploaded to"
},
"deviceType":"Device Model",
"serialNumber":"Device Serial Number"
}
{
"Action": "?",
"Data": {
"LocaleTime": "2020-03-02 20:24:07",
"Index": 1
},
"deviceType":"Device Model",
"serialNumber":"Device Serial Number"
}
{
"Action": "?",
"Data": {
"LocaleTime": "2020-03-02 20:24:07",
"Index": 1
},
"deviceType":"Device Model",
"serialNumber":"Device Serial Number"
}
{
"Action": "?",
"Data": {
"AlarmType": "ALARM TYPE",
"SenseMethod": "What triggered the alarm",
"DevSrcType": "Device triggered the alarm"
},
"deviceType":"Device Model",
"serialNumber":"Device Serial Number"
}
{
"Action": "Pulse",
"Data": {
"LocaleTime": "2020-03-02 20:24:07",
"UTC": 1583173447
},
"deviceType":"Device Model",
"serialNumber":"Device Serial Number"
}
{
"Action": "Pulse",
"Data": {
"LocaleTime": "2020-03-02 20:23:39",
"UTC": 1583173419
},
"deviceType":"Device Model",
"serialNumber":"Device Serial Number"
}
{
"Action": "Stop", //Represents whether event for Start or Stop
"Data": {
"LocaleTime": "2020-03-02 20:11:16",
"UTC": 1583172676
},
"deviceType":"Device Model",
"serialNumber":"Device Serial Number"
}
{
"Action": "Stop",
"Data": {
"Error": "SSIDNotValid",
"LocaleTime": "2020-03-02 19:20:07",
"Result": false,
"Type": "Timerconnect",
"UTC": 1583158807
},
"deviceType":"Device Model",
"serialNumber":"Device Serial Number"
}
{
"id": "MESSAGE ID",
"method":"client.notifyEventStream",
"params":{
"SID":513,
"eventList": [
{
"Action":"[EVENT ACTION]",
"Code":"[EVENT NAME]",
"Data":{
"LocaleTime":"YYYY-MM-DD HH:mm:SS",
"UTC": "EPOCH TIMESTAMP"
},
"Index": "EVENT ID IN MESSAGE",
"Param":[]
}
]
},
"session": "SESSION IDENTIFIER",
"deviceType":"Device Model",
"serialNumber":"Device Serial Number"
}