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

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.

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:
Dean Roddey
Explorans limites defectum
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
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.

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
Yes, this is my manifest file. Does it look correct?

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE CQCCfgBig GrinriverCfg PUBLIC "" "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"
                        CQCCfgBig Grinescription="Supports the Raspberry Pi Lock Controller."
                        CQCCfgBig GrinevClasses="Lock"
                        CQCCfgBig GrinisplayName="Lock Controller"
      - Prompt for the connection configuration.
    <CQCCfg:ConnCfg CQCCfg:Editable="True">
        <CQCCfg:IPConn CQCCfgTongueort="8080"


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Zwave lock BE469 and new BE469ZP kfly 1 455 01-30-2022, 08:21 AM
Last Post: Dean Roddey
  Is it possible to rename a moniker for a device? ghurty 2 984 04-23-2020, 02:41 PM
Last Post: znelbok
  Z-Wave Device List simplextech 2 1,434 02-01-2020, 07:24 AM
Last Post: simplextech
  Device Grouping simplextech 9 3,375 01-11-2020, 11:17 AM
Last Post: simplextech
  Z-Wave Device Support simplextech 6 3,030 01-06-2020, 02:24 PM
Last Post: simplextech
  Simple device control from Admin Interface simplextech 7 3,288 01-04-2020, 12:18 PM
Last Post: simplextech
  Zwave lock battery level indicator on Field Checkbox kfly 4 3,408 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 3,174 12-29-2018, 10:55 AM
Last Post: dogman
  5.3.2 IsDeviceReady slow for non-existant device rbroders 10 4,511 10-04-2018, 04:17 PM
Last Post: Dean Roddey
  ISY994i Device Issues bigdude 8 4,241 05-22-2018, 07:29 PM
Last Post: bigdude

Forum Jump:

Users browsing this thread: 1 Guest(s)