I am building a Seeed Xiao ESP32-C6 zigbee device that measures temperature and humidity on battery power. I have everything working, including deep sleep, waking and sending data to Home Assistant. The issue I am having is getting the battery level and voltage to be recognized in Home Assistant. Has anyone had success getting this to work? I would be most appreciative for an piece of example code. TIA
How are you sensing this?
I am using a voltage divider.
Good. Post your ESPHome code [formatted], compiler output and a bit of the run log.