mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
on off checking should be more exakt now
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@2977 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
fdac1c191c
commit
e162c5840c
@ -2486,7 +2486,8 @@ FW_devState($$)
|
|||||||
my $state = $defs{$d}{STATE};
|
my $state = $defs{$d}{STATE};
|
||||||
$state = "" if(!defined($state));
|
$state = "" if(!defined($state));
|
||||||
|
|
||||||
$hasOnOff = ($allSets =~ m/\bon\b/ && $allSets =~ m/\boff\b/);
|
$hasOnOff = ($allSets =~ m/(^| )on( |$)/ &&
|
||||||
|
$allSets =~ m/(^| )off( |$)/);
|
||||||
my $txt = $state;
|
my $txt = $state;
|
||||||
if(defined(AttrVal($d, "showtime", undef))) {
|
if(defined(AttrVal($d, "showtime", undef))) {
|
||||||
my $v = $defs{$d}{READINGS}{state}{TIME};
|
my $v = $defs{$d}{READINGS}{state}{TIME};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user