14_FLAMINGO: revised code
git-svn-id: https://svn.fhem.de/fhem/trunk@27979 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
# https://github.com/RFD-FHEM/RFFHEM
|
# https://github.com/RFD-FHEM/RFFHEM
|
||||||
#
|
#
|
||||||
# 2018 - takeover from unknown maintainer
|
# 2018 - takeover from unknown maintainer
|
||||||
# 2018-2020 - HomeAuto_User, elektron-bbs
|
# 2018-2022 - HomeAuto_User, elektron-bbs
|
||||||
#################################################################
|
#################################################################
|
||||||
# FLAMINGO FA20RF
|
# FLAMINGO FA20RF
|
||||||
# get sduino_dummy raw MU;;P0=-1384;;P1=815;;P2=-2725;;P3=-20001;;P4=8159;;P5=-891;;D=01010121212121010101210101345101210101210101212101010101012121212101010121010134510121010121010121210101010101212121210101012101013451012101012101012121010101010121212121010101210101345101210101210101212101010101012121212101010121010134510121010121010121;;CP=1;;O;;
|
# get sduino_dummy raw MU;;P0=-1384;;P1=815;;P2=-2725;;P3=-20001;;P4=8159;;P5=-891;;D=01010121212121010101210101345101210101210101212101010101012121212101010121010134510121010121010121210101010101212121210101012101013451012101012101012121010101010121212121010101210101345101210101210101212101010101012121212101010121010134510121010121010121;;CP=1;;O;;
|
||||||
@@ -25,8 +25,12 @@ package main;
|
|||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
use FHEM::Meta;
|
||||||
|
|
||||||
our $VERSION = '200817';
|
our $VERSION = '20221227';
|
||||||
|
our $readingFnAttributes;
|
||||||
|
our %modules;
|
||||||
|
our $init_done;
|
||||||
|
|
||||||
my %sets = (
|
my %sets = (
|
||||||
'Testalarm:noArg',
|
'Testalarm:noArg',
|
||||||
@@ -48,20 +52,19 @@ sub FLAMINGO_Initialize {
|
|||||||
my ($hash) = @_;
|
my ($hash) = @_;
|
||||||
|
|
||||||
$hash->{Match} = '^P13\.?1?#[A-Fa-f0-9]+';
|
$hash->{Match} = '^P13\.?1?#[A-Fa-f0-9]+';
|
||||||
$hash->{SetFn} = 'FLAMINGO_Set';
|
$hash->{SetFn} = \&FLAMINGO_Set;
|
||||||
$hash->{DefFn} = 'FLAMINGO_Define';
|
$hash->{DefFn} = \&FLAMINGO_Define;
|
||||||
$hash->{UndefFn} = 'FLAMINGO_Undef';
|
$hash->{UndefFn} = \&FLAMINGO_Undef;
|
||||||
$hash->{ParseFn} = 'FLAMINGO_Parse';
|
$hash->{ParseFn} = \&FLAMINGO_Parse;
|
||||||
$hash->{AttrList} = 'IODev do_not_notify:0,1 showtime:0,1 ignore:0,1 '.
|
$hash->{AttrList} = 'IODev do_not_notify:0,1 showtime:0,1 ignore:0,1 '.
|
||||||
'model:'.join(q{,}, sort %models).q{ } .
|
'model:'.join(q{,}, sort %models).q{ } .
|
||||||
'room:FLAMINGO '.
|
|
||||||
$readingFnAttributes;
|
$readingFnAttributes;
|
||||||
$hash->{AutoCreate}=
|
$hash->{AutoCreate}=
|
||||||
{
|
{
|
||||||
'FLAMINGO.*' => { ATTR => 'event-on-change-reading:.* event-min-interval:.*:300', FILTER => '%NAME', GPLOT => q{} },
|
'FLAMINGO.*' => { ATTR => 'event-on-change-reading:.* event-min-interval:.*:300', FILTER => '%NAME', GPLOT => q{} },
|
||||||
};
|
};
|
||||||
|
|
||||||
return
|
return FHEM::Meta::InitMod( __FILE__, $hash );
|
||||||
}
|
}
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
@@ -290,19 +293,19 @@ sub FLAMINGO_UpdateState {
|
|||||||
|
|
||||||
<br>
|
<br>
|
||||||
<li><code> is the unic code of the autogenerated address of the FLAMINGO device. This changes, after pairing to the master</li>
|
<li><code> is the unic code of the autogenerated address of the FLAMINGO device. This changes, after pairing to the master</li>
|
||||||
<li><model> is the model name</li><br>
|
<li><model> is the model name</li><br>
|
||||||
- if autocreate, the defined model is <code>unknown</code>.<br>
|
- if autocreate, the defined model is <code>unknown</code>.<br>
|
||||||
- with manual <code>define</code> you can choose the model which is available as attribute.
|
- with manual <code>define</code> you can choose the model which is available as attribute.
|
||||||
</ul>
|
</ul>
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
<a name="FLAMINGOset"></a>
|
<a name="FLAMINGOset"></a>
|
||||||
<b>Set</b>
|
<b>Set</b>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Counterreset<br>
|
<li>Counterreset<br>
|
||||||
- set alarmcounter to 0</li>
|
- set alarmcounter to 0</li>
|
||||||
<li>Testalarm<br>
|
<li>Testalarm<br>
|
||||||
- trigger a test alarm (The testalarm does not increase the alarm ounter!)</li>
|
- trigger a test alarm (The testalarm does not increase the alarm ounter!)</li>
|
||||||
</ul><br>
|
</ul><br>
|
||||||
|
|
||||||
<a name="FLAMINGOget"></a>
|
<a name="FLAMINGOget"></a>
|
||||||
@@ -315,11 +318,11 @@ sub FLAMINGO_UpdateState {
|
|||||||
<li><a href="#do_not_notify">do_not_notify</a></li>
|
<li><a href="#do_not_notify">do_not_notify</a></li>
|
||||||
<li><a href="#eventMap">eventMap</a></li>
|
<li><a href="#eventMap">eventMap</a></li>
|
||||||
<li><a href="#ignore">ignore</a></li>
|
<li><a href="#ignore">ignore</a></li>
|
||||||
<a name="model"></a>
|
<a name="model"></a>
|
||||||
<li>model<br>
|
<li>model<br>
|
||||||
FA20RF, FA21RF, FA22RF, KD-101LA, LM-101LD, unknown</li>
|
FA20RF, FA21RF, FA22RF, KD-101LA, LM-101LD, unknown</li>
|
||||||
<a name="showtime"></a>
|
<a name="showtime"></a>
|
||||||
<li><a href="#showtime">showtime</a></li>
|
<li><a href="#showtime">showtime</a></li>
|
||||||
<li><a href="#readingFnAttributes">readingFnAttributes</a></li>
|
<li><a href="#readingFnAttributes">readingFnAttributes</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<br><br>
|
<br><br>
|
||||||
@@ -332,9 +335,9 @@ sub FLAMINGO_UpdateState {
|
|||||||
<b>Pairing (Master-Slave)</b>
|
<b>Pairing (Master-Slave)</b>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Determine master<br>
|
<li>Determine master<br>
|
||||||
LEARN button push until the green LED lights on</li>
|
LEARN button push until the green LED lights on</li>
|
||||||
<li>Determine slave<br>
|
<li>Determine slave<br>
|
||||||
LEARN button push until the red LED lights on</li>
|
LEARN button push until the red LED lights on</li>
|
||||||
<li>Master, hold down the TEST button until an alarm signal generated at all "Slaves"</li>
|
<li>Master, hold down the TEST button until an alarm signal generated at all "Slaves"</li>
|
||||||
</ul><br>
|
</ul><br>
|
||||||
<b>Standalone</b>
|
<b>Standalone</b>
|
||||||
@@ -388,10 +391,10 @@ sub FLAMINGO_UpdateState {
|
|||||||
<li><a href="#do_not_notify">do_not_notify</a></li>
|
<li><a href="#do_not_notify">do_not_notify</a></li>
|
||||||
<li><a href="#eventMap">eventMap</a></li>
|
<li><a href="#eventMap">eventMap</a></li>
|
||||||
<li><a href="#ignore">ignore</a></li>
|
<li><a href="#ignore">ignore</a></li>
|
||||||
<a name="model"></a>
|
<a name="model"></a>
|
||||||
<li>model<br>
|
<li>model<br>
|
||||||
FA20RF, FA21RF, FA22RF, KD-101LA, LM-101LD, unknown</li>
|
FA20RF, FA21RF, FA22RF, KD-101LA, LM-101LD, unknown</li>
|
||||||
<a name="showtime"></a>
|
<a name="showtime"></a>
|
||||||
<li><a href="#showtime">showtime</a></li>
|
<li><a href="#showtime">showtime</a></li>
|
||||||
<li><a href="#readingFnAttributes">readingFnAttributes</a></li>
|
<li><a href="#readingFnAttributes">readingFnAttributes</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -418,4 +421,85 @@ sub FLAMINGO_UpdateState {
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
=end html_DE
|
=end html_DE
|
||||||
|
=for :application/json;q=META.json 14_FLAMINGO.pm
|
||||||
|
{
|
||||||
|
"abstract": "Supports flamingo fa20rf/fa21 smoke detectors",
|
||||||
|
"author": [
|
||||||
|
"Homeautouser <>",
|
||||||
|
"elektron-bbs <>"
|
||||||
|
],
|
||||||
|
"x_fhem_maintainer": [
|
||||||
|
"HomeAuto_User"
|
||||||
|
],
|
||||||
|
"x_fhem_maintainer_github": [
|
||||||
|
"homeautouser",
|
||||||
|
"Sidey79",
|
||||||
|
"elektron-bbs"
|
||||||
|
],
|
||||||
|
"description": "The FLAMINGO module interprets FLAMINGO FA20RF/FA21/FA22RF type of messages received by the SIGNALduino",
|
||||||
|
"dynamic_config": 1,
|
||||||
|
"keywords": [
|
||||||
|
"fhem-sonstige-systeme",
|
||||||
|
"fhem-hausautomations-systeme",
|
||||||
|
"fhem-mod",
|
||||||
|
"signalduino",
|
||||||
|
"flamingo",
|
||||||
|
"smoke",
|
||||||
|
"sensor"
|
||||||
|
],
|
||||||
|
"license": [
|
||||||
|
"GPL_2"
|
||||||
|
],
|
||||||
|
"meta-spec": {
|
||||||
|
"url": "https://metacpan.org/pod/CPAN::Meta::Spec",
|
||||||
|
"version": 2
|
||||||
|
},
|
||||||
|
"name": "FHEM::FLAMINGO",
|
||||||
|
"prereqs": {
|
||||||
|
"runtime": {
|
||||||
|
"requires": {
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"develop": {
|
||||||
|
"requires": {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"release_status": "stable",
|
||||||
|
"resources": {
|
||||||
|
"bugtracker": {
|
||||||
|
"web": "https://github.com/RFD-FHEM/RFFHEM/issues/"
|
||||||
|
},
|
||||||
|
"x_testData": [
|
||||||
|
{
|
||||||
|
"url": "https://raw.githubusercontent.com/RFD-FHEM/RFFHEM/master/t/FHEM/14_FLAMINGO/testData.json",
|
||||||
|
"testname": "Testdata with FLAMINGO smoke sensors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"repository": {
|
||||||
|
"x_master": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/RFD-FHEM/RFFHEM.git",
|
||||||
|
"web": "https://github.com/RFD-FHEM/RFFHEM/tree/master"
|
||||||
|
},
|
||||||
|
"type": "svn",
|
||||||
|
"url": "https://svn.fhem.de/fhem",
|
||||||
|
"web": "https://svn.fhem.de/trac/browser/trunk/fhem/FHEM/14_FLAMINGO.pm",
|
||||||
|
"x_branch": "trunk",
|
||||||
|
"x_filepath": "fhem/FHEM/",
|
||||||
|
"x_raw": "https://svn.fhem.de/trac/export/latest/trunk/fhem/FHEM/14_FLAMINGO.pm"
|
||||||
|
},
|
||||||
|
"x_support_community": {
|
||||||
|
"board": "Sonstige Systeme",
|
||||||
|
"boardId": "29",
|
||||||
|
"cat": "FHEM - Hausautomations-Systeme",
|
||||||
|
"description": "Sonstige Hausautomations-Systeme",
|
||||||
|
"forum": "FHEM Forum",
|
||||||
|
"rss": "https://forum.fhem.de/index.php?action=.xml;type=rss;board=29",
|
||||||
|
"title": "FHEM Forum: Sonstige Systeme",
|
||||||
|
"web": "https://forum.fhem.de/index.php/board,29.0.html"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
=end :application/json;q=META.json
|
||||||
=cut
|
=cut
|
||||||
|
|||||||
Reference in New Issue
Block a user