mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 23:09:26 +00:00
now accepts desired-temp and desiredTemperature
git-svn-id: https://svn.fhem.de/fhem/trunk@2177 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
701381d373
commit
11f80a8675
@ -517,8 +517,9 @@ FP_show(){
|
|||||||
# dropdown. eventMap/webCmd/etc handling must be cleaned up.
|
# dropdown. eventMap/webCmd/etc handling must be cleaned up.
|
||||||
if(@tv > 1) {
|
if(@tv > 1) {
|
||||||
$firstIdx=1;
|
$firstIdx=1;
|
||||||
if($cmd eq "desired-temp") {
|
my @array = qw/desired-temp desiredTemperature/;
|
||||||
$txt = ReadingsVal($d, "desired-temp", 20);
|
if(/$cmd/i ~~ @array) {
|
||||||
|
$txt = ReadingsVal($d, $cmd, 20);
|
||||||
$txt =~ s/ .*//; # Cut off Celsius
|
$txt =~ s/ .*//; # Cut off Celsius
|
||||||
$txt = sprintf("%2.1f", int(2*$txt)/2) if($txt =~ m/[0-9.-]/);
|
$txt = sprintf("%2.1f", int(2*$txt)/2) if($txt =~ m/[0-9.-]/);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user