mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-13 17:26:34 +00:00
39_alexa.pm: added alexaProactiveEvents attribute
git-svn-id: https://svn.fhem.de/fhem/trunk@21229 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8c415d9d28
commit
da29770f71
@ -138,6 +138,7 @@ alexa_Define($$)
|
|||||||
|
|
||||||
addToAttrList("$hash->{TYPE}Name");
|
addToAttrList("$hash->{TYPE}Name");
|
||||||
addToAttrList("$hash->{TYPE}Room");
|
addToAttrList("$hash->{TYPE}Room");
|
||||||
|
addToAttrList("$hash->{TYPE}ProactiveEvents:1,0");
|
||||||
|
|
||||||
alexa_AttrDefaults($hash);
|
alexa_AttrDefaults($hash);
|
||||||
|
|
||||||
@ -395,7 +396,7 @@ alexa_configDefault($;$)
|
|||||||
$conf->{connections} = [{}] if( !$conf->{connections} );
|
$conf->{connections} = [{}] if( !$conf->{connections} );
|
||||||
$conf->{connections}[0]->{name} = 'FHEM' if( !$conf->{connections}[0]->{name} );
|
$conf->{connections}[0]->{name} = 'FHEM' if( !$conf->{connections}[0]->{name} );
|
||||||
$conf->{connections}[0]->{server} = $ip if( !$conf->{connections}[0]->{server} );
|
$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]->{filter} = 'alexaName=..*' if( !$conf->{connections}[0]->{filter} );
|
||||||
$conf->{connections}[0]->{uid} = $< if( $conf->{sshproxy} );
|
$conf->{connections}[0]->{uid} = $< if( $conf->{sshproxy} );
|
||||||
|
|
||||||
@ -1304,6 +1305,12 @@ alexa_Attr($$$)
|
|||||||
|
|
||||||
<li>alexaRoom<br>
|
<li>alexaRoom<br>
|
||||||
The room name to use for a device with alexa.</li>
|
The room name to use for a device with alexa.</li>
|
||||||
|
|
||||||
|
<li>alexaProactiveEvents<br>
|
||||||
|
0 -> don't send proactiveEvents to amazon (default)<br>
|
||||||
|
1 -> send proactiveEvents to amazon<br>
|
||||||
|
devices that send proactiveEvents to amazon can be used to trigger alexa routines.<br>
|
||||||
|
setting alexaProactiveEvents to 0 in the alexa device itself will disable all event reporting for this fhem instance</li>
|
||||||
<li>articles<br>
|
<li>articles<br>
|
||||||
defaults to: der,die,das,den</li>
|
defaults to: der,die,das,den</li>
|
||||||
<li>prepositions<br>
|
<li>prepositions<br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user