cdjackson / HABmin

A web admin console for openHAB home automation
http://www.cd-jackson.com/index.php/openhab/habmin
217 stars 51 forks source link

Missing Device in Database (ZD2102EU-5) #240

Closed fleischtorte closed 8 years ago

fleischtorte commented 9 years ago

Hi Chris,

I have some trouble with sensors from vison security. They've released a new Version (Gen5) of the ZD2102 which only report the batterylevel.

Here is the Peperdb-Link: http://www.pepper1.net/zwavedb/device/547 Device ID: 105 Device Type: 2001 Generic Device Class: GARAGE_DOOR

Also i have some devices they are missing in the database but they are working:

Vision Security CO Detektor Device ID: f03 Device Type: 200f

Z-Wave.me Z-Stick Controller Device ID: 4 Device Type: 2

If you need additional info please let me know

Regards David

cdjackson commented 9 years ago

Please can you create a separate issue per device - it makes it easier to track and close (things don’t get missed).

I would encourage you to try and produce the required database entry. The documentation is here -: https://github.com/cdjackson/HABmin2/wiki/Z-Wave-Product-Database https://github.com/cdjackson/HABmin2/wiki/Z-Wave-Product-Database

Anything you can do, even if it’s not 100% correct, would be appreciated. Either attach the XML into the issue (you need to surround it with xml at the beginning and at the end) or create a PR - either way I will review it.

If you’re unable to make the DB entry, then I’ll try and do it, but it will take longer to get it added as there are already quite a few requests…

fleischtorte commented 9 years ago

Hi Chris, ok I create in the future a issue for each device. I started with the Vision Contact sensor:

zd2102eu-5.xml:

<?xml version="1.0" encoding="utf-8"?>
<Product>
    <Model>ZD2102EU-5</Model>
    <Label lang="en">Door Window Sensor</Label>
    <Label lang="de">Tür-Fenster-Sensor</Label>
    <CommandClasses>
        <Class><id>0x20</id></Class>
        <Class><id>0x59</id></Class>
        <Class><id>0x70</id></Class>
        <Class><id>0x71</id></Class>
        <Class><id>0x72</id></Class>
        <Class><id>0x73</id></Class>
        <Class><id>0x80</id></Class>
        <Class><id>0x84</id></Class>
        <Class><id>0x85</id></Class>
        <Class><id>0x86</id></Class>
        <Class><id>0x5A</id></Class>
        <Class><id>0x5E</id></Class>
        <Class><id>0x7A</id></Class>
    </CommandClasses>

    <Associations>
        <Group>
            <Index>1</Index>
            <Maximum>5</Maximum>
            <Label lang="en">Control Command</Label>
            <Help lang="en"><![CDATA[Control Command when trip]]></Help>
        </Group>
    </Associations>
</Product>

the product part (idk if this is correct):

    <Product>
            <Reference>
                <Type>2001</Type>
                <Id>0102</Id>
            </Reference>
            <Reference>
                <Type>2001</Type>
                <Id>0105</Id>
            </Reference>
            <Model>ZD2102</Model>
            <Label lang="en">Door Window Sensor</Label>
            <Label lang="de">Tür-Fenster-Sensor</Label>
            <ConfigFile VersionMax=“3.9">vision/zd2102.xml</ConfigFile>
            <ConfigFile VersionMin=“3.9”>VersionMax="4.1">vision/zd2102-eu5.xml</ConfigFile>        
    </Product>

and there is the current binding xml:

