From da29770f7170ef4c0210f8e0d2b1a2268250f404 Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Wed, 19 Feb 2020 16:36:48 +0000 Subject: [PATCH] 39_alexa.pm: added alexaProactiveEvents attribute git-svn-id: https://svn.fhem.de/fhem/trunk@21229 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/39_alexa.pm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/39_alexa.pm b/fhem/FHEM/39_alexa.pm index 8dac70490..13e70dd47 100644 --- a/fhem/FHEM/39_alexa.pm +++ b/fhem/FHEM/39_alexa.pm @@ -138,6 +138,7 @@ alexa_Define($$) addToAttrList("$hash->{TYPE}Name"); addToAttrList("$hash->{TYPE}Room"); + addToAttrList("$hash->{TYPE}ProactiveEvents:1,0"); alexa_AttrDefaults($hash); @@ -395,7 +396,7 @@ alexa_configDefault($;$) $conf->{connections} = [{}] if( !$conf->{connections} ); $conf->{connections}[0]->{name} = 'FHEM' if( !$conf->{connections}[0]->{name} ); $conf->{connections}[0]->{server} = $ip if( !$conf->{connections}[0]->{server} ); - $conf->{connections}[0]->{report} = JSON::false if( !$conf->{connections}[0]->{report} ); + #$conf->{connections}[0]->{proactiveEvents} = JSON::false if( !$conf->{connections}[0]->{proactiveEvents} ); $conf->{connections}[0]->{filter} = 'alexaName=..*' if( !$conf->{connections}[0]->{filter} ); $conf->{connections}[0]->{uid} = $< if( $conf->{sshproxy} ); @@ -1304,6 +1305,12 @@ alexa_Attr($$$)
  • alexaRoom
    The room name to use for a device with alexa.
  • + +
  • alexaProactiveEvents
    + 0 -> don't send proactiveEvents to amazon (default)
    + 1 -> send proactiveEvents to amazon
    + devices that send proactiveEvents to amazon can be used to trigger alexa routines.
    + setting alexaProactiveEvents to 0 in the alexa device itself will disable all event reporting for this fhem instance
  • articles
    defaults to: der,die,das,den
  • prepositions
    @@ -1360,7 +1367,7 @@ alexa_Attr($$$) "runtime": { "requires": { "FHEM": 5.00918799, - "perl": 5.014, + "perl": 5.014, "Meta": 0, "CoProcess": 0, "JSON": 0,