Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
Tips:
For a full reference visit the Markdown syntax.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hello
Here is my project. Not sure if I should be posting a code here or in pastebin. Let me know so that I will do it next time =)
Anyway. I have this working by using Puck.js that counts pulses on my smart power meter and transmits them for ESPHome running ESP32 board to pickup and process into HomeAssistant.
At the moment have an issue with with the code (which is reused example code plus few extras) - it is set to keep track of pulses (hourly, daily etc), but it does not reset when the hour is changed over. Which causes incorrect values - it increments what was already there from the previous day =(
Can someone skim through the code and suggest any optimizations and help me with counter resets for daily pulses?