From 5776f70f8da24346bd1a91079bae5d1acc97df66 Mon Sep 17 00:00:00 2001 From: eisler Date: Fri, 8 Feb 2019 10:08:12 +0000 Subject: [PATCH] 12_HProtocolGateway: move sensorSystem attribute to HProtocolTank git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@18526 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- CHANGED | 1 + FHEM/12_HProtocolGateway.pm | 10 +++------- FHEM/12_HProtocolTank.pm | 4 ++++ 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGED b/CHANGED index a44aa800e..988080a17 100644 --- a/CHANGED +++ b/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - change: 12_HProtocolGateway: move sensorSystem attribute to HProtocolTank - feature: 98_Verkehrsinfo.pm: add attribut timeout - feature: 12_HProtocolGateway: added 843 protocol for PMS-IB P20 - feature: 12_HProtocolTank: added Product to calculate 15 degrees volume diff --git a/FHEM/12_HProtocolGateway.pm b/FHEM/12_HProtocolGateway.pm index e00674f93..53d0eb91e 100644 --- a/FHEM/12_HProtocolGateway.pm +++ b/FHEM/12_HProtocolGateway.pm @@ -50,8 +50,7 @@ sub HProtocolGateway_Initialize($) { "databitsLength:5,6,7,8 " . "stopBit:0,1 " . "pollIntervalMins " . - "path " . - "sensorSystem:Hectronic,Unitronics,PMS-IB"; + "path"; } sub HProtocolGateway_Define($$) { @@ -116,7 +115,7 @@ sub HProtocolGateway_GetUpdate($) { $command = "\$C"; } - my $sensorSystem = AttrVal($name, 'sensorSystem', ""); + my $sensorSystem = AttrVal($tankHash->{NAME}, 'sensorSystem', ""); if ( $sensorSystem eq "PMS-IB") { $command = "H"; } @@ -188,7 +187,7 @@ sub HProtocolGateway_ParseMessage($$) { my ($hash, $data, $tankHash) = @_; my $name = $hash->{NAME}; - my $sensorSystem = AttrVal($name, 'sensorSystem', ""); + my $sensorSystem = AttrVal($tankHash->{NAME}, 'sensorSystem', ""); my ($tanknumber,$error,$temperature,$tankdata,$water,$checksum,$version,$probe_offset); @@ -432,7 +431,6 @@ sub HProtocolGateway_Tank($$$) { Define