2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 23:06:37 +00:00

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:
justme-1968 2017-04-10 19:07:52 +00:00
parent e22295c6e7
commit 30de824ad9

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".