39_alexa.pm: fix for multiple intents for the same characteristic

git-svn-id: https://svn.fhem.de/fhem/trunk@12791 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2016-12-16 23:39:21 +00:00
parent af443d1f18
commit a261b75f3f

View File

@@ -252,11 +252,13 @@ Log 1, Dumper $characteristicsOfIntent;
my $nr = $i?chr(65+$i):'';
$nr = '';
$nr = '' if( $mapping->{valueSuffix} );
#my $intent = $characteristic .'Intent'. $nr;
my $intent = $characteristic;
$intent = lcfirst($mapping->{valueSuffix}) if( $mapping->{valueSuffix} );
$intent .= 'Intent';
$intent .= $nr;
next if( $intents->{$intent} );
$intents->{$intent} = 1;