GithubHelp home page GithubHelp logo

Comments (4)

herbi3 avatar herbi3 commented on June 12, 2024

When multiplying by the scale, did you use 10 raised to the power of the scale?

Scale being -1, then it would be

Power_ac * (10** scale)
Power_ac * (10** -1)

from solaredge_modbus.

Topsham avatar Topsham commented on June 12, 2024

Apologies - for clarity I should have included the calculation initially. Consumption = (power_ac x power_ac_scale) - (power x power_scale)

Using the example.py figures this gives the result below of 331.7w compared to the actual consumption at the time example.py was run of 2.65kW so it's not even close. Any thoughts?

>>> result = (15577*(10**-1)) - (1226*(10**0))
>>> print(result)
331.70000000000005

from solaredge_modbus.

herbi3 avatar herbi3 commented on June 12, 2024

Apologies - for clarity I should have included the calculation initially. Consumption = (power_ac x power_ac_scale) - (power x power_scale)

Using the example.py figures this gives the result below of 331.7w compared to the actual consumption at the time example.py was run of 2.65kW so it's not even close. Any thoughts?


>>> result = (15577*(10**-1)) - (1226*(10**0))

>>> print(result)

331.70000000000005

That's fairly odd. What was the last reported time within the solaredge app?

The script also isn't asynchronous, so it will sequentially get the data, one after the other. The meter data and batteries will be a few seconds behind each other, the consumption amount will vary significantly because of that too. If you run the same script with an interval of a few seconds for about an hour or so, then visualise the data, you may see periodic spikes from "dirty" data

from solaredge_modbus.

Topsham avatar Topsham commented on June 12, 2024

It does indeed seem to be a timing issue. I have fitted my own current clamp to the house consumer unit and compared it to the home consumption figures on the app. They are never the same although they 'trend' correctly over time. As the house consumption is the most dynamic reading, I have decided to use the readings from my own clamp for that and use the modbus readings for solar production and battery % for my smart home needs. So many thanks for your excellent work on this project and I will close this issue.

from solaredge_modbus.

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.