mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
39_alexa.pm: added reload command
git-svn-id: https://svn.fhem.de/fhem/trunk@12630 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4e1def152a
commit
3cc86a426a
@ -19,7 +19,7 @@ alexa_Initialize($)
|
||||
#$hash->{NOTIFYDEV} = "global";
|
||||
#$hash->{NotifyFn} = "alexa_Notify";
|
||||
$hash->{UndefFn} = "alexa_Undefine";
|
||||
#$hash->{SetFn} = "alexa_Set";
|
||||
$hash->{SetFn} = "alexa_Set";
|
||||
#$hash->{GetFn} = "alexa_Get";
|
||||
#$hash->{AttrFn} = "alexa_Attr";
|
||||
$hash->{AttrList} = "$readingFnAttributes";
|
||||
@ -76,7 +76,14 @@ alexa_Set($$@)
|
||||
{
|
||||
my ($hash, $name, $cmd, @args) = @_;
|
||||
|
||||
my $list = "";
|
||||
my $list = "reload";
|
||||
|
||||
if( $cmd eq 'reload' ) {
|
||||
$hash->{".triggerUsed"} = 1;
|
||||
FW_directNotify($name, 'reload');
|
||||
|
||||
return undef;
|
||||
}
|
||||
|
||||
return "Unknown argument $cmd, choose one of $list";
|
||||
}
|
||||
@ -156,6 +163,14 @@ alexa_Attr($$$)
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<a name="alexa_Set"></a>
|
||||
<b>Set</b>
|
||||
<ul>
|
||||
<li>reload<br>
|
||||
Reloads the device list in alexa-fhem. Sequently you have to start a device discovery in alexa.
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<a name="alexa_Attr"></a>
|
||||
<b>Attr</b>
|
||||
<ul>
|
||||
|
Loading…
Reference in New Issue
Block a user