Autor Thema: Unterstützung Aeotec Door/Window Sensor 7 (ZWA011)  (Gelesen 840 mal)

Offline Zergman

  • New Member
  • *
  • Beiträge: 16
Unterstützung Aeotec Door/Window Sensor 7 (ZWA011)
« am: 11 März 2022, 13:28:29 »
Hallo FHEM Z-Wave Maintainer,

könntet ihr bitte die Konfiguration des Aeotec Door/Window Sensor 7 (ZWA011) mit in FHEM aufnehmen. Anbei die Infos zu dem Device.

Model ID (bei mir): 0x0371 0x0002 0x000b

Laut Aeotec läuft das Device scheinbar noch unter anderen IDs:
EU: 0371.0002.000B / 0371.0002.0029
AU: 0371.0102.000B / 0371.0102.0029
US: 0371.0202.000B / 0371.0202.0029

Links:

Das Listing meines ZWA011 FHEM Devices:
Internals:
   CFGFN     
   DEF        c341a14b 8
   FUUID      622b380c-f33f-8275-41fa-cb136e313a21fa68
   IODev      ZWDongle
   LASTInputDev ZWDongle
   MSGCNT     9
   NAME       AeotecZWA011
   NR         597
   STATE      wakeupInterval 86400 1
   TYPE       ZWave
   ZWDongle_MSGCNT 9
   ZWDongle_RAWMSG 00040008097105000000ff061700b800
   ZWDongle_TIME 2022-03-11 12:54:38
   ZWaveSubDevice no
   cmdsPending 0
   homeId     XXXXXX
   isWakeUp   1
   lastMsgSent 1646999619.19479
   nodeIdHex  08
   READINGS:
     2022-03-11 12:52:44   IODev           ZWDongle
     2022-03-11 12:54:38   alarm           AccessControl: Window/Door is closed
     2022-03-11 12:53:37   model           0x0371 0x0002 0x000b
     2022-03-11 12:53:37   modelId         0371-0002-000b
     2022-03-11 12:53:39   routeInfo       timeToCb:0.02 repeaters:0 rssi0:-75 dBm ackCh:0 lastCh:0 scheme:LastWorkingRoute rep:at 100kbps routeTries:1 lastFailed:
     2022-03-11 12:52:50   state           wakeupInterval 86400 1
     2022-03-11 12:53:39   timeToAck       0.027
     2022-03-11 12:53:39   transmit        OK
     2022-03-11 12:53:37   wakeup          notification
     2022-03-11 12:53:02   zwavePlusInfo    version:02 role:SleepingReportingSlave node:Z-Wave+Node installerIcon:0c00 userIcon:0c00
Attributes:
   classes    ZWAVEPLUS_INFO ASSOCIATION MULTI_CHANNEL_ASSOCIATION ASSOCIATION_GRP_INFO TRANSPORT_SERVICE VERSION MANUFACTURER_SPECIFIC DEVICE_RESET_LOCALLY INDICATOR POWERLEVEL BATTERY SECURITY_S2 SENSOR_BINARY ALARM CONFIGURATION WAKE_UP SUPERVISION FIRMWARE_UPDATE_MD
   room       ZWave
   vclasses   ALARM:8 ASSOCIATION:2 ASSOCIATION_GRP_INFO:3 BATTERY:1 CONFIGURATION:4 DEVICE_RESET_LOCALLY:1 FIRMWARE_UPDATE_MD:5 INDICATOR:3 MANUFACTURER_SPECIFIC:2 MULTI_CHANNEL_ASSOCIATION:3 POWERLEVEL:1 SECURITY_S2:1 SUPERVISION:1 TRANSPORT_SERVICE:2 VERSION:3 WAKE_UP:2 ZWAVEPLUS_INFO:2

Vielen Dank!

Offline Zergman

  • New Member
  • *
  • Beiträge: 16
Antw:Unterstützung Aeotec Door/Window Sensor 7 (ZWA011)
« Antwort #1 am: 14 März 2022, 22:38:45 »
Anbei ein Patch für die entsprechenden Dateien. Falls es hilfreich sein sollte, kann ich auch noch einen Patch für den ZW141 bauen.

Index: FHEM/lib/openzwave_deviceconfig.xml.gz
===================================================================
Kann nicht anzeigen: Dateityp ist als binär angegeben.
svn:mime-type = application/octet-stream
Index: FHEM/lib/openzwave_manufacturer_specific.xml
===================================================================
--- FHEM/lib/openzwave_manufacturer_specific.xml (Revision 25841)
+++ FHEM/lib/openzwave_manufacturer_specific.xml (Arbeitskopie)
@@ -202,6 +202,12 @@
     <Product config="aeotec/zwa005.xml" id="0005" name="ZWA005 TriSensor" type="0002"/>
     <Product config="aeotec/zwa005.xml" id="0005" name="ZWA005 TriSensor" type="0102"/>
     <Product config="aeotec/zwa005.xml" id="0005" name="ZWA005 TriSensor" type="0202"/>
