Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wierd spikes in data #157

Open
bjoern-le opened this issue Jan 12, 2025 · 7 comments
Open

Wierd spikes in data #157

bjoern-le opened this issue Jan 12, 2025 · 7 comments

Comments

@bjoern-le
Copy link

I have a SUN 12k. Usually the data read by the adapter looks good an the P_GRID_CT_TOTAL (currently 43W) and P_GRID_LD_TOTAL (currently 407) are very close to the 427 W shown by the smart meter.

But: When there is enough current generated by the PV so that I don't need energy from the grid the consumption goes to values like 65497 as soon as I export to the grid. I think this is related to the data type (likely an unsigned int), but it is strange to see the spikes in the graphs. Is there a way to change this behaviour and show negative numbers?

Steps to reproduce the behavior:

  1. Export to grid
  2. Look in history for P_GRID_CT_TOTAL -> Values > 60000W instead of negative W

Expected behavior
Negative Watts when energy gets exported.

Versions:

  • Adapter version: 0.1.1
  • JS-Controller version: 6.0.11
  • Node version: v20.17.0
  • Operating system: docker container inside raspbian
@raschy
Copy link
Owner

raschy commented Jan 13, 2025

Please show me the coils from this measuring point

@bjoern-le
Copy link
Author

I am very sorry for the delay. The coils and so on should be the ones from the sun12k config file.

The config for coil P_GRID_CT_TOTAL is

{ "register": 619, "rules": 1, "key": "P_GRID_CT_TOTAL", "name": "P GRID CT TOTAL", "unit": "W", "factor": 0, "nullable": false },

@raschy
Copy link
Owner

raschy commented Jan 16, 2025

Please try changing the rules from ‘1’ to '3'

@bjoern-le
Copy link
Author

Quick update: The rules are updated and I am waiting for the fog to disappear so I can generate enough power to export it.

@bjoern-le
Copy link
Author

Today there is enough sunlight. Unfortunately, the values still show 65xxx Watt if I send power to the grid for the Value P_GRID_LD_TOTAL with rule set to 3.

@bjoern-le
Copy link
Author

Rule 2 is correct (signed 16 bit) opposed to 3 (unsigned 32 bit). Thank you very much for pointing me in the right direction. I will try to identify correct settings for the rules in the next days for all values. If you want I can create a pull request later for the sun12kp3 file in the repo. Please tell me if this helps. Else you can close this ticket.

@raschy
Copy link
Owner

raschy commented Jan 24, 2025

PR is ok. But if there are only a few coils, a short message here will suffice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants