36_PrecipitationSensor.pm: added resetPreciAmount (by chunter1)

git-svn-id: https://svn.fhem.de/fhem/trunk@15380 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
HCS 2017-11-03 03:43:40 +00:00
parent 4d89bc91df
commit 149a1c53c8

View File

@ -200,7 +200,7 @@ sub PrecipitationSensor_Set($@) {
my $cmd = shift @a;
my $arg = join(" ", @a);
my $list = "raw connect flash parse reboot treshold calibrate savesettings";
my $list = "raw connect flash parse reboot treshold calibrate resetPreciAmount savesettings";
return $list if( $cmd eq '?' || $cmd eq '');
if ($cmd eq "raw") {
@ -232,6 +232,9 @@ sub PrecipitationSensor_Set($@) {
elsif ($cmd eq "calibrate") {
PrecipitationSensor_SimpleWrite($hash, "calibrate");
}
elsif ($cmd eq "resetPreciAmount") {
PrecipitationSensor_SimpleWrite($hash, "resetPreciAmount");
}
elsif ($cmd eq "savesettings") {
PrecipitationSensor_SimpleWrite($hash, "savesettings");
}
@ -535,6 +538,10 @@ sub PrecipitationSensor_Attr(@) {
3.) Wait for at least 120 seconds before calling the "calibrate" command</br>
4.) The calibrated threshold levels "GroupMagThresh" will be updated after the next Publish interval cycle
</li><br>
<li>restPreciAmount<br>
Resets the amount of precipitation. Works only if we are connected (state is opened or initialized)
</li><br>
<li>savesettings<br>
Saves the changes to flash. Works only if we are connected (state is opened or initialized)
@ -575,4 +582,4 @@ sub PrecipitationSensor_Attr(@) {
</ul>
=end html
=cut
=cut