multiple ZUNO_SENSOR_MULTILEVEL_TYPE_MOISTURE

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
brakc
Posts: 3
Joined: 21 May 2018 14:46

multiple ZUNO_SENSOR_MULTILEVEL_TYPE_MOISTURE

Post by brakc »

Hello,

I use Domoticz and I have 3 moisture probes on Z-Uno.
I have have a problem for pair my 3 devices on Domoticz

I test with 3 channels ZUNO_SENSOR_MULTILEVEL_TYPE_TEMPERATURE and it's work fine (3 devices paired)
http://fritzing.org/media/fritzing-repo ... s18b20.ino

But when I test with ZUNO_SENSOR_MULTILEVEL_TYPE_MOISTURE, only one device is paired
Can you help me please? I do not understand this case ...

My script:

Code: Select all

int number_of_sensors = 3;
word result[3];                 // Here we store probe sensors

// Define Z-Wave channels.
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, getter1),
        //ZUNO_SENSOR_MULTILEVEL(ZUNO_SENSOR_MULTILEVEL_TYPE_TEMPERATURE, SENSOR_MULTILEVEL_SCALE_CELSIUS, SENSOR_MULTILEVEL_SIZE_TWO_BYTES, SENSOR_MULTILEVEL_PRECISION_TWO_DECIMALS, getter2),
        //ZUNO_SENSOR_MULTILEVEL(ZUNO_SENSOR_MULTILEVEL_TYPE_TEMPERATURE, SENSOR_MULTILEVEL_SCALE_CELSIUS, SENSOR_MULTILEVEL_SIZE_TWO_BYTES, SENSOR_MULTILEVEL_PRECISION_TWO_DECIMALS, getter3)

        ZUNO_SENSOR_MULTILEVEL(ZUNO_SENSOR_MULTILEVEL_TYPE_MOISTURE, SENSOR_MULTILEVEL_SCALE_PERCENTAGE_VALUE, SENSOR_MULTILEVEL_SIZE_ONE_BYTE, SENSOR_MULTILEVEL_PRECISION_ZERO_DECIMALS, getter1),
        ZUNO_SENSOR_MULTILEVEL(ZUNO_SENSOR_MULTILEVEL_TYPE_MOISTURE, SENSOR_MULTILEVEL_SCALE_PERCENTAGE_VALUE, SENSOR_MULTILEVEL_SIZE_ONE_BYTE, SENSOR_MULTILEVEL_PRECISION_ZERO_DECIMALS, getter2),
        ZUNO_SENSOR_MULTILEVEL(ZUNO_SENSOR_MULTILEVEL_TYPE_MOISTURE, SENSOR_MULTILEVEL_SCALE_PERCENTAGE_VALUE, SENSOR_MULTILEVEL_SIZE_ONE_BYTE, SENSOR_MULTILEVEL_PRECISION_ZERO_DECIMALS, getter3)
);

void setup() {

}

void loop() {
  for (byte i = 0; i < number_of_sensors; i++) {
    // Read temperature
    result[i] = analogRead(3+i);
    
    // Sending report
    zunoSendReport(i + 1); // Channels starts from 1
  }
  delay(30000);
}

// Getters. Add more if you need more sensors
word getter1() {
  return result[1];
}

word getter2() {
  return result[2];
}

word getter3() {
  return result[3];
}
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: multiple ZUNO_SENSOR_MULTILEVEL_TYPE_MOISTURE

Post by PoltoS »

This looks to be Domoticz problem, not Z-Uno
brakc
Posts: 3
Joined: 21 May 2018 14:46

Re: multiple ZUNO_SENSOR_MULTILEVEL_TYPE_MOISTURE

Post by brakc »

PoltoS wrote:
23 May 2018 00:12
This looks to be Domoticz problem, not Z-Uno
Thank you for your response. I post in Domoticz forum and and I make you a return.
Post Reply