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

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
This commit is contained in:
justme-1968 2016-12-14 22:42:30 +00:00
parent 88db54f7e0
commit 155fa11b08

View File

@ -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;