mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 01:06:04 +00:00
CUL_HM: uprate tariff
git-svn-id: https://svn.fhem.de/fhem/trunk@11588 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7ac22b7e7e
commit
86435ecdfc
@ -170,6 +170,7 @@ sub HMLAN_Notify(@) {##########################################################
|
||||
HMLAN_Attr("set",$hash->{NAME},"logIDs",$aVal) if($aVal);
|
||||
delete $hash->{helper}{attrPend};
|
||||
}
|
||||
HMLAN_writeAesKey($hash->{NAME});
|
||||
}
|
||||
elsif ($dev->{NAME} eq $hash->{NAME}){
|
||||
foreach (grep (m/CONNECTED$/,@{$dev->{CHANGED}})) { # connect/disconnect
|
||||
|
@ -2174,10 +2174,8 @@ sub CUL_HM_Parse($$) {#########################################################
|
||||
$mh{shash} = $modules{CUL_HM}{defptr}{$chId}
|
||||
if($modules{CUL_HM}{defptr}{$chId});
|
||||
|
||||
push @evtEt,[$mh{shash},1,"energyTariff:" .($eUnit >> 4) ];
|
||||
push @evtEt,[$mh{shash},1,"energyUnit:" .($eUnit & 0xfe)];
|
||||
push @evtEt,[$mh{shash},1,"powerTariff:" .($pUnit >> 4 )];
|
||||
push @evtEt,[$mh{shash},1,"powerSign:" .(($pUnit >> 4) & 0xfe)];
|
||||
push @evtEt,[$mh{shash},1,"energyTariff:" .(( $eUnit & 0xfe)?(-1*($eUnit >> 4)):($eUnit >> 4))];
|
||||
push @evtEt,[$mh{shash},1,"powerTariff:" .((($pUnit >> 4) & 0xfe)?(-1*($pUnit >> 4)):($pUnit >> 4))];
|
||||
push @evtEt,[$mh{shash},1,"powerUnit:" .(($pUnit ) & 0xfe)];
|
||||
push @evtEt,[$mh{shash},1,"powerIEC:" .($pIEC) ];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user