mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
CUL_HM:fix events for dim L
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11413 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bebe76215d
commit
4b32c37a27
@ -1990,9 +1990,14 @@ sub CUL_HM_Parse($$) {#########################################################
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($mh{st} eq "dimmer"){
|
if ($mh{st} eq "dimmer"){
|
||||||
push @evtEt,[$mh{cHash},1,"overload:".(($err&0x02)?"on":"off")];
|
if ($mh{md} =~ m/HM-LC-Dim.L.*/){
|
||||||
push @evtEt,[$mh{cHash},1,"overheat:".(($err&0x04)?"on":"off")];
|
push @evtEt,[$mh{cHash},1,"loadFail:".(($err == 6)?"on":"off")];#note: err is times 2!
|
||||||
push @evtEt,[$mh{cHash},1,"reduced:" .(($err&0x08)?"on":"off")];
|
}
|
||||||
|
else{
|
||||||
|
push @evtEt,[$mh{cHash},1,"overload:".(($err&0x02)?"on":"off")];
|
||||||
|
push @evtEt,[$mh{cHash},1,"overheat:".(($err&0x04)?"on":"off")];
|
||||||
|
push @evtEt,[$mh{cHash},1,"reduced:" .(($err&0x08)?"on":"off")];
|
||||||
|
}
|
||||||
#hack for blind - other then behaved devices blind does not send
|
#hack for blind - other then behaved devices blind does not send
|
||||||
# a status info for chan 0 at power on
|
# a status info for chan 0 at power on
|
||||||
# chn3 (virtual chan) and not used up to now
|
# chn3 (virtual chan) and not used up to now
|
||||||
@ -8458,13 +8463,13 @@ sub CUL_HM_motionCheck($){#
|
|||||||
|
|
||||||
if (defined $defs{$name}{helper}{moStart}){
|
if (defined $defs{$name}{helper}{moStart}){
|
||||||
CUL_HM_UpdtReadBulk($defs{$name},1,"state:noMotion"
|
CUL_HM_UpdtReadBulk($defs{$name},1,"state:noMotion"
|
||||||
,"motion:no"
|
,"motion:off"
|
||||||
,"motionDuration:".(int(gettimeofday())-int($defs{$name}{helper}{moStart})));
|
,"motionDuration:".(int(gettimeofday())-int($defs{$name}{helper}{moStart})));
|
||||||
delete $defs{$name}{helper}{moStart};
|
delete $defs{$name}{helper}{moStart};
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
CUL_HM_UpdtReadBulk($defs{$name},1,"state:noMotion"
|
CUL_HM_UpdtReadBulk($defs{$name},1,"state:noMotion"
|
||||||
,"motion:no");
|
,"motion:off");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user