mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 14:13:18 +00:00
fhem.pl: allow setreading from userReadings (Forum #110375)
git-svn-id: https://svn.fhem.de/fhem/trunk@21720 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a893f260a1
commit
56041143c1
@ -2416,7 +2416,12 @@ CommandSetReading($$)
|
||||
my $b1 = $b[1];
|
||||
return "$sdev: bad reading name '$b1' (allowed chars: A-Za-z/\\d_\\.-)"
|
||||
if(!goodReadingName($b1));
|
||||
readingsSingleUpdate($defs{$sdev}, $b1, $b[2], 1);
|
||||
|
||||
if($hash->{".updateTime"}) { # Called from userReadings, #110375
|
||||
setReadingsVal($hash, $b1, $b[2], TimeNow());
|
||||
} else {
|
||||
readingsSingleUpdate($hash, $b1, $b[2], 1);
|
||||
}
|
||||
}
|
||||
return join("\n", @rets);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user