From b9953371fcda988d15c132a24ed1298fa60cbe31 Mon Sep 17 00:00:00 2001 From: klaus-schauer Date: Sun, 16 Mar 2014 06:53:16 +0000 Subject: [PATCH] 10_EnOcean: subType occupSensor.01: additional readings git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5230 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_EnOcean.pm | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/10_EnOcean.pm b/fhem/FHEM/10_EnOcean.pm index d37213338..587288165 100755 --- a/fhem/FHEM/10_EnOcean.pm +++ b/fhem/FHEM/10_EnOcean.pm @@ -2992,11 +2992,20 @@ EnOcean_Parse($$) # Occupancy Sensor (EEP A5-07-01) # $db[3] is the voltage where 0x00 = 0 V ... 0xFA = 5.0 V # $db[3] > 0xFA is error code + # $db[2] is solar panel current where =0 uA ... 0xFF = 127 uA # $db[1] is PIR Status (motion) where 0 ... 127 = off, 128 ... 255 = on my $motion = "off"; if ($db[1] >= 128) {$motion = "on";} if ($db[0] & 1) {push @event, "3:voltage:" . sprintf "%0.1f", $db[3] * 0.02;} if ($db[3] > 250) {push @event, "3:errorCode:$db[3]";} + if ($manufID eq "00B") { + push @event, "3:current:" . sprintf "%0.1f", $db[2] / 2; + if ($db[0] & 2) { + push @event, "3:sensorType:ceiling"; + } else { + push @event, "3:sensorType:wall"; + } + } push @event, "3:motion:$motion"; push @event, "3:state:$motion"; @@ -4319,7 +4328,7 @@ EnOcean_Undef($$)
  • unattended
    Do not regulate the actuator.

  • - The attr subType must be MD15. This is done if the device was + The attr subType must be hvac.01. This is done if the device was created by autocreate. To control the device, it must be bidirectional paired, see Bidirectional Teach-In / Teach-Out.
    The command is not sent until the device wakes up and sends a mesage, usually @@ -5030,13 +5039,16 @@ EnOcean_Undef($$) [EnOcean EOSW]

    The attr subType must be occupSensor.<01|02>. This is done if the device was - created by autocreate. + created by autocreate. Current is the solar panel current. Some values are + displayed only for certain types of devices.

    @@ -5545,7 +5557,7 @@ EnOcean_Undef($$)
  • window: open|closed
  • state: Actuator/%

  • - The attr subType must be MD15. This is done if the device was created by + The attr subType must be hvac.01. This is done if the device was created by autocreate.