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 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)
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) {
You can’t perform that action at this time.
0 commit comments