Z-Uno Sensor Binary and Fibaro HC2 not working properly

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
vlad27
Posts: 1
Joined: 04 Oct 2019 11:37

Z-Uno Sensor Binary and Fibaro HC2 not working properly

Post by vlad27 » 04 Oct 2019 11:41

Hello. I want to make a 2 channel motion sensor by Z-Uno, but when I added Z-Uno to my controller I saw only 1 device, if I add directive “ZUNO_DISABLE(NO_MULTIBINARY_SWITCH0);” I saw 3 devices, but working only 1. Code generated by your online creator, with my serial “debugging”. In serial console I saw, how triggered one and second sensor, but on controller saw only one. I also tried to change parameter 12 to 1, but nothing happened.

Z-Uno bootloader version: 2.1.5
Security: none
Frequency: EU
Device included: yes
Device included securely by controller: no
Controller: Fibaro HC2 fw 4.560

Code:

Code: Select all

byte pin5SensorBinaryState;
byte pin6SensorBinaryState;

ZUNO_DISABLE(NO_MULTIBINARY_SWITCH0);

ZUNO_SETUP_CHANNELS(
  ZUNO_SENSOR_BINARY(ZUNO_SENSOR_BINARY_TYPE_GENERAL_PURPOSE, pin5SensorBinaryGetter),
  ZUNO_SENSOR_BINARY(ZUNO_SENSOR_BINARY_TYPE_GENERAL_PURPOSE, pin6SensorBinaryGetter)
);

void setup() {
  pinMode(5, INPUT);
  pin5SensorBinaryState = !digitalRead(5);

  pinMode(6, INPUT);
  pin6SensorBinaryState = !digitalRead(6);

  Serial.begin(9600);
}

void loop() {
  byte _pin5SensorBinaryState = digitalRead(5);
  if (pin5SensorBinaryState != _pin5SensorBinaryState) {
    pin5SensorBinaryState = _pin5SensorBinaryState;
    Serial.println("Input 1 triggered");
    zunoSendReport(1);
  }

  byte _pin6SensorBinaryState = digitalRead(6);
  if (pin6SensorBinaryState != _pin6SensorBinaryState) {
    pin6SensorBinaryState = _pin6SensorBinaryState;
    Serial.println("Input 2 triggered");
    zunoSendReport(2);
  }

  delay(20);
}

byte pin5SensorBinaryGetter() {
  return pin5SensorBinaryState;
}

byte pin6SensorBinaryGetter() {
  return pin6SensorBinaryState;
}

Compiler log:

Code: Select all

----------------------------------------------------------
                     FIRMWARE DATA                        
----------------------------------------------------------
	REVISION:02.15
	Z-WAVE FREQUENCY:EU
	ORIGINAL FW. CRC32: 66 C2 26 CC
	MAXIMUM CODE SIZE: 30 KB
	CURRENT  FW. CRC16: 4C A3
	RADIO CHANNELS: 02
----------------------------------------------------------
                     HARDWARE DATA                        
----------------------------------------------------------
	CALIBRATION
		MAIN:04 TX: 16 12
	DEVICE PUBLIC KEY:
		HEX: 5D EE 1C 38 24 37 EF 02 14 51 6F F7 11 84 1B 4E 42 2A 9B AC E8 93 87 A8 E7 E3 90 9B 1B C4 3E 24
		DEC: 24046-07224-09271-61186-05201-28663-04484-06990-16938-39852-59539-34728-59363-37019-07108-15908
----------------------------------------------------------
                     PRODUCTION DATA                      
----------------------------------------------------------
	YOUR ZUNO S/N: 05 13 06 B9 06 7C 21 08 13
----------------------------------------------------------
	PRODUCTION TIME:
		WEEK:5 YEAR:2019
	WORKSTATION:
		NUMBER:33 SEQUENCE:1660 
	HARDWARE:
		CHIP:1721 REVISION:2067

p0lyg0n1
Posts: 177
Joined: 04 Aug 2016 07:14

Re: Z-Uno Sensor Binary and Fibaro HC2 not working properly

Post by p0lyg0n1 » 21 Oct 2019 11:10

Hi,
Seems you don't setup a multichannel association on Fibaro. You have to setup association destination to something like 1.x (for ex. 1.1) instead of 1. Check the association map on the controller.
ZUNO_DISABLE(NO_MULTIBINARY_SWITCH0); this disables only 2 switches in the 0 channel not the sensors. You don't need this line in your project.

Best regards,

Alex.

Post Reply