mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
31_HUEDevice.pm: fixed buton event fallback
git-svn-id: https://svn.fhem.de/fhem/trunk@25599 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
35e8b4140e
commit
8010d8bd57
@ -1862,16 +1862,16 @@ HUEDevice_Parse($$)
|
||||
$readings{eventtype} = $hash->{helper}{events}[$input-1]{$state->{buttonevent}};
|
||||
|
||||
} elsif( my $type = substr($state->{buttonevent}, 2, 2) ) {
|
||||
if( $type eq 00 ) {
|
||||
if( $type eq '00' ) {
|
||||
$readings{eventtype} = 'initial_press';
|
||||
|
||||
} elsif( $type eq 00 ) {
|
||||
} elsif( $type eq '01' ) {
|
||||
$readings{eventtype} = 'repeat';
|
||||
|
||||
} elsif( $type eq 00 ) {
|
||||
} elsif( $type eq '02' ) {
|
||||
$readings{eventtype} = 'short_release';
|
||||
|
||||
} elsif( $type eq 00 ) {
|
||||
} elsif( $type eq '03' ) {
|
||||
$readings{eventtype} = 'long_release';
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user