Closed sakisdog closed 5 years ago
Your identify()
function has incorrect signature (no argument).
Also I that you reuse same characteristics in multiple places which is not allowed. Every characteristic should have it’s own unique ID within accessory. To simplify things, users of esp-homekit are not required to set those IDs manually and they are assigned automatically. However, if you reuse characteristics (or services) across different accessories, that might mess up IDs and lead to undesirable side effects.
My suggestion: rewrite code to use each characteristic only once.
Thank you for your reply.
I moved the gpio_init()
and temperature_sensor_init()
at the end of user_init
function and now it seems to work fine (2 days uptime).
Another "extra" step i did was to erase_flash
3 times instead of 1 before flashing the new firmware. I don't know if this helped or not but either way thank you for your help and your time.
Hi Maximkulkin, sorry to open this again. But I'm testing the motion sensor code at my home and noticed that if there are several people moving around the motion sensor it becomes unresponsive. Is there a way to make the sensor delay for a couple of seconds before its next activation? Thank you for your help
Hello maxim, I have built a multi sensor example on a NodeMCU but i'm getting no response after running for some hours. I use the identify function to blink the onboard LED when motion is detected. If i comment out the
identify
function in the motion sensor callback then it is running for days. If i enable it the i get no response. Would you mind to take a look in the code and tell my what i am doing wrong? Maybe i should use a bigger stack size for the task? Also is it necessary to usegpio_set_pullup
command to init the sensors? I think it should be used only if you want to set the pullup resistor high using the true parameter. Otherwise it is unnecessary.Lastly i would like to note that your work is amazing! You have done an excellent job maintaining this project. Thank you and keep up!