mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 08:11:44 +00:00
rain sensor correct toggle
git-svn-id: https://svn.fhem.de/fhem/trunk@3586 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
91b4dbeddb
commit
cd3abaf84b
@ -880,6 +880,7 @@ sub CUL_HM_Parse($$) {##############################
|
||||
$val = hex($val)/2;
|
||||
}
|
||||
push @event, "state:$val";
|
||||
push @event, "level:".($val eq "off"?"0 %":"100 %");
|
||||
|
||||
if ($mNo eq "00" && $chn eq "02" && $val eq "on"){
|
||||
$hHash->{helper}{pOn} = 1;
|
||||
@ -1905,7 +1906,6 @@ sub CUL_HM_Set($@) {
|
||||
my $act = join(" ", @a[1..$#a]);
|
||||
my $ret;
|
||||
return "no set value specified" if(@a < 2);
|
||||
|
||||
my $name = $hash->{NAME};
|
||||
my $devName = $hash->{device}?$hash->{device}:$name;
|
||||
my $st = AttrVal($devName, "subType", "");
|
||||
@ -4065,7 +4065,7 @@ sub CUL_HM_setAttrIfCh($$$$) {
|
||||
}
|
||||
sub CUL_HM_noDup(@) {#return list with no duplicates
|
||||
my %all;
|
||||
$all{$_}=0 for @_;
|
||||
$all{$_}=0 foreach (grep !/^$/,@_);
|
||||
delete $all{""}; #remove empties if present
|
||||
return (sort keys %all);
|
||||
}
|
||||
|
@ -383,7 +383,7 @@ my %culHmRegDefine = (
|
||||
|
||||
driveDown =>{a=> 11.0,s=>2.0,l=>1,min=>0 ,max=>6000.0 ,c=>'factor' ,f=>10 ,u=>'s' ,d=>1,t=>"drive time up"},
|
||||
driveUp =>{a=> 13.0,s=>2.0,l=>1,min=>0 ,max=>6000.0 ,c=>'factor' ,f=>10 ,u=>'s' ,d=>1,t=>"drive time up"},
|
||||
driveTurn =>{a=> 15.0,s=>1.0,l=>1,min=>0 ,max=>25.5 ,c=>'factor' ,f=>10 ,u=>'s' ,d=>1,t=>"Engine uncharge time, typically 0.5s. Do NOT set to 0 if operated with engine"},
|
||||
driveTurn =>{a=> 15.0,s=>1.0,l=>1,min=>0.5,max=>25.5 ,c=>'factor' ,f=>10 ,u=>'s' ,d=>1,t=>"engine uncharge - fhem min = 0.5s for protection. HM min= 0s (use regBulk if necessary)"},
|
||||
refRunCounter =>{a=> 16.0,s=>1.0,l=>1,min=>0 ,max=>255 ,c=>'' ,f=>'' ,u=>'' ,d=>0,t=>"reference run counter"},
|
||||
#remote mainly
|
||||
longPress =>{a=> 4.4,s=>0.4,l=>1,min=>0.3,max=>1.8 ,c=>'m10s3' ,f=>'' ,u=>'s' ,d=>0,t=>"time to detect key long press"},
|
||||
|
Loading…
x
Reference in New Issue
Block a user