Hi again,
I have been checking the Z-Uno XML definition in the database (reference 494). It is in the next link:
http://www.cd-jackson.com/index.php/zwave/zwave-device-database/zwave-device-list/devicesummary/494#
In the definition there are errors that are the next:
Device definition contains errors
- Command Class “SENSOR_MULTILEVEL” in endpoint 0 is duplicated!
- Channel in endpoint 0 uses an unsupported channel (temperature)!
- Channel in endpoint 3 uses an unsupported channel (temperature)!
- Channel in endpoint 22 command class SWITCH_BINARY has no name!
- Channel in endpoint 22 uses an unsupported channel ()!
I am quite sure that the content in “Channels” tag should be as follows in order to accomplish the description of the XML file:
<channel id="switch_binary" typeId="switch_binary">
<label>Switch</label>
<properties>
<property name="binding:*:OnOffType">SWITCH_BINARY,BASIC</property>
</properties>
</channel>
<channel id="switch_dimmer" typeId="switch_dimmer">
<label>Dimmer</label>
<properties>
<property name="binding:*:DecimalType">SWITCH_MULTILEVEL</property>
</properties>
</channel>
<channel id="sensor_temperature" typeId="sensor_temperature">
<label>Sensor (temperature)</label>
<properties>
<property name="binding:*:DecimalType">SENSOR_MULTILEVEL;type=TEMPERATURE</property>
</properties>
</channel>
<channel id="sensor_binary" typeId="sensor_binary">
<label>Door Sensor</label>
<properties>
<property name="binding:*:OnOffType">SENSOR_BINARY,BASIC</property>
</properties>
</channel>
With this XML definition, a Z-Uno sketch with this channel definition should work:
ZUNO_SETUP_CHANNELS
(
ZUNO_SWITCH_BINARY ( getBinary , setBinary)
,ZUNO_SWITCH_MULTILEVEL ( getDimmer , setDimmer)
,ZUNO_SENSOR_MULTILEVEL ( ZUNO_SENSOR_MULTILEVEL_TYPE_TEMPERATURE , SENSOR_MULTILEVEL_SCALE_CELSIUS , getTemperature )
,ZUNO_SENSOR_BINARY_DOOR_WINDOW ( getDoor )
);
I have read, and I understand, that as each sketch is different is not possible to have every existing channel combinations in the database.
But as there is a Z-Uno definition in the database and its definition is wrong, I think that fixing it could be good for everybody and at least we will be able to test some sketches in Z-Uno with this 4 channels configured.
In fact, maybe the best way could be to create an Z-Uno XML with one of each available channels (9 if I am not wrong). This way, everybody could develop modules with this channel definition and use the channel more appropiated for his sketch.
Do you thing some of these two options could be possible, @chris?
Regards.