mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
correction X10 KR18
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3908 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7dd9ea9c0e
commit
b151a30068
@ -426,15 +426,14 @@ sub TRX_SECURITY_parse_X10Sec($$) {
|
||||
|
||||
my $current = "";
|
||||
|
||||
Log3 $name, 5, "TRX_SECURITY_parse_X10Sec() $name devn=$device_name first=$firstdevice subtype=$subtype command=$command, delay=$delay, batt=$battery cmd=$hexdata";
|
||||
|
||||
|
||||
my $n = 0;
|
||||
my $tm = TimeNow();
|
||||
my $val = "";
|
||||
|
||||
my $device_type = uc($def->{TRX_SECURITY_type});
|
||||
|
||||
Log3 $name, 5, "TRX_SECURITY_parse_X10Sec() $name devn=$device_name first=$firstdevice subtype=$subtype device_type=$device_type command=$command, delay=$delay, batt=$battery cmd=$hexdata";
|
||||
|
||||
my $sensor = "";
|
||||
|
||||
if ($device_type eq "SD90") {
|
||||
@ -479,7 +478,7 @@ sub TRX_SECURITY_parse_X10Sec($$) {
|
||||
|
||||
$current = "Security-Panic" if ($command eq "alert");
|
||||
|
||||
my @cmd_split = split(/-/, $command);
|
||||
my @cmd_split = split(/-/, $current);
|
||||
$sensor = $cmd_split[0];
|
||||
$current = $cmd_split[1];
|
||||
readingsBulkUpdate($def, $sensor, $current);
|
||||
|
Loading…
x
Reference in New Issue
Block a user