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

31_HUEDevice.pm: check for deconz

git-svn-id: https://svn.fhem.de/fhem/trunk@25509 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2022-01-20 07:49:07 +00:00
parent 1913f0ffde
commit 582f47f048

View File

@ -1461,6 +1461,7 @@ HUEDevice_Parse($$)
if( !defined($hash->{has_v2_api}) && defined($hash->{IODev}) ) {
$hash->{has_v2_api} = $hash->{IODev}{has_v2_api} if( defined($hash->{IODev}{has_v2_api}) );
$hash->{has_v2_api} = 0 if( defined($hash->{IODev}{modelid}) && $hash->{IODev}{modelid} eq 'deCONZ' );
Log3 $name, 4, "$name: bridge has v2 api: ". ($hash->{has_v2_api} ? 1 : 0);