mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +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->{NotifyFn} = "alexa_Notify";
|
||||||
$hash->{UndefFn} = "alexa_Undefine";
|
$hash->{UndefFn} = "alexa_Undefine";
|
||||||
$hash->{SetFn} = "alexa_Set";
|
$hash->{SetFn} = "alexa_Set";
|
||||||
#$hash->{GetFn} = "alexa_Get";
|
$hash->{GetFn} = "alexa_Get";
|
||||||
#$hash->{AttrFn} = "alexa_Attr";
|
#$hash->{AttrFn} = "alexa_Attr";
|
||||||
$hash->{AttrList} = "$readingFnAttributes";
|
$hash->{AttrList} = "$readingFnAttributes";
|
||||||
}
|
}
|
||||||
@ -97,7 +97,13 @@ alexa_Get($$@)
|
|||||||
{
|
{
|
||||||
my ($hash, $name, $cmd) = @_;
|
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";
|
return "Unknown argument $cmd, choose one of $list";
|
||||||
}
|
}
|
||||||
@ -175,6 +181,14 @@ alexa_Attr($$$)
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</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>
|
<a name="alexa_Attr"></a>
|
||||||
<b>Attr</b>
|
<b>Attr</b>
|
||||||
<ul>
|
<ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user