2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 19:32:42 +00:00

CUL_HM: powerOn detection rework

git-svn-id: https://svn.fhem.de/fhem/trunk@9171 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2015-08-30 15:08:17 +00:00
parent a4e09a72b4
commit 610eb599cc

View File

@ -2314,7 +2314,7 @@ sub CUL_HM_Parse($$) {#########################################################
push @evtEt,[$mh{devH},1,"color:$value"];
push @evtEt,[$mh{devH},1,"state:$value"];
if (!$mh{cHash}{helper}{role}{dev}){
my $actColor = $colTbl{$msgState};
my $actColor = $colTbl{sprintf("%02b",hex($msgState))};
$actColor = "unknown" if(!$actColor);
push @evtEt,[$mh{cHash},1,"color:$actColor"];
push @evtEt,[$mh{cHash},1,"state:$actColor"];