From 155fa11b08e00b7622b26e0efd4d6a0830e14816 Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Wed, 14 Dec 2016 22:42:30 +0000 Subject: [PATCH] 39_alexa.pm: added some default intenst to get interactionModel git-svn-id: https://svn.fhem.de/fhem/trunk@12780 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/39_alexa.pm | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/39_alexa.pm b/fhem/FHEM/39_alexa.pm index 937b993c7..acc3f8076 100644 --- a/fhem/FHEM/39_alexa.pm +++ b/fhem/FHEM/39_alexa.pm @@ -334,15 +334,25 @@ Log 1, Dumper $characteristicsOfIntent; push @{$schema->{intents}}, {intent => "StatusIntent", slots => [ { name => 'Device', type => 'FHEM_Device' }, + { name => 'preposition', type => 'FHEM_preposition' }, { name => 'Room', type => 'FHEM_Room' } ]}; push @{$schema->{intents}}, {intent => "RoomListIntent", }; push @{$schema->{intents}}, {intent => "DeviceListIntent", - slots => [ { name => 'Device', type => 'FHEM_Device' }, ]}; + slots => [ { name => 'preposition', type => 'FHEM_preposition' }, + { name => 'Room', type => 'FHEM_Room' } ]}; + push @{$schema->{intents}}, {intent => "AMAZON.CancelIntent", }; + push @{$schema->{intents}}, {intent => "AMAZON.StopIntent", }; + + $samples .= "\nStatusIntent status"; + $samples .= "\nStatusIntent {Device} status"; + $samples .= "\nStatusIntent status von {Device}"; + $samples .= "\nStatusIntent wie ist der status von {Device}"; + $samples .= "\nStatusIntent wie ist der status {preposition} {Room}"; $samples .= "\nRoomListIntent raumliste"; $samples .= "\nDeviceListIntent geräteliste"; $samples .= "\nDeviceListIntent geräteliste {Room}"; - $samples .= "\nDeviceListIntent geräteliste für {artikel} {Room}"; + $samples .= "\nDeviceListIntent geräteliste für {article} {Room}"; $samples .= "\n"; my $json = JSON->new;