39_alexa.pm: added echoRooms attribute

git-svn-id: https://svn.fhem.de/fhem/trunk@13964 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2017-04-10 19:07:52 +00:00
parent fa676c5f7e
commit 0f4404baa1

View File

@@ -25,6 +25,7 @@ alexa_Initialize($)
$hash->{AttrFn} = "alexa_Attr";
$hash->{AttrList} = "alexaMapping:textField-long alexaTypes:textField-long fhemIntents:textField-long ".
"articles prepositions ".
"echoRooms:textField-long ".
"alexaConfirmationLevel:2,1,0 alexaStatusLevel:2,1 ".
$readingFnAttributes;
}
@@ -65,6 +66,11 @@ alexa_AttrDefaults($)
"blind=rolladen,rolläden,jalousie,jalousien,rollo,rollos" );
}
if( !AttrVal( $name, 'echoRooms', undef ) ) {
CommandAttr(undef,"$name echoRooms #<deviceId>=<room>\n" );
}
if( !AttrVal( $name, 'fhemIntents', undef ) ) {
CommandAttr(undef,"$name fhemIntents #IntentName=<sample utterance>\n".
"gutenMorgen=guten morgen\n".