Hi everyone,
I’m not super familiar with ESPHome, this is actually my first time using it.
I am building a touch sensor wifi button that is battery operated. It features a USB Type C charging module and a lithium 3.7v battery.
The Wemos D1 Mini does nothing but send a mqtt message when it wakes up through the touch button and an phototransistor by grounding the RST pin. Thanks to one user’s help on the board, I managed to achieve this by programming the Wemos D1 Mini.
I would like the Wemos D1 Mini also to send a mqtt message with the battery percentage (ideally, but also the battery voltage would be fine).
I have seen a guide online that connects the following voltage detector to one pin of the Wemos D1 Mini, but I have no idea how to program ESPHome to detect the voltage and convert it to a battery percentage.
Could someone help me, please?
I will make a post with the finished project once it is completed and the case 3D printed.