I order to fix an issue I have added a custom XML file in the /domoticz/Config/[Manufacturer] directory for a Zwave device.
Next, I edited the manufacturer_specific.xml to include the info and path for my custom device (and removed the code for the file that is replaced by the custom file).
And I also deleted the "older" /domoticz/Config/[Manufacturer]/manufacturer.XML file that is replaced by my custom file.
Now the interesting part (for me anyway); including the ZWave device went very smooth. But to my surprise the device that Domoticz shows after the inclusion is the default "older" version. Inspecting the manufacturer_specific.xml shows that my changes in this file have been overwritten. (Actually a new file has replaced the my edited version of the manufacturer_specific.xml). Also the "older" manufacturer.XML file that I deleted from the /domoticz/Config/[Manufacturer] directory is copied back in this directory. Both changes have been done by user root.
So when including the device in the Zwave network a process was triggered that reversed my changes. This replaced my version of the manufacturer_specific.xml and placed the default file back in the /domoticz/Config/[Manufacturer] directory.
Is this expected behaviour and if yes, how can I stop this in order for Domoticz to use my version of the XML file?
Some additional details (probably not needed to answer my question)
The change concerns an Qubino Thermostat ZMNHIA1 model H1S1P1. The default version that is used in manufacturer_specific.xml (and by Domoticz) is named ZMNHIDx model H1S2P1. This model, and the associated XML file ZMNHIDxS2.xml, does not work for my model.
I received a custom XML file from another Domoticz user that has proven to work for my model.
I edited the manufacturer_specific.xml as below:
Removed lines
Code: Select all
<!--<Product type="0005" id="0051" name="ZMNHIDx Flush on/off thermostat (H1S1P1)" config="qubino/ZMNHIDxS1.xml"/>-->
<Product config="qubino/ZMNHIDxS2.xml" id="0051" name="ZMNHIDx Flush on/off thermostat (H1S2P1)" type="0005"/>
Code: Select all
<Product config="qubino/ZMNHID1.xml" id="0051" name="ZMNHID1 Flush on/off thermostat (H1S1P1)" type="0005"/>
And I deleted the the original XML files ZMNHIDxS2.xml and ZMNHIDxS1.xml.
(The ZMNHIDxS1.xml is not used, it is commented out in the manufacturer_specific.xml, see above, but I removed it anyway to avoid problems)
As said, after including the Qubino ZMNHID1 model H1S1P1 in the ZWave network, file ZMNHIDxS2.xml was back in the /domoticz/Config/qubino directory (owner root, all other xml files are owned by user pi). And the original manufacturer_specific.xml has replaced my version.
And Domoticz lists the device as ZMHIDx H1S2P1 while I need model ZMNHIA1 model H1S1P1.....