2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-09 19:54:19 +00:00

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:
justme-1968 2019-01-16 16:58:23 +00:00
parent 9ae91ebe98
commit a222c33941

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;
}