2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 13:24:56 +00:00

30_DUOFERN: fix statusgroup 26 state

git-svn-id: https://svn.fhem.de/fhem/trunk@16313 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Telekatz 2018-03-02 18:48:54 +00:00
parent 0ca61094d3
commit e180fc8ab7

View File

@ -1138,7 +1138,7 @@ DUOFERN_Parse($$)
$state = "light curtain" if (defined($statusValue{"lightCurtain"}) && $statusValue{"lightCurtain"} eq "1");
$state = "obstacle" if (defined($statusValue{"obstacle"}) && $statusValue{"obstacle"} eq "1");
$state = "block" if (defined($statusValue{"block"}) && $statusValue{"block"} eq "1");
readingsBulkUpdate($hashA, "state", $state, 1);
readingsBulkUpdate($hashA, "state", $state, 1) if ($state ne "x");
readingsEndUpdate($hashA, 1); # Notify is done by Dispatch
DoTrigger($hashA->{NAME}, undef);