Skip to content

Commit 19e06b1

Browse files
committed
fix(example): Add ZHA note + fix variable name
1 parent 59ce6f8 commit 19e06b1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

libraries/Zigbee/examples/Zigbee_Multistate_Input_Output/Zigbee_Multistate_Input_Output.ino

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
/**
1616
* @brief This example demonstrates Zigbee multistate input / output device.
17-
*
18-
* The example demonstrates how to use Zigbee library to create a end device multistate device.
17+
*
18+
* The example demonstrates how to use Zigbee library to create a router multistate device.
1919
* In the example, we have two multistate devices:
2020
* - zbMultistateDevice: uses defined application states from Zigbee specification
2121
* - zbMultistateDeviceCustom: uses custom application states (user defined)
@@ -24,9 +24,10 @@
2424
* and also the correct partition scheme must be selected in Tools->Partition Scheme.
2525
*
2626
* Please check the README.md for instructions and more detailed description.
27+
*
28+
* NOTE: HomeAssistant ZHA does not support multistate input and output clusters yet.
2729
*
2830
* Created by Jan Procházka (https://github.com/P-R-O-C-H-Y/)
29-
* Modified by Pat Clay
3031
*/
3132

3233
#ifndef ZIGBEE_MODE_ZCZR
@@ -68,7 +69,7 @@ void onStateChangeCustom(uint16_t state) {
6869
Serial.printf("State name: %s\r\n", multistate_custom_state_names[state]);
6970
}
7071
// print state index of possible options
71-
Serial.printf("State index: %d / %d\r\n", state, zbMultistateDevice.getMultistateOutputStateNamesLength() - 1);
72+
Serial.printf("State index: %d / %d\r\n", state, zbMultistateDeviceCustom.getMultistateOutputStateNamesLength() - 1);
7273

7374
Serial.print("Changing to fan mode to: ");
7475
switch (state) {

0 commit comments

Comments
 (0)