mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
fhem.pl: allow setreading from userReadings (Forum #110375)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@21720 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c38bd9dda3
commit
9c8df8eb85
7
fhem.pl
7
fhem.pl
@ -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