Comments (5)
Hi @LowKey88 ,
Could you see if it is fixed in the latest update ? Is switched the parameters. At creating i was not 100% sure which was which so i might have mixed the up.
from sajesolar.
if self._type == 'totalGridPower':
if 'dataCountList' in energy:
if energy['dataCountList'][4][-1] is not None:
self._state = float(energy['dataCountList'][3][-1])
if self._type == 'totalLoadPower':
if 'dataCountList' in energy:
if energy['dataCountList'][4][-1] is not None:
self._state = float(energy['dataCountList'][2][-1])
if self._type == 'totalPvgenPower':
if 'dataCountList' in energy:
if energy['dataCountList'][4][-1] is not None:
self._state = float(energy['dataCountList'][4][-1])
This is the part there i get the data out of the api. As it is not properly labeled, and it is also an array of data i had to work with positions instead of labels. I cannot imagine they are switching the positions of this data but if they are then it might become very hard to get this right, as i only found 1 more API endpoint which is only accessible via the reseller/main login which i believe cannot be used in the component because of various reasons..
from sajesolar.
Found an new API endpoint which if it has the correct info is way easier to understand for me. Could you see the bold items are the values you are looking for ? Found it the data under load monitoring - >Overview. it represents the data shown in the image below :
previewInfo:
gridDirection: -1
-> gridPower: 1723
isOnline: 1
moduleSn: "M1234Y12345678"
-> pvPower: 0
solarPower: 12
-> totalLoadPower: 1723
status: "success"
from sajesolar.
Hi @LowKey88
Should be fixed in v1.2.4.
Please read and follow up on the instructions within the release notes. As per my findings we were on the wrong track of getting the correct sensors to make the Energy Dashboard work as it should. Therefor other sensors were needed (see release notes)
Could you confirm if my findings are correct and also work for you? If it does, we might be able te deprecate some old sensors which are not needed any more, this can make the component faster en cleaner. I think the following sensors from the SEC Module are not needed anymore after the latest update, could you confirm?
- pvElec
- useElec
- buyElec
- sellElec
- buyRate
- sellRate
- totalGridPower
- totalLoadPower
- totalPvgenPower
from sajesolar.
Fixed with above solutions
from sajesolar.
Related Issues (20)
- Error HOT 3
- uitlezen SAJ converter HOT 12
- Lettura non riuscita Aiuto! HOT 2
- more plants HOT 2
- Peakpower not showing HOT 2
- rename of resources and historical dashboard data HOT 1
- Add more states to runningState handling HOT 6
- Add uuid param to reduce calls load and allow unpaired users to use the plugin HOT 3
- is fop.saj-electric.com deprecated? HOT 36
- AIO3 supported? HOT 1
- pvElec and useElec mulitplied by 1000? HOT 2
- HA Energy Dashboard: which sensor do I add? HOT 1
- All data lose -New platform migrate. HOT 19
- SAJ Portal Server changes HOT 3
- warnings on deprecated units HOT 3
- PV1 Power HOT 13
- Help new system HOT 3
- R6 Series Inverter HOT 1
- Incorrect Reporting of totalGridPower and totalLoadPower in SAJ eSolar Integration HOT 1
- Unknown error occurred while polling eSolar: 'plantDetail'
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 sajesolar.