openhab / openhab1-addons

Add-ons for openHAB 1.x
Eclipse Public License 2.0
3.43k stars 1.7k forks source link

Adding Qubino ZMNHID1 to products database #4422

Open dirandad opened 8 years ago

dirandad commented 8 years ago

Hello,

Is-it possible to add Qubino ZMNHID (Flush on/off thermostat) v1.1 to the database. (For information a v1.2 is existing with more parameters) When adding to openhab, it gives : Manufactor : 159 ID 51 Type 5 Version : 4

I have create a draft xml file based from existing ZMNHIA product. The new ZMNHID is zwave+ version, and seems to have new functiunalities, parameters, endpoints and Command class.

ZMNHID.zip

Group and parameters sections should be well completed for v1.1

I don't know how to complete the command class id section of the xml file. Can any one complete it or explain how to do it ?

Here is the Command_Class and endpoint description extract from user manual :

Z-Wave Device Class: ZWAVEPLUS_INFO_REPORT_ROLE_TYPE_SLAVE_ALWAYS_ON GENERIC_TYPE_THERMOSTAT SPECIFIC_TYPE_THERMOSTAT_GENERAL_V2 Z-Wave supported Command Classes COMMAND_CLASS_ZWAVEPLUS_INFO_V2 COMMAND_CLASS_VERSION_V2 COMMAND_CLASS_MANUFACTURER_SPECIFIC_V2 COMMAND_CLASS_DEVICE_RESET_LOCALLY COMMAND_CLASS_POWERLEVEL COMMAND_CLASS_BASIC COMMAND_CLASS_SWITCH_ALL COMMAND_CLASS_SENSOR_BINARY COMMAND_CLASS_THERMOSTAT_MODE_V2 COMMAND_CLASS_THERMOSTAT_SETPOINT_V2 COMMAND_CLASS_NOTIFICATION_V5 COMMAND_CLASS_METER_V4 COMMAND_CLASS_SENSOR_MULTILEVEL_V7 COMMAND_CLASS_MULTI_CHANNEL_V4 COMMAND_CLASS_ASSOCIATION_V2 COMMAND_CLASS_MULTI_CHANNEL_ASSOCIATION_V3 COMMAND_CLASS_ASSOCIATION_GRP_INFO_V2 COMMAND_CLASS_CONFIGURATION_V2

COMMAND_CLASS_MARK COMMAND_CLASS_BASIC Endpoint1 Device Class: GENERIC_TYPE_THERMOSTAT SPECIFIC_TYPE_THERMOSTAT_GENERAL_V2 Command Classes: COMMAND_CLASS_ZWAVEPLUS_INFO_V2 COMMAND_CLASS_VERSION_V2 COMMAND_CLASS_BASIC_V2 COMMAND_CLASS_SWITCH_ALL COMMAND_CLASS_THERMOSTAT_MODE_V2 COMMAND_CLASS_THERMOSTAT_SETPOINT_V2 COMMAND_CLASS_METER_V4 COMMAND_CLASS_ASSOCIATION_V2 COMMAND_CLASS_MULTI_CHANNEL_ASSOCIATION_V3 COMMAND_CLASS_ASSOCIATION_GRP_INFO COMMAND_CLASS_MARK COMMAND_CLASS_BASIC Endpoint 2 (I1): Device Class: GENERIC_TYPE_SENSOR_BINARY SPECIFIC_TYPE_NOT_USED Command Classes: COMMAND_CLASS_ZWAVEPLUS_INFO_V2 COMMAND_CLASS_VERSION_V2 COMMAND_CLASS_BASIC_V2 COMMAND_CLASS_SENSOR_BINARY COMMAND_CLASS_NOTIFICATION_V5 COMMAND_CLASS_ASSOCIATION_V2 COMMAND_CLASS_MULTI_CHANNEL_ASSOCIATION_V3 COMMAND_CLASS_ASSOCIATION_GRP_INFO COMMAND_CLASS_MARK COMMAND_CLASS_BASIC_V2 Endpoint 3 (I2): Device Class: GENERIC_TYPE_SENSOR_BINARY SPECIFIC_TYPE_NOT_USED Command Classes: COMMAND_CLASS_ZWAVEPLUS_INFO_V2 COMMAND_CLASS_VERSION_V2 COMMAND_CLASS_BASIC_V2 COMMAND_CLASS_SENSOR_BINARY COMMAND_CLASS_NOTIFICATION_V5 COMMAND_CLASS_ASSOCIATION_V2 COMMAND_CLASS_MULTI_CHANNEL_ASSOCIATION_V3 COMMAND_CLASS_ASSOCIATION_GRP_INFO COMMAND_CLASS_MARK COMMAND_CLASS_BASIC_V2 Endpoint 4 (I3): Device Class: GENERIC_TYPE_SENSOR_BINARY SPECIFIC_TYPE_NOT_USED Command Classes: COMMAND_CLASS_ZWAVEPLUS_INFO_V2 COMMAND_CLASS_VERSION_V2 COMMAND_CLASS_BASIC_V2 COMMAND_CLASS_SENSOR_BINARY COMMAND_CLASS_NOTIFICATION_V5 COMMAND_CLASS_ASSOCIATION_V2 COMMAND_CLASS_MULTI_CHANNEL_ASSOCIATION_V3 COMMAND_CLASS_ASSOCIATION_GRP_INFO COMMAND_CLASS_MARK COMMAND_CLASS_BASIC_V2 Endpoint 5 (SENSOR MULTILEVEL): Device Class: GENERIC_TYPE_SENSOR_MULTILEVEL SPECIFIC_TYPE_ROUTING_SENSOR_MULTILEVEL Command Classes: COMMAND_CLASS_ZWAVEPLUS_INFO_V2 COMMAND_CLASS_VERSION_V2 COMMAND_CLASS_SENSOR_MULTILEVEL_V7 COMMAND_CLASS_ASSOCIATION_V2 COMMAND_CLASS_MULTI_CHANNEL_ASSOCIATION_V3 COMMAND_CLASS_ASSOCIATION_GRP_INFO COMMAND_CLASS_BASIC

