Z-Uno2 not allowing more than one binary sensor in sketch
Posted: 07 May 2022 21:44
When I was using Z-Uno v1's, I had a sketch that used five z-wave channels: four binary sensors and one binary switch. It worked with them, and also worked with the first Z-Uno v2 that I used.
With the current two Z-Uno v2's I'm using, inclusion fails if I try to use more than one binary sensor. The inclusion starts, and the hub starts to interview the device, but the interview times out, and the device just shows up as supporting 'ping'. If it limit the capabilities to just a single sensor and single button, then inclusion correctly identifies the two channels. If I try just adding one more sensor, inclusion will just timeout, again.
Meanwhile, the sketch uploads and runs fine; it's the z-wave inclusion which fails to describe to the hub what the capabilities are. This is all with Home Assistant, by the way.
Examples:
This works:
This does not work:
Right now, the sensors are of different types because I was checking to see if that would change the behavior. Originally, I was using four generic binary sensors, which also doesn't work. All of those getters are there. The code compiles with almost no warnings. This happens when using VS Code or Arduino IDE 2.x to compile/upload the code. Also, keep in mind that, every time I change the code and upload, I exclude the device, reset the Z-Uno, and include, again.
With the current two Z-Uno v2's I'm using, inclusion fails if I try to use more than one binary sensor. The inclusion starts, and the hub starts to interview the device, but the interview times out, and the device just shows up as supporting 'ping'. If it limit the capabilities to just a single sensor and single button, then inclusion correctly identifies the two channels. If I try just adding one more sensor, inclusion will just timeout, again.
Meanwhile, the sketch uploads and runs fine; it's the z-wave inclusion which fails to describe to the hub what the capabilities are. This is all with Home Assistant, by the way.
Examples:
This works:
Code: Select all
ZUNO_SETUP_CHANNELS(
ZUNO_SENSOR_BINARY(ZUNO_SENSOR_BINARY_TYPE_HEAT, getter0),
// ZUNO_SENSOR_BINARY(ZUNO_SENSOR_BINARY_TYPE_WATER, getter1),
// ZUNO_SENSOR_BINARY(ZUNO_SENSOR_BINARY_TYPE_FREEZE, getter2),
// ZUNO_SENSOR_BINARY(ZUNO_SENSOR_BINARY_TYPE_TAMPER, getter3),
ZUNO_SWITCH_BINARY(pseduo_switch_getter, pseduo_switch_setter)
);
Code: Select all
ZUNO_SETUP_CHANNELS(
ZUNO_SENSOR_BINARY(ZUNO_SENSOR_BINARY_TYPE_HEAT, getter0),
ZUNO_SENSOR_BINARY(ZUNO_SENSOR_BINARY_TYPE_WATER, getter1),
// ZUNO_SENSOR_BINARY(ZUNO_SENSOR_BINARY_TYPE_FREEZE, getter2),
// ZUNO_SENSOR_BINARY(ZUNO_SENSOR_BINARY_TYPE_TAMPER, getter3),
ZUNO_SWITCH_BINARY(pseduo_switch_getter, pseduo_switch_setter)
);