2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-20 07:16:03 +00:00

19_EnOcean: profil multisensor.50 (EEP D2-06-50) changed

git-svn-id: https://svn.fhem.de/fhem/trunk@24474 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
klaus.schauer 2021-05-19 04:30:10 +00:00
parent f23c855028
commit 3f0ba303bd

View File

@ -768,18 +768,19 @@ sub EnOcean_Initialize($) {
} }
my $subTypeList = join(",", sort grep { !$subTypeList{$_}++ } @subTypeList); my $subTypeList = join(",", sort grep { !$subTypeList{$_}++ } @subTypeList);
$hash->{AttrFn} = "EnOcean_Attr";
$hash->{AutoCreate} = {"EnO.*" => {ATTR => "creator:autocreate", FILTER => "%NAME"}}; $hash->{AutoCreate} = {"EnO.*" => {ATTR => "creator:autocreate", FILTER => "%NAME"}};
$hash->{noAutocreatedFilelog} = 1;
$hash->{Match} = "^EnOcean:";
$hash->{DefFn} = "EnOcean_Define"; $hash->{DefFn} = "EnOcean_Define";
$hash->{DeleteFn} = "EnOcean_Delete"; $hash->{DeleteFn} = "EnOcean_Delete";
$hash->{UndefFn} = "EnOcean_Undef"; $hash->{GetFn} = "EnOcean_Get";
$hash->{Match} = "^EnOcean:";
$hash->{noAutocreatedFilelog} = 1;
$hash->{NotifyFn} = "EnOcean_Notify";
#$hash->{NotifyOrderPrefix} = "45-";
$hash->{ParseFn} = "EnOcean_Parse"; $hash->{ParseFn} = "EnOcean_Parse";
$hash->{SetFn} = "EnOcean_Set"; $hash->{SetFn} = "EnOcean_Set";
#$hash->{StateFn} = "EnOcean_State"; #$hash->{StateFn} = "EnOcean_State";
$hash->{GetFn} = "EnOcean_Get"; $hash->{UndefFn} = "EnOcean_Undef";
$hash->{NotifyFn} = "EnOcean_Notify";
$hash->{AttrFn} = "EnOcean_Attr";
$hash->{AttrList} = "IODev do_not_notify:select,0,1 ignore:0,1 dummy:0,1 " . $hash->{AttrList} = "IODev do_not_notify:select,0,1 ignore:0,1 dummy:0,1 " .
"showtime:select,0,1 " . "showtime:select,0,1 " .
"actualTemp angleMax:slider,-180,20,180 alarmAction alwaysUpdateReadings:select,0,1 " . "actualTemp angleMax:slider,-180,20,180 alarmAction alwaysUpdateReadings:select,0,1 " .
@ -851,7 +852,6 @@ sub EnOcean_Initialize($) {
} else { } else {
Log3 undef, 2, "EnOcean XML functions are not available."; Log3 undef, 2, "EnOcean XML functions are not available.";
} }
#$hash->{NotifyOrderPrefix} = "45-";
return undef; return undef;
} }
@ -11909,6 +11909,7 @@ sub EnOcean_Parse($$) {
my $battery = $db[1] & 0x80 ? 'low' : 'ok'; my $battery = $db[1] & 0x80 ? 'low' : 'ok';
push @event, "1:battery:$battery"; push @event, "1:battery:$battery";
push @event, "1:batteryPercent:". ($db[1] & 0x7F); push @event, "1:batteryPercent:". ($db[1] & 0x7F);
push @event, "1:burglaryAlarm:off";
my %errorStatus = ( my %errorStatus = (
0 => "ok", 0 => "ok",
1 => "error", 1 => "error",