diff --git a/fhem/FHEM/36_PrecipitationSensor.pm b/fhem/FHEM/36_PrecipitationSensor.pm index c0f8b87db..2c94d9827 100644 --- a/fhem/FHEM/36_PrecipitationSensor.pm +++ b/fhem/FHEM/36_PrecipitationSensor.pm @@ -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
4.) The calibrated threshold levels "GroupMagThresh" will be updated after the next Publish interval cycle
+ +
  • restPreciAmount
    + Resets the amount of precipitation. Works only if we are connected (state is opened or initialized) +

  • savesettings
    Saves the changes to flash. Works only if we are connected (state is opened or initialized) @@ -575,4 +582,4 @@ sub PrecipitationSensor_Attr(@) { =end html -=cut +=cut \ No newline at end of file