ZUNO_ADD_CHANNEL()

This function instructs Z-Uno to add one more channel during dynamic configuration. This function can be called many times to add more channels. Channels are numbered from 1 to 10. Make sure to execute ZUNO_START_CONFIG before the first call of ZUNO_ADD_CHANNEL(). Z-Uno supports up to 10 channels ZUNO_ADD_CHANNEL(type, sensor_type, size_precision_parameters) type channel type (defined in ZUNO_Definitions.h):
  1. ZUNO_SWITCH_BINARY_CHANNEL_NUMBER
  2. ZUNO_SWITCH_MULTILEVEL_CHANNEL_NUMBER
  3. ZUNO_SENSOR_BINARY_CHANNEL_NUMBER
  4. ZUNO_SENSOR_MULTILEVEL_CHANNEL_NUMBER
  5. ZUNO_METER_CHANNEL_NUMBER
  6. ZUNO_DOORLOCK_CHANNEL_NUMBER (not supported yet, for future use)
  7. ZUNO_FLOWSTOP_CHANNEL_NUMBER
  8. ZUNO_SIREN_CHANNEL_NUMBER
  9. ZUNO_BLINDS_CHANNEL_NUMBER
sensor_type Sensor type. Applicable only for ZUNO_SENSOR_BINARY_CHANNEL_NUMBER, ZUNO_SENSOR_MULTILEVEL_CHANNEL_NUMBER and ZUNO_METER_CHANNEL_NUMBER. size_precision_parameters One byte defining value size and value precision. Applicable only for ZUNO_SENSOR_BINARY_CHANNEL_NUMBER, ZUNO_SENSOR_MULTILEVEL_CHANNEL_NUMBER and ZUNO_METER_CHANNEL_NUMBER. Check ZUNO_Definitions.h for more details.
Examples can be found in the description of ZUNO_START_CONFIG.