Z-UNO - Moisture probes

For Z-Wave related questions in Domoticz

Moderator: leecollings

Post Reply
brakc
Posts: 28
Joined: Friday 13 March 2015 12:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Z-UNO - Moisture probes

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];
}
Probably problem is in Domoticz? https://forum.z-wave.me/viewtopic.php?f ... 175#p76175

Thank you for your help.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest