Z-UNO 2 Channel configuration not working with HC2
Posted: 10 Mar 2022 21:30
Hi,
I am trying to include 'something' in a fibaro HC2 network
(Up to now I was succesfully using Z-uno-1)
Unsuccessful I went back to a basic static configuration:
whatever I try, the result is the same : after 'said inclusion' I get only one switch, probably the one bound to chan 0, not mine...:

Any idea/advice that may help?
Thanks,
Yves
I am trying to include 'something' in a fibaro HC2 network
(Up to now I was succesfully using Z-uno-1)
- Z-Uno bootloader version:3.0.9
Security:none
Frequency:EU
Device included:yes/no I would like !!!
Device included securely by controller:yes/no
Controller:Fibaro HC2
Unsuccessful I went back to a basic static configuration:
Code: Select all
#include "Arduino.h"
#include "ArduinoTypes.h"
#if (ZUNO_CORE_VERSION_MAJOR < 3)
#error "------- This code should be complied for ZUNO 2 target"
#endif
#define SPDBGSTART(X) Serial.begin(X)
#define SPDBG(...) Serial.print(__VA_ARGS__)
#define SPDBGLN(...) Serial.println(__VA_ARGS__)
uint32_t switchValue[2];
uint32_t dimmerValue[2];
ZUNO_SETUP_CHANNELS(
ZUNO_SWITCH_BINARY(switchValue, NULL)
ZUNO_SWITCH_BINARY(switchValue, NULL)
ZUNO_SWITCH_MULTILEVEL(dimmerValue, NULL),
ZUNO_SWITCH_MULTILEVEL(dimmerValue, NULL),
);
// SETUP SETUP SETUP SETUP SETUP SETUP SETUP
//_________________________________________________________________________________
void setup() {
SPDBGSTART(57600);
SPDBGLN(" ");
SPDBGLN("SetupStart");
pinMode(BUILTIN_LED_PIN, OUTPUT);
SPDBGLN("INIT Done");
}
// LOOP LOOP LOOP LOOP LOOP
//_________________________________________________________________________________
void loop() {
digitalWrite(BUILTIN_LED_PIN, HIGH);
delay(2000);
digitalWrite(BUILTIN_LED_PIN, LOW);
delay(500);
}

Any idea/advice that may help?
Thanks,
Yves