mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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:
parent
2ac766df2f
commit
f4b1178488
@ -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
|
Loading…
x
Reference in New Issue
Block a user