+    <Product config="aeotec/zwa011.xml" id="000b" name="ZWA011 Door/Windows Sensor 7" type="0002"/>
+    <Product config="aeotec/zwa011.xml" id="000b" name="ZWA011 Door/Windows Sensor 7" type="0102"/>
+    <Product config="aeotec/zwa011.xml" id="000b" name="ZWA011 Door/Windows Sensor 7" type="0202"/>
+    <Product config="aeotec/zwa011.xml" id="0029" name="ZWA011 Door/Windows Sensor 7" type="0002"/>
+    <Product config="aeotec/zwa011.xml" id="0029" name="ZWA011 Door/Windows Sensor 7" type="0102"/>
+    <Product config="aeotec/zwa011.xml" id="0029" name="ZWA011 Door/Windows Sensor 7" type="0202"/>
     <Product config="aeotec/zwa021.xml" id="0015" name="ZWA021 Thermostatic Valve" type="0002"/>
     <Product config="aeotec/zw162.xml" id="00a2" name="ZW162 Doorbell 6" type="0003"/>
     <Product config="aeotec/zw162.xml" id="00a2" name="ZW162 Doorbell 6" type="0103"/>

geändert: anbei die Defintion für openzwave_deviceconfig.xml.gz (die Definition bei OpenZWave stimmt leider nicht mit der Dokumentation von Aeotec überein)

