myhomeiot / DahuaVTO

Control Dahua VTO/VTH devices from Home Assistant
GNU General Public License v3.0
161 stars 19 forks source link

How to clear binary sensor "Call No Answered" #32

Closed Protoncek closed 4 months ago

Protoncek commented 4 months ago

Hello! I'm testing my Dahua VTO2211G-WP and it works, rings in HA... but i can't find a way to clear unanswered calls. When VTO rings and there's no answer binary sensor "Call No Answered" is set and remains set. How to clear it? Or, at least, how (if possible at all) imitate "answer call" in HA? My intention is to use VTO as a doorbell with camera, i won't talk to a visitor (i don't see an easy way to do it... or is it?), i only want to be notified when having a visitor, cancel (receive) call and go out.

Thanks!

myhomeiot commented 4 months ago

I don't know what means under binary sensor "Call No Answered" can you provide screenshots, etc. I know how to clear call records (including unanswered) at VTH and cancel VTO call, you can see specific command here, look for Clear VTH Call Records and Cancel VTO Call

Protoncek commented 4 months ago

Ahhhh... i messed things up.. sorry big time! Now i see that i have two custom dahua integrations installed: one is (old one) "dahua" (used for my Dahua cameras), other is newly installed - yours (dahua VTO). And this sensor is from other addon, which, as it seems discovered my VTO as "camera" with some extra functions, so i mixed things up. It shows camera stream and a few sensors, among them is "button pressed" - this one i can use for call trigger, and "call no answered". (see picture).

Your addon has option to clear VTH records, yes, but only VTH ones, while i'd need to clear VTO calls since i don't have VTH module. I guess i'll have to find other way to clear this unanswered call record. I do use "cancel VTO call" with success, but it doesn't clear unanswered flag, which is logical, for that i'd have to send "answer call", not "cancel".

image
myhomeiot commented 4 months ago

I don't know how this integration detects Call No Answered but you can use my integration for Button Pressed and Call No Answered functionality, you can see example here, state 6 it's Call not answered

Protoncek commented 4 months ago

Yeah, i tried your examples a bit, and i managed to get it to work, thanks. At the end i guess i'll decide to work only with one integration to make things easy. I think i might even disregard that sensor. Nonetheless, there are other ways to remember unanswered calls (with helpers). Many thanks for your help!

myhomeiot commented 4 months ago

Glad it helped you!