elad-bar / DahuaVTO2MQTT

Listens to events from Dahua VTO unit and publishes them via MQTT Message
103 stars 39 forks source link

Door sensor for sliding gate, alarm if door is opened more than x minutes. #51

Open Buster14 opened 2 years ago

Buster14 commented 2 years ago

Hi, sometimes people in my house forget to close the sliding gate, and i'd like to sound alarm whenever gate is open more than x minutes. Is this possible? I've tested with my dahua VTO2202F-P-S2, paired with door sensor (NC) while it does send warning to my phone through dmss app, ("door contact" warning). It doesn't sound any alarm to my phone (only notification sound) and it's not looping Also i didn't buy their VTH, cause the thing is, i'm using my own windows based viewing station, and i hope i could also sound alarm from there so that people in my house could be warned if the gate is not closed..

elad-bar commented 2 years ago

Hi,

Since I don't have contact sensor attached to my unit, I cannot tell you how to use it, but I guess if there is an event, you just need to subscribe to it, My suggestion is to use an MQTT explorer app and subscribe to DahuaVTO/# (all topics under the main topic), Once the contact sensor is triggered, you should see the additional topic related to it, Please let me know if it worked for you

Thanks