mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 04:36:36 +00:00
49_SSCam: fix state turns to "off" even though cam is disabled
git-svn-id: https://svn.fhem.de/fhem/trunk@16913 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bcfa814f49
commit
247496eca2
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- bugfix: 49_SSCam: fix state turns to "off" even though cam is disabled
|
||||
- bugfix: 38_netatmo: fixed camera recording and notification settings
|
||||
- feature: 36_WMBUS: support for WMBUS type C and Kamstrup Multical 21
|
||||
encoding.
|
||||
|
@ -27,6 +27,7 @@
|
||||
#########################################################################################################################
|
||||
# Versions History:
|
||||
#
|
||||
# 5.2.7 26.06.2018 fix state turns to "off" even though cam is disabled
|
||||
# 5.2.6 20.06.2018 running stream as human readable entry for SSCamSTRM-Device, goAbsPTZ fix set-entry für non-PTZ
|
||||
# 5.2.5 18.06.2018 trigger lastsnap_fw to SSCamSTRM-Device only if snap was done by it.
|
||||
# 5.2.4 17.06.2018 SSCam_composegallery added and write warning if old composegallery-weblink device is used
|
||||
@ -239,7 +240,7 @@ use Time::HiRes;
|
||||
use HttpUtils;
|
||||
# no if $] >= 5.017011, warnings => 'experimental';
|
||||
|
||||
my $SSCamVersion = "5.2.6";
|
||||
my $SSCamVersion = "5.2.7";
|
||||
|
||||
# Aufbau Errorcode-Hashes (siehe Surveillance Station Web API)
|
||||
my %SSCam_errauthlist = (
|
||||
@ -5458,8 +5459,8 @@ sub SSCam_refresh($$$$) {
|
||||
{ map { FW_directNotify("#FHEMWEB:$_", "location.reload('true')", "") } devspec2array("TYPE=FHEMWEB") }
|
||||
}
|
||||
|
||||
# Aufnahmestatus in state abbilden & SSCam-Device state setzen (mit/ohne Event)
|
||||
my $st = (ReadingsVal($name, "Record", "") eq "Start")?"on":"off";
|
||||
# Aufnahmestatus/Disabledstatus in state abbilden & SSCam-Device state setzen (mit/ohne Event)
|
||||
my $st = (ReadingsVal($name, "Availability", "enabled") eq "disabled")?"disabled":(ReadingsVal($name, "Record", "") eq "Start")?"on":"off";
|
||||
if($lpoll_scm) {
|
||||
readingsSingleUpdate($hash,"state", $st, 1);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user