Z-UNO send data without MultiChannelNodes parameter

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
martin.b
Posts: 1
Joined: 01 Jun 2023 21:03

Z-UNO send data without MultiChannelNodes parameter

Post by martin.b »

Hi,

I´m using Z-uno with Homey pro 2023. For simple data reading I need to get rid of MultiChannelNodes parameter.
Its possible to send data without MultiChannelNodes parameter?

Also for some reason Z-uno send two times temperature data - one with MultiChannelNodes id and one without.

Code: Select all

node.CommandClass['COMMAND_CLASS_SENSOR_MULTILEVEL'].on('report') arguments: [     
  { value: 5, name: 'SENSOR_MULTILEVEL_REPORT' },
  {
    'Sensor Type (Raw)': <Buffer 01>,
    'Sensor Type': 'Temperature (version 1)',
    'Level (Raw)': <Buffer 42>,
    Level: { Size: 2, Scale: 0, Precision: 2 },
    'Sensor Value (Raw)': <Buffer 09 24>,
    'Sensor Value': <Buffer 09 24>,
    'Sensor Value (Parsed)': 23.4
  },
  42
]
node.MultiChannelNodes['1'].CommandClass['COMMAND_CLASS_SENSOR_MULTILEVEL'].on('report') arguments: [
  { value: 5, name: 'SENSOR_MULTILEVEL_REPORT' },
  {
    'Sensor Type (Raw)': <Buffer 01>,
    'Sensor Type': 'Temperature (version 1)',
    'Level (Raw)': <Buffer 42>,
    Level: { Size: 2, Scale: 0, Precision: 2 },
    'Sensor Value (Raw)': <Buffer 09 24>,
    'Sensor Value': <Buffer 09 24>,
    'Sensor Value (Parsed)': 23.4
  },
  42
]
node.MultiChannelNodes['2'].CommandClass['COMMAND_CLASS_SENSOR_MULTILEVEL'].on('report') arguments: [
  { value: 5, name: 'SENSOR_MULTILEVEL_REPORT' },
  {
    'Sensor Type (Raw)': <Buffer 05>,
    'Sensor Type': 'Relative humidity (version 2)',
    'Level (Raw)': <Buffer 01>,
    Level: { Size: 1, Scale: 0, Precision: 0 },
    'Sensor Value (Raw)': <Buffer 2e>,
    'Sensor Value': <Buffer 2e>,
    'Sensor Value (Parsed)': 46
  },
  42
]
node.MultiChannelNodes['3'].CommandClass['COMMAND_CLASS_SENSOR_MULTILEVEL'].on('report') arguments: [
  { value: 5, name: 'SENSOR_MULTILEVEL_REPORT' },
  {
    'Sensor Type (Raw)': <Buffer 09>,
    'Sensor Type': 'Barometric pressure (version 2) ',
    'Level (Raw)': <Buffer 42>,
    Level: { Size: 2, Scale: 0, Precision: 2 },
    'Sensor Value (Raw)': <Buffer 27 11>,
    'Sensor Value': <Buffer 27 11>,
    'Sensor Value (Parsed)': 100.01
  },
  42
]
node.MultiChannelNodes['4'].CommandClass['COMMAND_CLASS_SENSOR_MULTILEVEL'].on('report') arguments: [
  { value: 5, name: 'SENSOR_MULTILEVEL_REPORT' },
  {
    'Sensor Type (Raw)': <Buffer 11>,
    'Sensor Type': 'CO2-level (version 3)',
    'Level (Raw)': <Buffer 02>,
    Level: { Size: 2, Scale: 0, Precision: 0 },
    'Sensor Value (Raw)': <Buffer 01 ac>,
    'Sensor Value': <Buffer 01 ac>,
    'Sensor Value (Parsed)': 428
  },
  42
]
node.MultiChannelNodes['5'].CommandClass['COMMAND_CLASS_SENSOR_MULTILEVEL'].on('report') arguments: [
  { value: 5, name: 'SENSOR_MULTILEVEL_REPORT' },
  {
    'Sensor Type (Raw)': <Buffer 27>,
    'Sensor Type': 'Volatile Organic Compound (v7)',
    'Level (Raw)': <Buffer 0a>,
    Level: { Size: 2, Scale: 1, Precision: 0 },
    'Sensor Value (Raw)': <Buffer 00 04>,
    'Sensor Value': <Buffer 00 04>,
    'Sensor Value (Parsed)': 4
  },
  42
]
Arduino code (just important parts):

Code: Select all

***********

ZUNO_SETUP_CHANNELS(
  ZUNO_SENSOR_MULTILEVEL(ZUNO_SENSOR_MULTILEVEL_TYPE_TEMPERATURE, SENSOR_MULTILEVEL_SCALE_CELSIUS, SENSOR_MULTILEVEL_SIZE_TWO_BYTES, SENSOR_MULTILEVEL_PRECISION_TWO_DECIMALS, getterTemp),
  ZUNO_SENSOR_MULTILEVEL(ZUNO_SENSOR_MULTILEVEL_TYPE_RELATIVE_HUMIDITY, SENSOR_MULTILEVEL_SCALE_PERCENTAGE_VALUE, SENSOR_MULTILEVEL_SIZE_ONE_BYTE, SENSOR_MULTILEVEL_PRECISION_ZERO_DECIMALS, getterHumid),
  ZUNO_SENSOR_MULTILEVEL(ZUNO_SENSOR_MULTILEVEL_TYPE_BAROMETRIC_PRESSURE, SENSOR_MULTILEVEL_SCALE_KILOPASCAL, SENSOR_MULTILEVEL_SIZE_TWO_BYTES, SENSOR_MULTILEVEL_PRECISION_TWO_DECIMALS, getter_pressure),
  ZUNO_SENSOR_MULTILEVEL(ZUNO_SENSOR_MULTILEVEL_TYPE_CO2_LEVEL, SENSOR_MULTILEVEL_SCALE_PARTS_PER_MILLION, SENSOR_MULTILEVEL_SIZE_TWO_BYTES, SENSOR_MULTILEVEL_PRECISION_ZERO_DECIMALS, CO2_getter),
  ZUNO_SENSOR_MULTILEVEL(0x27, 0x01, SENSOR_MULTILEVEL_SIZE_TWO_BYTES, SENSOR_MULTILEVEL_PRECISION_ZERO_DECIMALS, VOC_getter)
);

**************

void loop() {
  ***********************
  zunoSendReport(1);
  zunoSendReport(2);
  zunoSendReport(3);
  zunoSendReport(4);
  zunoSendReport(5);
  Serial.print("send(): success\n");
  delay(120000);
}

int getterTemp(void) {
  return temp;
}

byte getterHumid(void) {
  return hmdy;
}

int32_t getter_pressure(void) {
  return barmPrsr;
}

int CO2_getter(void)
{
  return CO2_int;
}

int VOC_getter(void)
{
  return VOC_int;
}
Thanks.
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: Z-UNO send data without MultiChannelNodes parameter

Post by PoltoS »

Remove the MultiChannel association to 1:0 and keep only simple to node 1. This will disable MultiChannel encapsulated reports. But this will work only for the first channel. Other channels will not report at all. You are better to ask Homey to fix it and support multiple channels - this is the Z-Wave way to report sensors values
Post Reply