mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
73_ElectricityCalculator: bugfix: get/set list deleted for CounterDevice
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12149 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
aacfc03a22
commit
c58244bacc
@ -830,36 +830,16 @@ sub ElectricityCalculator_Notify($$)
|
|||||||
### Create Log entries for debugging
|
### Create Log entries for debugging
|
||||||
Log3 $ElectricityCalcName, 5, $ElectricityCalcName. " : ElectricityCalculator End_________________________________________________________________________________________________________________________________";
|
Log3 $ElectricityCalcName, 5, $ElectricityCalcName. " : ElectricityCalculator End_________________________________________________________________________________________________________________________________";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
### If readings exist, update list of available readings
|
||||||
if ($attr{$ElectricityCalcName}{ReadingDestination} eq "CalculatorDevice")
|
if($ElectricityCalcDev->{READINGS})
|
||||||
{
|
|
||||||
### If readings exist, update list of available readings
|
|
||||||
if($ElectricityCalcDev->{READINGS})
|
|
||||||
{
|
|
||||||
### Copy readings in list of available "gets" and "sets"
|
|
||||||
%ElectricityCalculator_gets = %{$ElectricityCalcDev->{READINGS}};
|
|
||||||
%ElectricityCalculator_sets = %{$ElectricityCalcDev->{READINGS}};
|
|
||||||
|
|
||||||
### Create Log entries for debugging
|
|
||||||
Log3 $ElectricityCalcName, 5, $ElectricityCalcName. " : ElectricityCalculator - notify x_sets list: " . join(" ", (keys %ElectricityCalculator_sets));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
elsif ($attr{$ElectricityCalcName}{ReadingDestination} eq "CounterDevice")
|
|
||||||
{
|
{
|
||||||
### If readings exist, update list of available readings
|
### Copy readings in list of available "gets" and "sets"
|
||||||
if($ElectricityCountDev->{READINGS})
|
%ElectricityCalculator_gets = %{$ElectricityCalcDev->{READINGS}};
|
||||||
{
|
%ElectricityCalculator_sets = %{$ElectricityCalcDev->{READINGS}};
|
||||||
### Copy readings in list of available "gets" and "sets"
|
|
||||||
%ElectricityCalculator_gets = %{$ElectricityCountDev->{READINGS}};
|
|
||||||
%ElectricityCalculator_sets = %{$ElectricityCountDev->{READINGS}};
|
|
||||||
|
|
||||||
### Create Log entries for debugging
|
### Create Log entries for debugging
|
||||||
Log3 $ElectricityCalcName, 5, $ElectricityCalcName. " : ElectricityCalculator - notify x_sets list: " . join(" ", (keys %ElectricityCalculator_sets));
|
Log3 $ElectricityCalcName, 5, $ElectricityCalcName. " : ElectricityCalculator - notify x_sets list: " . join(" ", (keys %ElectricityCalculator_sets));
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return undef;
|
return undef;
|
||||||
@ -922,6 +902,8 @@ sub ElectricityCalculator_Notify($$)
|
|||||||
<tr><td>
|
<tr><td>
|
||||||
<ul>
|
<ul>
|
||||||
The set - function sets individual values for example to correct values after power loss etc.<BR>
|
The set - function sets individual values for example to correct values after power loss etc.<BR>
|
||||||
|
The set - function works only for readings which have been stored in the CalculatorDevice.<BR>
|
||||||
|
The Readings being stored in the Counter - Device need to be changed individially with the <code>set</code> - command.<BR>
|
||||||
</ul>
|
</ul>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</table>
|
</table>
|
||||||
@ -933,7 +915,9 @@ sub ElectricityCalculator_Notify($$)
|
|||||||
<tr><td>
|
<tr><td>
|
||||||
<ul>
|
<ul>
|
||||||
The get - function just returns the individual value of the reading.<BR>
|
The get - function just returns the individual value of the reading.<BR>
|
||||||
</ul>
|
The get - function works only for readings which have been stored in the CalculatorDevice.<BR>
|
||||||
|
The Readings being stored in the Counter - Device need to be read individially with <code>get</code> - command.<BR>
|
||||||
|
</ul>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
@ -1464,6 +1448,8 @@ sub ElectricityCalculator_Notify($$)
|
|||||||
<tr><td>
|
<tr><td>
|
||||||
<ul>
|
<ul>
|
||||||
Die set - Funktion erlaubt individuelle Readings zu verändern um beispielsweise nach einem Stromausfall Werte zu korrigieren.<BR>
|
Die set - Funktion erlaubt individuelle Readings zu verändern um beispielsweise nach einem Stromausfall Werte zu korrigieren.<BR>
|
||||||
|
Die set - Funktion funktioniert nur für Readings welche im CalculatorDevice gespeichert wurden.<BR>
|
||||||
|
Die Readings welche im Counter - Device gespeichert wurden, müssen individuell mit <code>set</code> - Befehl gesetzt werden.<BR>
|
||||||
</ul>
|
</ul>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</table>
|
</table>
|
||||||
@ -1475,6 +1461,9 @@ sub ElectricityCalculator_Notify($$)
|
|||||||
<tr><td>
|
<tr><td>
|
||||||
<ul>
|
<ul>
|
||||||
Die get - Funktion liefert nur den Wert des jeweiligen Readings zurück.<BR>
|
Die get - Funktion liefert nur den Wert des jeweiligen Readings zurück.<BR>
|
||||||
|
Die get - Funktion funktioniert nur für Readings welche im CalculatorDevice gespeichert wurden.<BR>
|
||||||
|
Die Readings welche im Counter - Device gespeichert wurden, müssen individuell mit <code>get</code> - Befehl ausgelesen werden.<BR>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user