Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lock device class
#1
Dean,

In the online CQC documentation, there's a V2 Device Classes section. In there, there's a class called "Locks". I've developed a Raspberry Pi/ZWave based lock controller. I've written a driver for but I would like to convert the driver to a V2 driver. The other V2 drivers call a "helper" method in the RegisterFields method. Things like V2Help.GetPowerFlds and V2Help.GetDevInfoFlds. Is there a V2Help.GetLockFlds or GetLocksFlds helper method? If so, I can't seem to find it. Please point me to it. Also, is there a semantic type for Locks? Any help would be appreciated. Thanks.

Bryan
Reply
#2
I don't think there's one for locks. Mostly those helpers are for ones that are more tricky or that have more fields. Locks are pretty simple, just one field, so there isn't one.

The device class docs are here:

https://www.charmedquark.com/Web2/CQCDoc...=/Overview
Dean Roddey
Explorans limites defectum
Reply
#3
Once you have the driver going in the IDE, there's a main menu tool option to validate it. It will check any V2 classes that the driver manifest claims it supports and see if all of the fields are present and that they have the correct attributes.
Dean Roddey
Explorans limites defectum
Reply
#4
OK, I understand that there's only one field but how do I create a field called LOCK#AnyName? It loads and runs fine if the field name is LOCK-AnyName but never connects if it's LOCK#AnyName. I must be missing something.

Thanks.
Reply
#5
Have you marked the driver as V2 compliant and indicated it supports the lock device class in the manifest file? Check one of the Z-Wave driver manifests for an example if not.
Dean Roddey
Explorans limites defectum
Reply
#6
Yes, this is my manifest file. Does it look correct?

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE CQCCfgBig GrinriverCfg PUBLIC "urn:charmedquark.com:CQC-DrvManifest.DTD" "CQCDriverCfg.DTD">


<!-- =========================================================================
  - This is the driver manifest for Bryan's Lock Controller. It uses a Raspberry Pi running the Domoticz
  - Home Automation package and controls Z-Wave Smart Locks.
  - =========================================================================
  -->
<CQCCfgBig GrinriverCfg CQCCfg:ArchVer="2">

    <!-- Define the server driver config -->
    <CQCCfg:ServerCfg  CQCCfg:LibName="MEng.User.CQC.Drivers.Bryans.ZWave-Lock-Control.DriverImpl"
                        CQCCfgBig GrinrvType="Macro"/>

    <!-- Define the common driver config -->
    <CQCCfg:CommonCfg  CQCCfg:Author="Bryan Brademan"
                        CQCCfg:Contact="bryan@visual-av.com"
                        CQCCfgBig Grinescription="Supports the Raspberry Pi Lock Controller."
                        CQCCfgBig GrinevClasses="Lock"
                        CQCCfgBig GrinisplayName="Lock Controller"
                        CQCCfg:Category="Miscellaneous"
                        CQCCfg:Make="Bryans"
                        CQCCfg:Model="LockControl"
                        CQCCfg:Version="1.0"/>
    <!--
      - Prompt for the connection configuration.
      -->
    <CQCCfg:ConnCfg CQCCfg:Editable="True">
        <CQCCfg:IPConn CQCCfgTongueort="8080"
                      CQCCfg:AddrType="IPV4"
                      CQCCfg:SockProto="SockProto_TCP"/>
    </CQCCfg:ConnCfg>

    <CQCCfg:OtherCfg>
    </CQCCfg:OtherCfg>

</CQCCfgBig GrinriverCfg>
Reply
#7
That looks reasonable.
Dean Roddey
Explorans limites defectum
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is it possible to rename a moniker for a device? ghurty 2 233 04-23-2020, 02:41 PM
Last Post: znelbok
  Z-Wave Device List simplextech 2 453 02-01-2020, 07:24 AM
Last Post: simplextech
  Device Grouping simplextech 9 1,142 01-11-2020, 11:17 AM
Last Post: simplextech
  Z-Wave Device Support simplextech 6 935 01-06-2020, 02:24 PM
Last Post: simplextech
  Simple device control from Admin Interface simplextech 7 930 01-04-2020, 12:18 PM
Last Post: simplextech
  Zwave lock battery level indicator on Field Checkbox kfly 4 1,181 09-07-2019, 05:34 AM
Last Post: kfly
  Going from Zwave to Lutron, worth it and what to do about the lock? ghurty 6 1,558 12-29-2018, 10:55 AM
Last Post: dogman
  5.3.2 IsDeviceReady slow for non-existant device rbroders 10 2,533 10-04-2018, 04:17 PM
Last Post: Dean Roddey
  ISY994i Device Issues bigdude 8 2,688 05-22-2018, 07:29 PM
Last Post: bigdude
  What device model to put for a Jasco/GE switch? And a questions about V1/V2/V3. ghurty 1 1,090 05-16-2018, 09:06 PM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)