2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00

49_SSCam: contrib 9.1.0

git-svn-id: https://svn.fhem.de/fhem/trunk@20702 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2019-12-09 23:18:38 +00:00
parent a7089fba83
commit 7af86e7bb0

View File

@ -8905,6 +8905,7 @@ sub SSCam_sendTelegram ($$) {
readingsBeginUpdate($hash);
readingsBulkUpdate($hash,"sendTeleState",$ret);
readingsEndUpdate($hash, 1);
$data{SSCam}{$name}{SENDCOUNT}{$tac} -= 1;
return $ret;
}
@ -8915,6 +8916,7 @@ sub SSCam_sendTelegram ($$) {
$ret = "No TelegramBot device \"$telebot\" available";
readingsSingleUpdate($hash, "sendTeleState", $ret, 1);
Log3($name, 2, "$name - $ret");
$data{SSCam}{$name}{SENDCOUNT}{$tac} -= 1;
return;
}
@ -8924,6 +8926,7 @@ sub SSCam_sendTelegram ($$) {
$ret = "No peers of TelegramBot device \"$telebot\" found";
readingsSingleUpdate($hash, "sendTeleState", $ret, 1);
Log3($name, 2, "$name - $ret");
$data{SSCam}{$name}{SENDCOUNT}{$tac} -= 1;
return;
}
}
@ -8932,6 +8935,7 @@ sub SSCam_sendTelegram ($$) {
$ret = "no video or image data existing for send process by TelegramBot \"$telebot\" ";
readingsSingleUpdate($hash, "sendTeleState", $ret, 1);
Log3($name, 2, "$name - $ret");
$data{SSCam}{$name}{SENDCOUNT}{$tac} -= 1;
return;
}