mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +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.
|
||||
if(@tv > 1) {
|
||||
$firstIdx=1;
|
||||
if($cmd eq "desired-temp") {
|
||||
$txt = ReadingsVal($d, "desired-temp", 20);
|
||||
my @array = qw/desired-temp desiredTemperature/;
|
||||
if(/$cmd/i ~~ @array) {
|
||||
$txt = ReadingsVal($d, $cmd, 20);
|
||||
$txt =~ s/ .*//; # Cut off Celsius
|
||||
$txt = sprintf("%2.1f", int(2*$txt)/2) if($txt =~ m/[0-9.-]/);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user