Code Monkey home page Code Monkey logo

Comments (6)

CircuitSetup avatar CircuitSetup commented on July 16, 2024

It looks like there was a fix to the default behavior of Total Daily Energy.

Try changing state_class: measurement to state_class: total_increasing

from expandable-6-channel-esp32-energy-meter.

iannecj avatar iannecj commented on July 16, 2024

Yes that did it. Took a day to correct itself as expected. Might I suggest that get added to example YAML? Thanks again!

from expandable-6-channel-esp32-energy-meter.

CircuitSetup avatar CircuitSetup commented on July 16, 2024

Yes, I'll definitely change it in the examples. Thanks for bringing this to light!

from expandable-6-channel-esp32-energy-meter.

CircuitSetup avatar CircuitSetup commented on July 16, 2024

oh, I forgot to ask. Was state_class added automatically (as stated in the forum thread), or is that something you added? I'm trying to figure out if it explicitly needs to be in the config.

from expandable-6-channel-esp32-energy-meter.

iannecj avatar iannecj commented on July 16, 2024

I had for the main total energy sensor in YAML and I had added it at some point. I believe from an online example.
device_class: "energy"
state_class: "measurement"

That did not work and it complained of no last reset parameter as we said.

Based on your suggestion I changed to:
device_class: "energy"
state_class: "total_increasing"

And it works but it may have also worked if I had just deleted state_class: "measurement". Didn't try that.

from expandable-6-channel-esp32-energy-meter.

CircuitSetup avatar CircuitSetup commented on July 16, 2024

got it! Thanks for your help!

from expandable-6-channel-esp32-energy-meter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.