<Product sourceFile="aeotec/zwa011.xml">
  <MetaData>
    <MetaDataItem name="OzwInfoPage">http://www.openzwave.com/device-database/0371:000B:0002</MetaDataItem>
    <MetaDataItem name="ProductPic">images/aeotec/zwa011.png</MetaDataItem>
    <MetaDataItem id="000B" name="ZWProductPage" type="0002">https://products.z-wavealliance.org/products/3866/</MetaDataItem>
    <MetaDataItem name="Name">Door / Window Sensor 7</MetaDataItem>
    <MetaDataItem id="000B" name="FrequencyName" type="0002">CEPT (Europe)</MetaDataItem>
    <MetaDataItem id="000B" name="Identifier" type="0002">ZWA011-C</MetaDataItem>
    <MetaDataItem name="Description">Aeotec Door/ Window Sensor 7 is built on the 700 series Z-Wave technology.
      Its a small window position sensor for your smart home, it monitors window and their exact opening position and lets your know when a window is tilted or completely opened.
      It also supports connecting external binary sensors with a dry contact through the dry binary contact of the Door/ Window sensor.
      Using the latest technology it supports the highest Z-Wave security level of S2 and SmartStart.
    </MetaDataItem>
    <MetaDataItem name="WakeupDescription">Press the tamper once</MetaDataItem>
    <MetaDataItem name="InclusionDescription">1. Open the housing.
      2. Remove the battery protection.
      3. Press the tamper on the side of the appliance three times quickly.
    </MetaDataItem>
    <MetaDataItem name="ExclusionDescription">1. Open the housing.
      2. Press the tamper on the side of the appliance three times quickly.
    </MetaDataItem>
    <MetaDataItem name="ResetDescription">Reset to factory default
      This device also allows to be reset without any involvement of a Z-Wave controller. This procedure should only be used when the primary controller is inoperable.
      Once Cover is removed and the tamper switch is tripped, push the tamper for 5 seconds until the RED LED
      blinks once. Then release tamper and push it again for 5 seconds while the RED LED is blinking until the
      GREEN LED blinks once.
    </MetaDataItem>
    <MetaDataItem name="ProductManual">https://aeotec.freshdesk.com/support/solutions/folders/6000237099</MetaDataItem>
    <MetaDataItem name="ProductSupport">https://aeotec.freshdesk.com/support/solutions/folders/6000237099</MetaDataItem>
    <ChangeLog>
      <Entry author="Justin Hammond" date="06 July 2020" revision="1">Initial Config File taken from ZWA012</Entry>
      <Entry author="GizMoCuz" date="13 April 2021" revision="1">Initial Config File taken from https://help.aeotec.com/support/solutions/articles/6000218764-door-windows-sensor-7-user-guide</Entry>
    </ChangeLog>
  </MetaData>
  <!-- Basic set as report -->
  <CommandClass id="32">
    <Compatibility>
      <SetAsReport>true</SetAsReport>
    </Compatibility>
  </CommandClass>
  <!-- Configuration Parameters -->
  <CommandClass id="112">
    <Value genre="config" index="3" instance="1" label="State when magnet is close to sensor" max="1" min="0" size="1" type="list" value="0">
      <Item label="Report closed when magnet is near" value="0"/>
      <Item label="Report opened when magnet is near" value="1"/>
    </Value>
    <Value genre="config" index="4" instance="1" label="LED indications" max="7" min="0" size="1" type="byte" value="7">
      <Help>
                This parameter defines events indicated by the visual LED indicator. Disabling events might extend battery life.
                Values of parameters may be combined, e.g. 1+2=3 means opening/closing and wake up will be indicated by the visual indicator.
                0 - No indications.
                1 - Indication of opening/closing status change (input In).
                2 - Indication of wake up
                4 - Indication of device tampering.
            </Help>
    </Value>
    <Value genre="config" index="5" instance="1" label="Range test after double click" max="1" min="0" size="1" type="list" value="0">
      <Help>
                Allows to enable activation of Z-Wave range test with double click of a Tamper Switch 2.
            </Help>
      <Item label="Disable" value="0"/>
      <Item label="Enable" value="1"/>
    </Value>
    <Value genre="config" index="6" instance="1" label="2nd Association Group triggers" max="1" min="0" size="1" type="list" value="0">
      <Help>
                Parameter defines events which result in sending On/Off commands to devices added to the 2nd Association Group.
                These commands are sent alternately to switch the devices On and Off.
                Commands represent the values of BASIC SET command frames.
                Parameter is inactive in external dry-contact mode (parameter Operation Mode set to 1).
            </Help>
      <Item label="Switch after opening and closing" value="0"/>
      <Item label="Switch after opening" value="1"/>
      <Item label="Switch after closing" value="2"/>
    </Value>
    <Value genre="config" index="7" instance="1" label="Commands sent to 2nd Association Group" max="1" min="0" size="1" type="list" value="2">
      <Help>
                Command frames sent to devices added to the 2nd association group.
            </Help>
      <Item label="On" value="0"/>
      <Item label="Off" value="1"/>
      <Item label="On and Off" value="2"/>
    </Value>
    <Value genre="config" index="8" instance="1" label="Value of ON command frame sent to 2nd Association Group" max="255" min="0" size="1" type="byte" value="255">
      <Help>
                The value of 0 turns OFF the device, 255 turns it On.
                In case of associating the Dimmer or Roller Shutter module, values 1-99 allow to set an Associated device to a specified level.
            </Help>
    </Value>
    <Value genre="config" index="9" instance="1" label="Value of OFF command frame sent to 2nd Association Group" max="255" min="0" size="1" type="byte" value="0">
      <Help>
                The value of 0 turns OFF the device, 255 turns it On.
                In case of associating the Dimmer or Roller Shutter module, values 1-99 allow to set an Associated device to a specified level.
            </Help>
    </Value>
    <Value genre="config" index="10" instance="1" label="Time delay of ON command frame" max="32400" min="0" size="2" type="short" units="seconds" value="0">
      <Help>
                Time period after which On command frame will be sent.
            </Help>
    </Value>
    <Value genre="config" index="11" instance="1" label="Time delay of OFF command frame" max="32400" min="0" size="2" type="short" units="seconds" value="0">
      <Help>
                Time period after which Off command frame will be sent.
            </Help>
    </Value>
    <Value genre="config" index="12" instance="1" label="Delay of tamper alarm cancellation" max="32400" min="0" size="2" type="short" units="seconds" value="5">
      <Help>
                Time period after which a tamper alarm will be cancelled.
            </Help>
    </Value>
    <Value genre="config" index="13" instance="1" label="Reporting tamper alarm cancellation" max="1" min="0" size="1" type="list" value="1">
      <Help>
                Reporting cancellation of tamper alarm to the controller and 5th Association Group.
            </Help>
      <Item label="Do not send tamper cancellation report" value="0"/>
      <Item label="Send tamper cancellation report" value="1"/>
    </Value>
    <Value genre="config" index="255" instance="1" label="Reset to Factory Default Setting" size="4" type="list" value="1" write_only="true">
      <Help>Reset to factory defaults</Help>
      <Item label="Resets all configuration parameters to default setting" value="1"/>
      <Item label="Reset the product to factory default setting and exclude from Z-Wave network" value="1431655765"/>
    </Value>
  </CommandClass>
  <!-- Association Groups -->
  <CommandClass id="133">
    <Associations num_groups="4">
      <Group index="1" label="Lifeline" max_associations="5"/>
      <Group index="2" label="Control" max_associations="5"/>
      <Group index="3" label="Alarm sensor" max_associations="5"/>
      <Group index="4" label="Alarm tamper" max_associations="5"/>
    </Associations>
  </CommandClass>
</Product>
« Letzte Änderung: 16 März 2022, 10:50:11 von Zergman »

Offline rudolfkoenig

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 25398
Antw:Unterstützung Aeotec Door/Window Sensor 7 (ZWA011)
« Antwort #2 am: 21 März 2022, 11:39:48 »
Danke fuer den Patch.
Um den Maintainer zu entlasten habe ich ihn eingecheckt.
Bitte pruefen.

Offline Zergman

  • New Member
  • *
  • Beiträge: 16
Antw:Unterstützung Aeotec Door/Window Sensor 7 (ZWA011)
« Antwort #3 am: 22 März 2022, 10:26:52 »
Vielen Dank, funktioniert wie erwartet.

Offline krikan

  • Developer
  • Hero Member
  • ****
  • Beiträge: 7044
Antw:Unterstützung Aeotec Door/Window Sensor 7 (ZWA011)
« Antwort #4 am: 23 März 2022, 09:54:53 »
Danke, @Rudi. Habe erst wieder ab 2.4. Zugriff aufs svn. Vorher kann ich nichts machen. Gruß, Christian

 

decade-submarginal