Comments (4)
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.
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.
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.
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)
- Support for Backup Interface HOT 3
- Isolation Resistance reporting? HOT 1
- Enums in __init__.py
- How to interpret the data returned by example.py HOT 10
- [Solved] - Error "ModuleNotFoundError: No module named 'pymodbus.client.sync'" HOT 1
- Support for 3 x SolarEdge Home Battery HOT 1
- I dont know how to setup
- Which Parameter is which HOT 9
- BIG and LITTLE Endian vs Big and Little Endian HOT 3
- Incorrect address in __init__.py HOT 1
- How is the SolarEdge Wallbox integrated? HOT 3
- Module based information for SolarEdge Home Battery 48V HOT 1
- New storage control mode
- Grid Status, off/on grid - Found
- Third Battery is now available in modbus registers (+0x0200) - Please add support HOT 1
- Beginner question: where can I find a detailed description of modbus fields (e.g. different power values)? HOT 2
- KeyError "Status" HOT 1
- Batteries connected to Followers
- Solar Edge Modbus Meter, Importing or Exporting?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solaredge_modbus.