mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 14:04:15 +00:00
39_alexa.pm: added optional device paramater to reload command
git-svn-id: https://svn.fhem.de/fhem/trunk@12637 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e0e92e6fa0
commit
f293e73917
@ -80,7 +80,11 @@ alexa_Set($$@)
|
|||||||
|
|
||||||
if( $cmd eq 'reload' ) {
|
if( $cmd eq 'reload' ) {
|
||||||
$hash->{".triggerUsed"} = 1;
|
$hash->{".triggerUsed"} = 1;
|
||||||
FW_directNotify($name, 'reload');
|
if( @args ) {
|
||||||
|
FW_directNotify($name, "reload $args[0]");
|
||||||
|
} else {
|
||||||
|
FW_directNotify($name, 'reload');
|
||||||
|
}
|
||||||
|
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
@ -166,8 +170,8 @@ alexa_Attr($$$)
|
|||||||
<a name="alexa_Set"></a>
|
<a name="alexa_Set"></a>
|
||||||
<b>Set</b>
|
<b>Set</b>
|
||||||
<ul>
|
<ul>
|
||||||
<li>reload<br>
|
<li>reload [name]<br>
|
||||||
Reloads the device list in alexa-fhem. Sequently you have to start a device discovery in alexa.
|
Reloads the device <it>name</it> or all devices in alexa-fhem. Subsequently you have to start a device discovery in alexa.
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user