Open FGarridoV opened 4 months ago
Hi, While I cannot answer your question, I can suggest you a better alternative for battery based espnow sensors. Instead of sleeping , you should consider turning off the device by cutting off its power. By doing so, it will not consume any power. It can wake up when you press the button again , send a espnow message and cut power. You can control the power to itself via a GPIO pin. Search for circuit design to achieve this. One example is here : https://youtu.be/nbMfb0dIvYc
Hello @iphong.
I was checking your repo and it is one the most similar ones that achieves what I want. So, I thought maybe you can guide me towards the solution I am looking for.
I am looking something similar as you have in your repo with the motion sensor. Specifically, I want one ESP device with a button connected. My idea is to have this device sleeping and wake up only when the button is pressed, send data by espnow, and then send it to sleep again. Your implementation about the motion sensor is quite similar, but I am wondering how to send the device to sleep. (All of this using esphome)
Will be nice if you can guide me how to add this functionality. And sorry if this question is too basic (I am really new here). Thank you in advance, Francisco