From d714a605a075b68e8302c6bf37e0b51296a02215 Mon Sep 17 00:00:00 2001 From: klaus-schauer <> Date: Sun, 13 Sep 2015 15:54:17 +0000 Subject: [PATCH] 10_EnOcean: Configuring company-specific device (special EEP) using the command define now possible git-svn-id: https://svn.fhem.de/fhem/trunk@9245 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_EnOcean.pm | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/fhem/FHEM/10_EnOcean.pm b/fhem/FHEM/10_EnOcean.pm index 56c51c6e4..e00e0e315 100755 --- a/fhem/FHEM/10_EnOcean.pm +++ b/fhem/FHEM/10_EnOcean.pm @@ -319,8 +319,10 @@ my %EnO_eepConfig = ( "F6.3F.7F" => {attr => {subType => "switch.7F"}}, "B0.00.00" => {attr => {subType => "genericProfile"}}, # special profiles - "FF.FF.FD" => {attr => {subType => "FRW"}}, - "FF.FF.FE" => {attr => {subType => "PM101"}}, + "FF.FF.08" => {attr => {subType => "gateway", eep => "A5-38-08", gwCmd => "dimming", manufID => "00D", webCmd => "on:off:dim"}}, + "FF.FF.7F" => {attr => {subType => "manufProfile", eep => "A5-3F-7F", manufID => "00D", webCmd => "opens:stop:closes"}}, + "FF.FF.FD" => {attr => {subType => "FRW", eep => "F6-02-01", manufID => "00D"}}, + "FF.FF.FE" => {attr => {subType => "PM101", manufID => "005"}}, "FF.FF.FF" => {attr => {subType => "raw"}}, ); @@ -532,12 +534,12 @@ EnOcean_Define($$) $rorg = "A5" if ($rorg eq "07"); my $eep = "$rorg.$func.$type"; if (exists $EnO_eepConfig{$eep}) { + $attr{$name}{eep} = "$rorg-$func-$type"; foreach my $attrCntr (keys %{$EnO_eepConfig{$eep}{attr}}) { if ($attrCntr ne "subDef") { $attr{$name}{$attrCntr} = $EnO_eepConfig{$eep}{attr}{$attrCntr}; } } - $attr{$name}{eep} = "$rorg-$func-$type"; return undef; } else { return "EEP $rorg-$func-$type not supported"; @@ -555,14 +557,14 @@ EnOcean_Define($$) $rorg = "A5" if ($rorg eq "07"); my $eep = "$rorg.$func.$type"; if (exists $EnO_eepConfig{$eep}) { + $attr{$name}{eep} = "$rorg-$func-$type"; + $attr{$name}{manufID} = "7FF"; + $attr{$name}{room} = "EnOcean"; foreach my $attrCntr (keys %{$EnO_eepConfig{$eep}{attr}}) { if ($attrCntr ne "subDef") { $attr{$name}{$attrCntr} = $EnO_eepConfig{$eep}{attr}{$attrCntr}; } } - $attr{$name}{eep} = "$rorg-$func-$type"; - $attr{$name}{manufID} = "7FF"; - $attr{$name}{room} = "EnOcean"; return undef; } else { return "EEP $rorg-$func-$type not supported"; @@ -11185,6 +11187,8 @@ EnOcean_Undef($$) Inofficial EEP for special devices