2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +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:
justme-1968 2016-11-23 14:57:06 +00:00
parent e0e92e6fa0
commit f293e73917

View File

@ -80,7 +80,11 @@ alexa_Set($$@)
if( $cmd eq 'reload' ) {
$hash->{".triggerUsed"} = 1;
FW_directNotify($name, 'reload');
if( @args ) {
FW_directNotify($name, "reload $args[0]");
} else {
FW_directNotify($name, 'reload');
}
return undef;
}
@ -166,8 +170,8 @@ alexa_Attr($$$)
<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>reload [name]<br>
Reloads the device <it>name</it> or all devices in alexa-fhem. Subsequently you have to start a device discovery in alexa.
</li>
</ul>