The rest of the tkb_tz66d_0_0.xml seems OK, except the fact that no DB record for TZ76 exists.
So my question is how to add K2 and K3 to the Channel definition?
However my question is still valid but I can ask differently: is there a place where I can read how to write a device xml properly as I’d like to avoid doing it wrongly?
In the above example the device has 3 input switches but only 1 load relay so I’m not really sure how to describe K1, K2, K3 channels.
TZ76 is also a good example of a device which is different than the binding discovery. Its auto generated node xml has the following Type:id:
The format of the XML is in the ESH documentation, but it doesn’t document the ZWave specific stuff. I prefer to avoid editing these files manually - it’s better to edit the database directly as we can then directly export the different file versions used in the different bindings (currently there are 3 different versions of these files!).
The number of loads etc is normally irrelevant - the device will expose a number of command classes and we can “attach” channels to these command classes. Normally, if you upload the XML file that OH creates automatically to the database, it will create these channels linked to the functionality the device provides. If there’s no load, then it doesn’t really matter - it’s still just a switch…
I hope this helps and I hope I’ve understood correctly your issue .
I tried to create a new device record for TZ76 but I received the below Warning:
Warning
Device with these IDs is already in the database as TKB Home, TZ66D and endpoints are already defined.
Hi
In this case the device is already in the database. Are you using the latest snapshot?
The other option is the device ids have been added to another device that is the same or almost the same. The database should direct you to this when you upload the xml.
TZ66D exists since OH1.x in the database. It’s also available in the OH2 binding.
Anyway TZ76 looks as follow:
Maybe your guess “the device ids have been added to another device” is valid but I’m not 100% sure as I cannot check TZ66D. Or maybe there are 2 different devices with the same IDs.
Updating an existing (TZ66D) device with additional data (for TZ76) may cause the first one to stop operate normally.
How do you usually decide on such situations?
Your device IDs are definately in the database against the TZ66. From what I can tell, the TZ66 has multiple channels (your wiring diagram isn’t really relevant to the logical operation of the device I guess).
I don’t see a manual for the TZ66, but it looks like @marcel_verpaalen uploaded the original database entry so maybe he can comment to at least confirm how this device operates.
Maybe someone can also upload the TZ66 manual to the database so we can compare it with the TZ76.
If the manufacturer has used the same device IDs for multiple devices, then that’s a problem - it’s not allowed for Z-Wave certification, so they shouldn’t have done this (although that doesn’t mean they didn’t as we do see this occasionally). We can see if the firmware versions are the same - if not we can use this to differentiate the devices. If everything is the same, then the job gets harder