In OH there is both a Shelly binding and a zwave binding. I don’t know if the devices you have support both protocols. As to the OH Zwave I checked in the OpenSmartHouse - this is what the OH Zwave binding uses) and your devices are missing, although it might mean just adding the type:ID as there are devices that look close. here and here.
Lastly OH can be used with Z-wave-js (the other references, but it [requires a few more steps])(Zwave-JS-UI in place of OH Zwave binding). Since Zwave-js is used by the bigger HA community the DB of devices tends to be bigger.
Thanx for the suggestion.
Already have ZUI (zwave-js-ui) running as a docker. This can run instead of my OH docker to test/verify zwave setup.
In ZUI both devices are present, so this db has more devices.
And looks like the Shelly binding is for wifi devices.
Can the OH zwave binding not (re)use the ZUI db? Or have the OH zwave db generated from the same (source) devices as ZUI, so new devices are faster in the db?
HA has paid developers, OH does not. The OH Zwave developer has a full time job with lots of travel, so the main activity (See OH Zwave github) at this point is to merge user created devices (updates to OH Zwave DB are by the “community”) in the DB into the binding. I use both OH zwave and Zwave-js and have contributed devices to both. Neither is automatic (check out the Zwave-js issue tab on github for configs). Zwave-js can pull a draft from the OH Zwave DB, but not the other way around.
I fully agree.
Now getting all info for the how to.
So have to update the DB, export the xml and merge this into the jar, and update the jar of the docker image. The DB linked in the above manual do not exists anymore.
I updated the binding update to reflect OH3/4 here.
the ZW DB has been hit with DoS, so the developer created another way here.
Also I think you can just add the modified Zwave jar to the addons folder (assuming you created a volume for it) EDIT: Note Uninstall the Zwave binding from the UI first.
After some experimenting and using existing xml files as templates and combining them with generated xml file, I have my two (new) devices as known devices in my things list.
Used docker cp to update/replace the jar in my local docker container, and after a container restart, they showed up.
Copy the jar to your local file system docker cp openhab:/openhab/userdata/tmp/mvn/org/openhab/addons/bundles/org.openhab.binding.zwave/4.3.0.M4/. .
and update/add your xml files in the jar file (effectively a zip file) to the existing (archive/zip) folder(s) OH-INF\thing\[manufacturer]\ for my Shelly devices OH-INF\thing\shelly\.
Can ask for a review, though I still wants to test it a little more…
Also in progress of adding the Wave 1PM mini [OpenSmartHouse Z-Wave Device Database], though the endpoints as manually created using an xml file did not go correctly. So these do not match the Wave 1PM (non-mini) [OpenSmartHouse Z-Wave Device Database].
Because the endpoints command classes cannot be added manually, some needs to alter the DB tables manually, or update the endpoints page…
No worries. Sometimes people forget that step and the device is delayed (updates have been running 2-3 weeks apart).
As to the other device, I’m not sure I understand. What exactly is missing?
Also was wondering if, after you marked up an XML for the binding to discover the device, did OH generate an XML in the zwave folder? The OH generated XML has the “NIF info” that the ZW DB needs to set the Command classes and endpoints.
Openhab did not generate an XML for the second (new) 1PM mini device. So tried to assemble one manually using the 1PM (non-mini), but this resulted in an error while creating the device, but still a device was created. This endpoints did not match the 1PM (non-mini)…
But you can compare the endpoints of both 1PM s. You see for the 1PM mini:
I wondered with your doctored binding XML whether the binding would still get hung-up on the Multi_Channel CC and not be able to create the OH zwave node XML (This is used as a storage record for restarts, etc.).
At a high level how, it works; At any startup the binding requests a NIF and the device sends back all the CC’s supported. The binding then proceeds to interview each CC. The device is always going to send the Multi_Channel CC and the binding will always try to interview it.
If you have a 1PM (non-mini) you could create a device from that OH zwave node XML to create a mini XML with the desired CCs for the ZW DB, but my guess is that once the mini sends its “Real” NIF the binding will get hung-up (the reason for my question). It might mostly work (it sounds like you have it working) with your doctored binding XML, but will not produce the OH zwave node XML. Without that I don’t think OH will consider the device fully configured and I’d anticipate other problems (Not able to Heal, etc.).
I’m thinking that a programming hack is needed to temporary allow the bypass of the Multi_Channel CC if versions higher that V2.