<node>
  <deviceClass>
    <basicDeviceClass>ROUTING_SLAVE</basicDeviceClass>
    <genericDeviceClass>GARAGE_DOOR</genericDeviceClass>
    <specificDeviceClass>SIMPLE_GARAGE_DOOR</specificDeviceClass>
  </deviceClass>
  <homeId>0xe1bd0cf5</homeId>
  <nodeId>19</nodeId>
  <version>4</version>
  <manufacturer>0x109</manufacturer>
  <deviceId>0x105</deviceId>
  <deviceType>0x2001</deviceType>
  <listening>false</listening>
  <frequentlyListening>false</frequentlyListening>
  <routing>true</routing>
  <healState>DONE @ 2015-06-16T04:54:58+0000</healState>
  <supportedCommandClasses>
    <entry>
      <commandClass>WAKE_UP</commandClass>
      <WakeUpCommandClass>
        <version>2</version>
        <instances>1</instances>
        <targetNodeId>1</targetNodeId>
        <interval>3600</interval>
        <minInterval>600</minInterval>
        <maxInterval>604800</maxInterval>
        <defaultInterval>3600</defaultInterval>
        <intervalStep>200</intervalStep>
      </WakeUpCommandClass>
    </entry>
    <entry>
      <commandClass>CONFIGURATION</commandClass>
      <configurationCommandClass>
        <version>1</version>
        <instances>1</instances>
        <configParameters/>
      </configurationCommandClass>
    </entry>
    <entry>
      <commandClass>ASSOCIATION</commandClass>
      <associationCommandClass>
        <version>1</version>
        <instances>1</instances>
        <configAssociations>
          <entry>
            <int>1</int>
            <associationGroup>
              <Index>1</Index>
              <Nodes/>
            </associationGroup>
          </entry>
        </configAssociations>
        <maxGroups>1</maxGroups>
      </associationCommandClass>
    </entry>
    <entry>
      <commandClass>ALARM</commandClass>
      <alarmCommandClass>
        <version>1</version>
        <instances>1</instances>
        <alarms/>
        <isGetSupported>true</isGetSupported>
      </alarmCommandClass>
    </entry>
    <entry>
      <commandClass>NO_OPERATION</commandClass>
      <noOperationCommandClass>
        <version>1</version>
        <instances>1</instances>
      </noOperationCommandClass>
    </entry>
    <entry>
      <commandClass>BATTERY</commandClass>
      <batteryCommandClass>
        <version>1</version>
        <instances>1</instances>
        <batteryLevel>0</batteryLevel>
        <batteryLow>false</batteryLow>
        <isGetSupported>true</isGetSupported>
      </batteryCommandClass>
    </entry>
    <entry>
      <commandClass>BASIC</commandClass>
      <basicCommandClass>
        <version>1</version>
        <instances>1</instances>
        <isGetSupported>true</isGetSupported>
      </basicCommandClass>
    </entry>
    <entry>
      <commandClass>MANUFACTURER_SPECIFIC</commandClass>
      <manufacturerSpecificCommandClass>
        <version>1</version>
        <instances>1</instances>
      </manufacturerSpecificCommandClass>
    </entry>
    <entry>
      <commandClass>VERSION</commandClass>
      <versionCommandClass>
        <version>1</version>
        <instances>1</instances>
        <libraryType>LIB_SLAVE_ENHANCED</libraryType>
        <protocolVersion>12.5</protocolVersion>
        <applicationVersion>5.1</applicationVersion>
      </versionCommandClass>
    </entry>
  </supportedCommandClasses>
  <nodeNeighbors>
    <int>1</int>
    <int>8</int>
    <int>11</int>
    <int>12</int>
    <int>15</int>
  </nodeNeighbors>
  <lastSent>2015-06-16 04:54:52.902 UTC</lastSent>
  <lastReceived>2015-06-16 04:54:58.88 UTC</lastReceived>
  <applicationUpdateReceived>true</applicationUpdateReceived>
</node>

Thanks!

cdjackson commented 9 years ago

Hi, I don't think this will help. The device ID/Type is the same as in the database, and teh config file is the same, so really, there's nothing new here that will help.

Maybe the problem is with your binding strings, or maybe there's just something new that needs to be added to the software - I'm not sure, but I'm pretty sure that the database isn't the issue.

Can you post what your binding strings are please?

Chris

fleischtorte commented 9 years ago

Hi Chris,

the binding strings:

Contact Waschkeller_Fenster_Sensor  "Kellerfenster [MAP(de.map):%s]"    (gKE)       { zwave="19:command=sensor_binary,respond_to_basic=true" }
Number  Waschkeller_Fenster_Sensor_Batterie "Kellerfenster Batterie[%d %%]" <energy> (gKE)  { zwave="19:command=BATTERY" }

Unfortunately the batterylevel reports with 0%..

I already have a ZD2102 but with a different version and this one works properly.

Thanks!

cdjackson commented 9 years ago

I see that in OZW forum it looks like this device might need the security classes, which is a bit of a pain. I might need to get some devices to get this sorted...

fleischtorte commented 9 years ago

Hi Chris,

hmm bad news.. I have already two of this sensors (Gen5) and I plan to buy a few more. If you need some Debug-Logs or something to speedup the process please let me know.

Thanks! David

cdjackson commented 9 years ago

I might look at buying one, but the issue is that this now needs the security classes which have been a bit of a pain to include as there is no documentation and it’s very complex…

fleischtorte commented 9 years ago

Hi Chris,

since I use the current (1.8 Snapshot) zwave binding from the Cloudbee repo the sensors are working. But sometimes they report the batterylevel with 100% or with 0%?