39_alexa.pm: added unregister command

git-svn-id: https://svn.fhem.de/fhem/trunk@18283 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2019-01-16 16:58:23 +00:00
parent aa6df6cb21
commit 1877a03005

View File

@@ -878,6 +878,17 @@ alexa_Set($$@)
FW_directNotify($name, 'clearProxyCredentials');
return undef;
} elsif( $cmd eq 'unregister' ) {
FW_directNotify($name, 'unregister');
fhem( "set $name clearProxyCredentials" );
CommandAttr( undef, '$name disable 1' );
CommandSave(undef,undef) if( AttrVal( "autocreate", "autosave", 1 ) );
return undef;
}