mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
powermeter powerOn detection
git-svn-id: https://svn.fhem.de/fhem/trunk@6449 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
272a6be5ec
commit
a2e5d0cbc9
@ -1776,7 +1776,7 @@ sub CUL_HM_Parse($$) {#########################################################
|
|||||||
push @evtEt,[$defs{$devH->{channel_05}},1,"state:$U" ] if ($devH->{channel_05});
|
push @evtEt,[$defs{$devH->{channel_05}},1,"state:$U" ] if ($devH->{channel_05});
|
||||||
push @evtEt,[$defs{$devH->{channel_06}},1,"state:$F" ] if ($devH->{channel_06});
|
push @evtEt,[$defs{$devH->{channel_06}},1,"state:$F" ] if ($devH->{channel_06});
|
||||||
|
|
||||||
if($eCnt == 0 && $mTp eq "5E" && hex($mNo) < 3 ){
|
if($eCnt == 0 && hex($mNo) < 3 ){
|
||||||
push @evtEt,[$devH,1,"powerOn:$tn"];
|
push @evtEt,[$devH,1,"powerOn:$tn"];
|
||||||
my $eo = ReadingsVal($shash->{NAME},"energy",0)+
|
my $eo = ReadingsVal($shash->{NAME},"energy",0)+
|
||||||
ReadingsVal($shash->{NAME},"energyOffset",0);
|
ReadingsVal($shash->{NAME},"energyOffset",0);
|
||||||
|
Loading…
Reference in New Issue
Block a user