36_PrecipitationSensor.pm: added resetPreciAmount (by chunter1)

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

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");
}
@ -536,6 +539,10 @@ sub PrecipitationSensor_Attr(@) {
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)
</li><br>