Closed jaburges closed 4 years ago
Thank you so much for this 🙏🏻
On 29 Feb 2020, at 05:03, jaburges notifications@github.com wrote:
Hi there, hopefully of use to others when using custom device.xml. A few things needed, most importantly mapping the correct folder in the zwave2mqtt docker.
map this location /usr/local/etc/openzwave/ to a local folder. your docker command will be something like this: docker run --name=zwave2mqtt --restart=always -it -p 8091:8091 --device=/dev/serial/by-id/usb-0658_0200-if00 -e TZ=America/Los_Angeles -v /home/user/docker/zwave2mqtt16:/usr/src/app/store -v /home/user/docker/zwave2mqtt16/config:/usr/local/etc/openzwave robertslando/zwave2mqtt:2.2.0 Clone the OZW rep and copy ALL the files from the OZW config folder into the local config folder you mapped above. When the docker starts the new files will be loaded into the container (and it is persistent now so changes will remain) PLUS its also easier to edit if needed.
You will need to edit a couple more things. The list of devices OZW uses to identify what is what called manufacturer_specific.xml and the device.xml itself. Part 1: Firstly edit the device xml you want to add simply by ammending the revision number at the top to a very high number (which prevents it from being over written when OZW 1.6 queries for updates. If your device eventually gets an official release, you can change/update later. Top line:
Product Revision="999" Then move the device.xml to where it needs to be. In my case the Inovelli lzn31.xml device into the innovelli folder inside the config directory: config inovelli lzn31.xml
Part 2: Now finally, you need to tell OZW it exists, and how to identify it (note you'll sometimes see device types show up as unknown id=0004 type=0001. Edit the manufacturer_specific.xml to include the device id and type or the zwave device you want to be identified like so: [Be sure to check for the right Manufacturer block to simply add your device within]
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
I also add a link to this guide: https://github.com/robertsLando/Zwave2Mqtt-docker#auto-update-ozw-device-database
@robertsLando in the 3.0.0 I confirmed your guide works. Closing this for your persistent guide.
@jaburges Thanks for the feedback!
Hi there, hopefully of use to others when using custom device.xml. A few things needed, most importantly mapping the correct folder in the zwave2mqtt docker.
map this location
/usr/local/etc/openzwave/
to a local folder. your docker command will be something like this:Clone the OZW rep and copy ALL the files from the OZW config folder into the local config folder you mapped above. When the docker starts the new files will be loaded into the container (and it is persistent now so changes will remain) PLUS its also easier to edit if needed.
You will need to edit a couple more things. The list of devices OZW uses to identify what is what called
manufacturer_specific.xml
and the device.xml itself. Part 1: Firstly edit the device xml you want to add simply by ammending the revision number at the top to a very high number (which prevents it from being over written when OZW 1.6 queries for updates. If your device eventually gets an official release, you can change/update later. Top line:Then move the device.xml to where it needs to be. In my case the Inovelli lzn31.xml device into the
innovelli
folder inside the config directory: config inovelli lzn31.xmlPart 2: Now finally, you need to tell OZW it exists, and how to identify it (note you'll sometimes see device types show up as
unknown id=0004 type=0001
. Edit themanufacturer_specific.xml
to include the device id and type or the zwave device you want to be identified like so: [Be sure to check for the right Manufacturer block to simply add your device within]