2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-20 19:36:02 +00:00

30_HUEBridge.pm: handle/ignore grouped_light events

git-svn-id: https://svn.fhem.de/fhem/trunk@25520 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2022-01-20 17:58:43 +00:00
parent 81fde7ba98
commit 9c3caf29f5

View File

@ -2399,7 +2399,10 @@ HUEBridge_dispatch($$$;$)
$obj->{state}{battery_state} = $data->{power_state}{battery_state}; $obj->{state}{battery_state} = $data->{power_state}{battery_state};
} }
} elsif( $data->{type} eq 'light' ) { } elsif( $data->{type} eq 'grouped_light' ) {
} elsif( $data->{type} eq 'light'
|| $data->{type} eq 'grouped_light' ) {
$obj->{state}{on} = $data->{on}{on} if( defined($data->{on}) ); $obj->{state}{on} = $data->{on}{on} if( defined($data->{on}) );
$obj->{state}{bri} = int($data->{dimming}{brightness} * 254 / 100) if( defined($data->{dimming}) ); $obj->{state}{bri} = int($data->{dimming}{brightness} * 254 / 100) if( defined($data->{dimming}) );