Open sonirohit3 opened 2 months ago
Hi @sonirohit3, I am now working on the Zigbee library for ESP Arduino. Follow issue #10135 for more details. With the code you are using you can ask for help on esp-zigbee-sdk repository :) Thanks
Hi Prochy, Thanks for the information. I will keep track of this. It would be really nice if somehow, I can get the sample code for multiple endpoints early. I have the hardware ready.
Regards, Rohit Soni
FIY: Those deleted comments have been from some bot with suspicious content.
Hi @P-R-O-C-H-Y , I am now able to add multiple endpoints and the same are detected on the HA. This device has onboard switch from which I can toggle the LED. I need suggestion on how I can update the same to the HA server when LED is toggled with a physical switch. Below is my sample code. This creates a light and a Smart plug on HA.
@sonirohit3 Can you please format the code in the comment so its readable? Thanks
@sonirohit3 Can you please format the code in the comment so its readable? Thanks
Certainly! Edited my previous comment and attached the INO file in compressed zip. I am also trying to see how a fan type device can be implemented in this. The device has rotary encoder which can we used to increase / decrease fan speed. Any suggestion on this?
Hi @P-R-O-C-H-Y , Any suggestion on above? Please suggest how to modify the light bulb example code to add a switch and send back the updated status to HA when toggled.
Hi @sonirohit3, you will need to set the attribute value using
esp_zb_zcl_status_t esp_zb_zcl_set_attribute_val(uint8_t endpoint, uint16_t cluster_id, uint8_t cluster_role, uint16_t attr_id, void *value_p, bool check);
For more info take a look here
Board
ESP32-C6
Device Description
Hardware Configuration
Custom Board
Version
latest master (checkout manually)
IDE Name
Arduino IDE
Operating System
Windows 11
Flash frequency
80 MHz
PSRAM enabled
no
Upload speed
115200
Description
I am trying to create multiple endpoints on Zigbee but only 1st endpoints are detected.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide