File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
libraries/Zigbee/examples/Zigbee_Multistate_Input_Output Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 14
14
15
15
/* *
16
16
* @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.
19
19
* In the example, we have two multistate devices:
20
20
* - zbMultistateDevice: uses defined application states from Zigbee specification
21
21
* - zbMultistateDeviceCustom: uses custom application states (user defined)
24
24
* and also the correct partition scheme must be selected in Tools->Partition Scheme.
25
25
*
26
26
* 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.
27
29
*
28
30
* Created by Jan Procházka (https://github.com/P-R-O-C-H-Y/)
29
- * Modified by Pat Clay
30
31
*/
31
32
32
33
#ifndef ZIGBEE_MODE_ZCZR
@@ -68,7 +69,7 @@ void onStateChangeCustom(uint16_t state) {
68
69
Serial.printf (" State name: %s\r\n " , multistate_custom_state_names[state]);
69
70
}
70
71
// 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 );
72
73
73
74
Serial.print (" Changing to fan mode to: " );
74
75
switch (state) {
You can’t perform that action at this time.
0 commit comments