switch/dimmer PowerOn message accepted for channel 01 too

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@1599 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2012-06-03 15:13:27 +00:00
parent 71821980b4
commit f3bd72bdbb

View File

@@ -589,7 +589,7 @@ CUL_HM_Parse($$)
$val = ($val == 100 ? "on" : ($val == 0 ? "off" : "$val %"));
my $msg = "unknown";
$msg = "deviceMsg" if($msgType =~ m/0./);
$msg = "powerOn" if($msgType =~ m/06/ && $chn eq "00");
$msg = "powerOn" if($msgType =~ m/06/ && ($chn eq "00" || $chn eq "01"));
push @event, "$msg:$val$target";
push @event, "state:$val";
}