Tinuva
The Magician
You would probably get it right faster with Claude than with chatgtp. At least my experience in majority coding casesWorking through my back catalogue of ESP32 projects that I absolutely have to build but have no practical use for ( a man must have a hobby ). Behold ! A working version of this Reddit post.
When this post first showed I gave it a crack. But the code supplied by the Reddit user just didn't work ( both myself and Muttley tried ). Admittedly I made use of ChatGPT to get this right as these lambda's are well beyond my coding grasp . That said it still took a while of relentless hammering as the AI just couldn't get it to do what I wanted it to ( as ESPHome goes, code that the free AI supplies is often outdated, causes issues or just doesn't work ). But my quest to avoid Christmas cheer was more powerful than simply giving up !
I too only had a NeoPixel ring on hand. I'm sure you can imagine the effect is the same as the original post if it were a straight line LED ( I'd prefer the latter as it's much more effective ).
If you would like the code, hit me up.
- The number LED's lit increases or decreases depending on the battery SOC. To further assist with that visual, the LED's change colour from red to orange to green depending on battery SOC ( one can make this a lot more granular or varied. This is still a first pass ).
- The LED's change speed depending on the charge/discharge rate. Not too big a difference as it would be distracting, but noticeable nonetheless.
- The LED's change direction on whether the battery is charging/discharging.
View attachment 1783745View attachment 1783746
None the less, really cool project