mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
39_alexa.pm: added customSlotTypes get command
git-svn-id: https://svn.fhem.de/fhem/trunk@12652 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e4e3bc81be
commit
3efe4a24e0
@ -20,7 +20,7 @@ alexa_Initialize($)
|
||||
#$hash->{NotifyFn} = "alexa_Notify";
|
||||
$hash->{UndefFn} = "alexa_Undefine";
|
||||
$hash->{SetFn} = "alexa_Set";
|
||||
#$hash->{GetFn} = "alexa_Get";
|
||||
$hash->{GetFn} = "alexa_Get";
|
||||
#$hash->{AttrFn} = "alexa_Attr";
|
||||
$hash->{AttrList} = "$readingFnAttributes";
|
||||
}
|
||||
@ -80,11 +80,11 @@ alexa_Set($$@)
|
||||
|
||||
if( $cmd eq 'reload' ) {
|
||||
$hash->{".triggerUsed"} = 1;
|
||||
if( @args ) {
|
||||
if( @args ) {
|
||||
FW_directNotify($name, "reload $args[0]");
|
||||
} else {
|
||||
} else {
|
||||
FW_directNotify($name, 'reload');
|
||||
}
|
||||
}
|
||||
|
||||
return undef;
|
||||
}
|
||||
@ -97,7 +97,13 @@ alexa_Get($$@)
|
||||
{
|
||||
my ($hash, $name, $cmd) = @_;
|
||||
|
||||
my $list = "";
|
||||
my $list = "customSlotTypes";
|
||||
|
||||
if( lc($cmd) eq 'customslottypes' ) {
|
||||
FW_directNotify($name, 'customSlotTypes');
|
||||
|
||||
return undef;
|
||||
}
|
||||
|
||||
return "Unknown argument $cmd, choose one of $list";
|
||||
}
|
||||
@ -175,6 +181,14 @@ alexa_Attr($$$)
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<a name="alexa_Get"></a>
|
||||
<b>Get</b>
|
||||
<ul>
|
||||
<li>customSlotTypes<br>
|
||||
Instructs alexa-fhem to write the Custom Slot Types for the Interaction Model to the console.
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<a name="alexa_Attr"></a>
|
||||
<b>Attr</b>
|
||||
<ul>
|
||||
|
Loading…
Reference in New Issue
Block a user