cdjackson commented 8 years ago

Does OH create an XML file for this device? If so, we need to use this to load to the database to create this information.

I’ve created the outline of the database entry here -:

http://www.cd-jackson.com/index.php/zwave/zwave-device-database/zwave-device-list/devicesummary/358 http://www.cd-jackson.com/index.php/zwave/zwave-device-database/zwave-device-list/devicesummary/358

:- if you have the OH generated XML then we can load it here, and if the config is the same as the HIA then we can simply copy this configuration over using the database.

dirandad commented 8 years ago

No, OH does not create node20.xml file in /var/lib/openhab/zwave

Here is what I see in habmin

image

cdjackson commented 8 years ago

Can you provide a debug log so we can find out why it doesn’t complete initialisation?

dirandad commented 8 years ago

Hello Chris,

I finally achieve to include corretly the device and get OH generating the node.xml file.

Attached is the file

node27.zip

Thank you for your help.

If I can provide additionnal help to add this device to the database, just ask.

Adrien

cdjackson commented 8 years ago

Thanks. I’ve loaded the XML, copied the config from the ZMNHIA and uploaded the manual, so we should be good to go. Can I ask you to take a look over the database and just double check that the config parameters are consistent with the manual?

http://www.cd-jackson.com/index.php/zwave/zwave-device-database/zwave-device-list/devicesummary/358 http://www.cd-jackson.com/index.php/zwave/zwave-device-database/zwave-device-list/devicesummary/358

dirandad commented 8 years ago

Hello,

Do you think it is possible to use the file I have generate in the first post ? It include the good parameters. There is indeed some differences from ZMNHIA. Concerning Command_Class, ZMNHID is also difference ZMNHIA as it is a zwave+ version. I have give in the first post the command class of ZMNHIA. Thank you Adrien

cdjackson commented 8 years ago

Do you think it is possible to use the file I have generate in the first post ? It include the good parameters.

Not very easily - I’d need to type this all in by hand as the database can’t import the OH2 files - it’s designed to export them.

There is indeed some differences from ZMNHIA. Concerning Command_Class, ZMNHID is also difference ZMNHIA as it is a zwave+ version. I have give in the first post the command class of ZMNHIA.

Ah - I thought that the XML file you sent me earlier tonight was for the ZMNHID? Is that not the case?

dirandad commented 8 years ago

Hello,

Yes, the node.xml file is the ZMNHID one. So Command_Class are the good one ? (sorry, I'm not zwave et OH expert)

So how to update parameters and config for ZMNHID ?

Adrien

cdjackson commented 8 years ago

The command classes should have been ok if the XML was ok, but looking at it and comparing with the information in the manual, it looks incorrect. The XML file has no multi instance class, so there are no endpoints and this is clearly wrong. I don’t know why this is detected like that.

For the parameters, I can actually use the file you sent - I thought earlier it was for OH2, but it’s an OH1 compatible file, so this is ok. I’ll need to look at this tomorrow though.

dirandad commented 8 years ago

Hello,

I have try to exclude and reinclude le device, but I stay with the same xml file.

Reading the manual, there is some parameters (100, 101, 102) that can enable/disable endpoint 2, 3 et 4 and change role of these ends points. May be this is linked ? But il should have at least 2 endpoints since parameters don't change endpoint 1 and 4 status...

Can i do somethings to help you ?

Adrien

dirandad commented 7 years ago

Hello, I'm trying again to use this device (ZMNHID). Today I try with an uptodate openhabian installation with openhab2. When including the device, it is well reconize, but I have only 4 channels in the things :

It seems that it miss some channel like Thermosat Setpoint because I cannot change the set point of my device...

Any idea ?

thank you

cdjackson commented 7 years ago

If this is missing channels, then please take a look at the database on cd-jackson.com. If possible, please look at contributing directly there. The setpoint channel appears to be configured in the database at least.

t might also be a good idea to discuss this on the help forum where more people will be available to help.