Giter VIP home page Giter VIP logo

Comments (14)

johanmeijer avatar johanmeijer commented on July 30, 2024

Hi,

I have not be able to test with a shinelan but at first sight the record is the same and should not give a problem.

The record is not encrypted and the offset of the data is 6 (default).

The program should be able to detect your values with the following config:

inverterid = QKB290929E
decrypt = False
minrecl = 100
compat = False
valueoffset = 6

(last valueoffset is not important while if compat=False the offset is set to 6 by default).

Can you try it with this values and if that is not working send me the output (from the system journal if you run it as a service).

I expect at least that your inverter is recognized because it is in the data. If that is the case and the values are not as expected then the offset has to be changed.

To be honest I have not been able tot test the code with decrypt = False (I only have one growatt and he sends encrypted data) so there might be a code issue.
If this is the case we can try to fix it :)

from grott.

wilcodl avatar wilcodl commented on July 30, 2024

I ran the python script with decrypt and compat disabled but now the script crashes, see attached log:

Apr 01 11:07:16 rpi1b grott[1866]: File "/home/pi/grott/grott.py", line 238, in main
Apr 01 11:07:16 rpi1b grott[1866]: if(result_string.find(SN) > -1):
Apr 01 11:07:16 rpi1b grott[1866]: AttributeError: 'list' object has no attribute 'find'

grott-log.txt

It would be very nice if we can fix this and add ShineLan support :)

from grott.

johanmeijer avatar johanmeijer commented on July 30, 2024

Hi Wilco,

Thank you for the information. I think I found the problem and will upload a new version of the program.

This is the output I see now from your information:

  • Growatt unscrambled data processed for: QKB290929E
    - Growatt unscrambled data:
    - Growatt processing values for: QKB290929E
    - pvserial: QKB290929E
    - pvstatus: 1
    - pvpowerout: 128.0
    - pvenergytoday: 0.1
    - pvenergytotal: 2346.4
    - pv1watt: 142.2
    - pv2watt: 0.0
    - pvfrequentie: 49.97
    - pvgridvoltage: 227.7

Is this the informaton you expected?

from grott.

wilcodl avatar wilcodl commented on July 30, 2024

Hi Johan,

The information looks valid! Thanks, can't wait to to use grott:)

from grott.

johanmeijer avatar johanmeijer commented on July 30, 2024

I uploaded the changed grott.py (version 1.0.7)

Please let me know if this works. I am very curious.

from grott.

wilcodl avatar wilcodl commented on July 30, 2024

Thanks for the fast new release. Unfortunately I get another error with the new version:

Traceback (most recent call last):
File "grott.py", line 425, in
main()
File "grott.py", line 254, in main
result_string = message.hex();
AttributeError: 'list' object has no attribute 'hex'

from grott.

johanmeijer avatar johanmeijer commented on July 30, 2024

Oeps sorry, used a wrong data format with my tests. Hope I solved it now.
I wil add temporary grott108.py to the repository. Can you please test this one?

Thanky you for testing!

from grott.

wilcodl avatar wilcodl commented on July 30, 2024

It worked! But the script exited after: Growatt unscrambled data processed for: QKB290929E

The 'break' on line 276 has to be removed, after I do that the script keeps running and sends the data to MQTT :)

from grott.

johanmeijer avatar johanmeijer commented on July 30, 2024

from grott.

johanmeijer avatar johanmeijer commented on July 30, 2024

Which growatt inveter do you use?

If it all works fine I can add it as tested to the documentation.

from grott.

wilcodl avatar wilcodl commented on July 30, 2024

A Growatt 3000-S with ShineLan stick.

Maybe you can also add enabling IPv4 forwarding in the kernel to the documentation? I had to set net.ipv4.ip_forward to 1 in /etc/sysctl.conf on Raspbian

from grott.

johanmeijer avatar johanmeijer commented on July 30, 2024

Thanks! I will at this to the Wiki,

from grott.

johanmeijer avatar johanmeijer commented on July 30, 2024

Do you agree this issue can be closed?

from grott.

wilcodl avatar wilcodl commented on July 30, 2024

yes it works great, thanks!

from grott.

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.