mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
86_Robonect.pm: reading winterschlaf was not decoded correctly - fixed
git-svn-id: https://svn.fhem.de/fhem/trunk@16714 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bc961d6ad8
commit
274124f815
@ -39,6 +39,7 @@
|
|||||||
# ABU 20171006 added "health" for test
|
# ABU 20171006 added "health" for test
|
||||||
# ABU 20171010 finished health for test, added chck for undef at each reading
|
# ABU 20171010 finished health for test, added chck for undef at each reading
|
||||||
# ABU 20180507 replaced "umwelt" with "climate" in readings-section (roughly line 740)
|
# ABU 20180507 replaced "umwelt" with "climate" in readings-section (roughly line 740)
|
||||||
|
# ABU 20180509 reading winterschlaf was not decoded correctly - fixed
|
||||||
|
|
||||||
package main;
|
package main;
|
||||||
|
|
||||||
@ -583,7 +584,9 @@ sub Robonect_GetUpdate($)
|
|||||||
Log3 ($name, 5, "enter update $name: $name");
|
Log3 ($name, 5, "enter update $name: $name");
|
||||||
|
|
||||||
#evaluate reading hybernate
|
#evaluate reading hybernate
|
||||||
my $hybernate = $hash->{READINGS}{$HYBERNATE}{VAL};
|
#my $hybernate = $hash->{READINGS}{$HYBERNATE}{VAL};
|
||||||
|
my $hybernate = ReadingsVal($name, $HYBERNATE, undef);
|
||||||
|
|
||||||
#supress sending, if hybernate is set
|
#supress sending, if hybernate is set
|
||||||
if (!defined ($hybernate) or ($hybernate =~ m/[off]|[0]/))
|
if (!defined ($hybernate) or ($hybernate =~ m/[off]|[0]/))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user