mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-13 17:26:34 +00:00
Willis' dewpoint / state / event-on-change-reading patch
git-svn-id: https://svn.fhem.de/fhem/trunk@2198 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0ddc3aacc0
commit
1bb95df34f
@ -2705,11 +2705,11 @@ sub
|
||||
setReadingsVal($$$$)
|
||||
{
|
||||
my ($hash,$rname,$val,$ts) = @_;
|
||||
$hash->{READINGS}{$rname}{VAL} = $val;
|
||||
$hash->{READINGS}{$rname}{TIME} = $ts;
|
||||
if($rname eq "state") {
|
||||
if($rname eq "state" && $hash->{READINGS}{$rname}{VAL} ne $val) {
|
||||
$hash->{STATE} = $val;
|
||||
}
|
||||
$hash->{READINGS}{$rname}{VAL} = $val;
|
||||
$hash->{READINGS}{$rname}{TIME} = $ts;
|
||||
}
|
||||
|
||||
sub
|
||||
|
Loading…
x
Reference in New Issue
Block a user