From 2d406d459f1cd7fedfd151fda5b479663b594ff8 Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Sat, 30 Nov 2019 10:20:33 +0000 Subject: [PATCH] 39_alexa.pm: added persons mapping for custom skills git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@20626 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/39_alexa.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/FHEM/39_alexa.pm b/FHEM/39_alexa.pm index 3a65ed9dd..1d0a49172 100644 --- a/FHEM/39_alexa.pm +++ b/FHEM/39_alexa.pm @@ -42,6 +42,7 @@ alexa_Initialize($) $hash->{AttrList} = "alexaMapping:textField-long alexaTypes:textField-long fhemIntents:textField-long ". "articles prepositions ". "echoRooms:textField-long ". + "persons:textField-long ". "alexaConfirmationLevel:2,1,0 alexaStatusLevel:2,1 ". "skillId:textField ". "alexaFHEM-cmd ". @@ -102,6 +103,10 @@ alexa_AttrDefaults($) CommandAttr(undef,"$name echoRooms #=\n" ); } + if( !AttrVal( $name, 'persons', undef ) ) { + CommandAttr(undef,"$name persons #=\n" ); + } + if( !AttrVal( $name, 'fhemIntents', undef ) ) { CommandAttr(undef,"$name fhemIntents #IntentName=\n". @@ -1292,6 +1297,9 @@ alexa_Attr($$$)
  • alexaName
    The name to use for a device with alexa.
  • + +
    The following attributes are only relevant for custom skills: +
  • alexaRoom
    The room name to use for a device with alexa.
  • articles
    @@ -1304,6 +1312,8 @@ alexa_Attr($$$) maps spoken device types to ServiceClasses. eg: attr alexa alexaTypes light:licht,lampe,lampen blind:rolladen,jalousie,rollo Outlet:steckdose TemperatureSensor:thermometer LockMechanism:schloss OccupancySensor: anwesenheit
  • echoRooms
    maps echo devices to default rooms.
  • +
  • persons
    + maps personIds to names.
  • fhemIntents
    maps spoken commands directed to fhem as a whole (i.e. not to specific devices) to events from the alexa device.
  • alexaConfirmationLevel