From 0e7c06eda8c868cd2b21885727f3399bebc8e3c4 Mon Sep 17 00:00:00 2001 From: Sailor Date: Tue, 13 Apr 2021 18:25:22 +0000 Subject: [PATCH] 73_DoorBird: Bugfix - Event Video Routine git-svn-id: https://svn.fhem.de/fhem/trunk@24242 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/73_DoorBird.pm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/73_DoorBird.pm b/fhem/FHEM/73_DoorBird.pm index 3e0f86dc0..03c1f93b1 100644 --- a/fhem/FHEM/73_DoorBird.pm +++ b/fhem/FHEM/73_DoorBird.pm @@ -2965,11 +2965,19 @@ sub DoorBird_LastEvent_Image($$$) { } } - ### If the attribute VideoDurationDoorbell has been set and therefore an video shall be recorded - if ($hash->{helper}{VideoDurationDoorbell} > 0){ + ### If the attribute VideoDuration has been set and therefore an video shall be recorded + if (($event =~ m/doorbell/ ) && ($hash->{helper}{VideoDurationDoorbell} > 0)){ ### Call sub for Videorecording DoorBird_Video_Request($hash, $hash->{helper}{VideoDurationDoorbell}, $VideoEvent, $httpHeader); } + elsif (($event =~ m/motion/ ) && ($hash->{helper}{VideoDurationMotion} > 0)){ + ### Call sub for Videorecording + DoorBird_Video_Request($hash, $hash->{helper}{VideoDurationMotion}, $VideoEvent, $httpHeader); + } + elsif (($event =~ m/keypad/ ) && ($hash->{helper}{VideoDurationKeypad} > 0)){ + ### Call sub for Videorecording + DoorBird_Video_Request($hash, $hash->{helper}{VideoDurationKeypad}, $VideoEvent, $httpHeader); + } return; } ####END####### Define Subfunction for LAST EVENT IMAGE REQUEST #################################################END#####