From f8c291d1ecbfac92e5f910913d5aec145b0abf9f Mon Sep 17 00:00:00 2001 From: sailor-fhem <> Date: Wed, 5 Oct 2016 18:40:28 +0000 Subject: [PATCH] 73_ElectricityCalculator: feature: header and readingFnAttributes added git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12278 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/73_ElectricityCalculator.pm | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/FHEM/73_ElectricityCalculator.pm b/FHEM/73_ElectricityCalculator.pm index 3387bb1f0..63f484fed 100644 --- a/FHEM/73_ElectricityCalculator.pm +++ b/FHEM/73_ElectricityCalculator.pm @@ -61,6 +61,7 @@ sub ElectricityCalculator_Initialize($) $hash->{NotifyOrderPrefix} = "10-"; # Want to be called before the rest $hash->{AttrList} = "disable:0,1 " . + "header " . "ElectricityCounterOffset " . "ElectricityKwhPerCounts " . "BasicPricePerAnnum " . @@ -69,7 +70,8 @@ sub ElectricityCalculator_Initialize($) "MonthOfAnnualReading " . "ReadingDestination:CalculatorDevice,CounterDevice " . "SiPrefixPower:W,kW,MW,GW " . - "Currency:€,£,$ "; + "Currency:€,£,$ " . + $readingFnAttributes; } ####END####### Initialize module ###############################################################################END##### @@ -1054,6 +1056,19 @@ sub ElectricityCalculator_Notify($$) + +
@@ -1601,6 +1616,19 @@ sub ElectricityCalculator_Notify($$)
+ +