39_alexa.pm: hide alexaFHEMlog device

git-svn-id: https://svn.fhem.de/fhem/trunk@18280 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2019-01-16 13:07:08 +00:00
parent b2e8594f0b
commit 99e0c3f629

View File

@@ -1381,6 +1381,10 @@ alexa_Attr($$$)
} elsif( $attrName eq 'alexaFHEM-log' ) {
if( $cmd eq "set" && $attrVal && $attrVal ne 'FHEM' ) {
fhem( "defmod -temporary alexaFHEMlog FileLog $attrVal fakelog" );
CommandAttr( undef, "alexaFHEMlog room hidden" );
#if( my $room = AttrVal($name, "room", undef ) ) {
# CommandAttr( undef,"alexaFHEMlog room $room" );
#}
} else {
fhem( "delete alexaFHEMlog" );
}