mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +00:00
changed: new readings desired-temp and measured-temp,
new set desired-temp, for command and reading compatibility with other heating control units git-svn-id: https://svn.fhem.de/fhem/trunk@3988 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cf04543563
commit
b750ca7e42
@ -119,15 +119,16 @@ PID_Set($@)
|
||||
my @d = split(' ', $pid->{DEF});
|
||||
$pid->{DEF} = "$d[0] $d[1] $a[2] $a[3] $a[4]";
|
||||
|
||||
} elsif ($arg eq "desired" ) {
|
||||
return "Set desired needs a numeric parameter"
|
||||
} elsif ($arg eq "desired" || $arg eq "desired-temp") {
|
||||
return "Set desired|desired-temp needs a numeric parameter"
|
||||
if(@a != 3 || $a[2] !~ m/^[\d\.]*$/);
|
||||
Log3 $pn, 3, "PID set $pn $arg $a[2]";
|
||||
PID_sv($pid, 'desired', $a[2]);
|
||||
PID_sv($pid, 'desired-temp', $a[2]);
|
||||
PID_setValue($pid);
|
||||
|
||||
} else {
|
||||
return "Unknown argument $a[1], choose one of factors desired"
|
||||
return "Unknown argument $a[1], choose one of factors desired desired-temp"
|
||||
|
||||
}
|
||||
return "";
|
||||
@ -204,6 +205,7 @@ PID_setValue($)
|
||||
}
|
||||
$inStr =~ m/$re/;
|
||||
my $in = $1;
|
||||
PID_sv($pid, 'measured-temp', $in);
|
||||
|
||||
my $desired = PID_gv($pid, 'desired');
|
||||
return if(!defined($desired));
|
||||
@ -286,7 +288,7 @@ PID_setValue($)
|
||||
<li>set <name> factors p i d<br>
|
||||
Set the p, i and d factors, as described above.
|
||||
</li>
|
||||
<li>set <name> desired <value><br>
|
||||
<li>set <name> desired|desired-temp <value><br>
|
||||
Set the desired value (e.g. temperature). Note: until this value is not
|
||||
set, no command is issued.
|
||||
</li>
|
||||
|
Loading…
x
Reference in New Issue
Block a user