Giter Club home page Giter Club logo

powerscraper's People

Contributors

barche avatar borpin avatar deece avatar glynhudson avatar pukkahq avatar saemmy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

powerscraper's Issues

how to use

Hi!
i'm back :P i see you update the project,
how could i use it?
after edit the config.tml (but what i have to edit?) i was thinking that i need to edit inverter's ip address but can't find it...
could you help me?
Thank you!

Solax G3 Hybrid 10.0.D inverter turning off and on with a jerk

Dear all,

            This is to address a problem which is common in every Solax 10.0Kw X3 Hybrid G4 inverter.

It has been tested that during EPS Mode when following type of load is applied

  1.   Load which is equipped with specific capacitors (not each capacitive load).
    

For example

a. Some of mobile chargers.

b. Some of laptop chargers

c. Some of LED monitors

d. Some of LED Tube lights

e. Some of water pumps

Then

Following reaction occurs from inverter:

  1.   Inverter turns off its output for a while (around 0.25Sec)
    
  2.   Inverter turns off PV incoming power
    
  3.   Inverter turns on its output again automatically
    
  4.   Inverter put all load on batteries when inverter turns on back after a while.
    
  5.   Then again slowly get power from PV.
    
  6.   No alarm is logged in alarm history.
    

Please note following points:

  1.   There is a video in attachments. Which describes the reaction of inverter.
    
  2.   This test has been performed on 2 same model inverters
    
  3.   This test has been also performed by removing all loads from Inverter and by connection isolated single board.
    
  4.   All ground points are connected.
    
  5.   Each Installation step is according to Solax provided installation manual.
    
  6.   This phenomenon is not related to loose wire or loose connection, instead this is related to just turning on appliances.
    
  7.   It is observed that This phenomenon does not occur when grid is connected.
    

One more thing that this phenomenon does not occur each time when we turn ON above type appliances. This phenomenon occurs sometimes on 1st turn and sometimes on 3rd or 4th turn.

What I think is that it's output LC filter is not design perfectly as it should.

What is your opinion please guide me

Charge battery to minimum

Charge the battery to a minimum level before demand

not allow charging from the grid on a per inverter basis

minimum charge level per inverter one could be 80% and the other 20%

Have a minimum and target charge level.

Please Explain the Grid Charge Process

Hi,

I am having trouble understand the process to allow battery charging from the grid.
I would appreciate if you could explain the process required to allow battery charging from the grid.

I thought I read it from SolaxModbus.py & SolaxBatteryControl.py that the following sequence needs to be done.

Input installer password
write_register(0x00, 2014)

Enable Remote
write_register(0x1F, 2)

Wake Inverter if asleep
write_register(0x90, 1)

Enable Grid Service
write_register(0x92, 1)

Set charge power ie 2000w
write_register(0x51, 2000)

All that does is divert the Solar power into the battery instead of powering the house, as at the time of writing I am only generating 200w so nothing is being exported or put into the battery as the house load is higher than 200w.

I have also tried adding the following after enable remote and I also tried it after charge power (0x51)

Output Power
write_register(0x52, 5000)

I have managed to implement the rest of the control in Home Assistant.
https://github.com/wills106/homeassistant-config/blob/master/packages/solax.yaml

Over night charge

Currently we have solax unit set to charge to 50% between 12:30 and 4:30 (cheap rate electric) the inverter keeps charging and then discharging over and over. it also resets its self and runs through a start up test.

Solax G4 X1 inverter MODBUS MAP

Hi,

I would like to adapt this controller to the new G4 Solax Inverter. The problem is that the Control local method by Modbus has changed from G3. Anyone has the new Modbus Map for G4 generation?

thanks!

ModuleNotFoundError: No module named 'pymodbus.client.asynchronous'

I ran a few updates today and ran into an error message.
This error appeared for SolaxModbus as well as SolaxXHybridModbus.
I use the Solax-Wifi myself and this one does not give me any data anymore.
(I haven't monitored my system in detail lately, so I'm not sure whether the lack of data is a result of the solarpanels not producing any energy or a result of the error below)

/usr/bin/python3 /home/emoncms/PowerScraper/power_scraper.py
Traceback (most recent call last):
  File "/home/emoncms/PowerScraper/power_scraper.py", line 38, in <module>
    from Inputs.SolaxModbus import SolaxModbus
  File "/home/emoncms/PowerScraper/Inputs/SolaxModbus.py", line 2, in <module>
    from pymodbus.client.asynchronous.twisted import ModbusClientProtocol
ModuleNotFoundError: No module named 'pymodbus.client.asynchronous'

SyntaxError: invalid syntax?

I've now up and running with python 3.7.3 and all the modules installed, however running under python3 I get the following error. Any idea what I'm missing?

python3 power_scraper.py 
Traceback (most recent call last):
  File "power_scraper.py", line 38, in <module>
    from Inputs.SolaxModbus import SolaxModbus
  File "/opt/PowerScraper/Inputs/SolaxModbus.py", line 1
    from pymodbus.client.async import ModbusClientProtocol, ModbusClientFactory
                             ^
SyntaxError: invalid syntax
pip3 freeze
asn1crypto==0.24.0
async==0.6.2
attrs==19.3.0
Automat==20.2.0
certifi==2018.8.24
chardet==3.0.4
constantly==15.1.0
cryptography==2.6.1
entrypoints==0.3
hyperlink==19.0.0
idna==2.6
incremental==17.5.0
keyring==17.1.1
keyrings.alt==3.1.1
pycrypto==2.6.1
PyGObject==3.30.4
PyHamcrest==2.0.1
pymodbus==2.3.0
pyserial==3.4
python-apt==1.8.4
pyxdg==0.25
requests==2.21.0
SecretStorage==2.3.1
six==1.12.0
ssh-import-id==5.7
toml==0.10.0
Twisted==19.10.0
ufw==0.36
urllib3==1.24.1
zope.interface==4.7.1

ModuleNotFoundError: No module named 'toml'

I'm having trouble running the script, I'm getting an error loading the toml module even though python pip is showing that it's correctly installed. Any ideas what I'm missing? Thanks

./power_scraper.py 
Traceback (most recent call last):
  File "./power_scraper.py", line 25, in <module>
    import toml
ModuleNotFoundError: No module named 'toml'
pip freeze
asn1crypto==0.24.0
attrs==19.3.0
Automat==20.2.0
certifi==2019.9.11
chardet==3.0.4
colorzero==1.1
configobj==5.0.6
configparser==3.5.0b2
constantly==15.1.0
cryptography==2.6.1
entrypoints==0.3
enum34==1.1.6
gpiozero==1.5.1
hyperlink==19.0.0
idna==2.8
incremental==17.5.0
ipaddress==1.0.17
keyring==17.1.1
keyrings.alt==3.1.1
meld3==1.0.2
paho-mqtt==1.4.0
pycrypto==2.6.1
PyGObject==3.30.4
PyHamcrest==1.10.1
pymodbus==2.3.0
pyserial==3.4
pyxdg==0.25
redis==3.3.11
requests==2.22.0
RPi.GPIO==0.7.0
SecretStorage==2.3.1
six==1.12.0
spidev==3.3
supervisor==3.3.5
toml==0.10.0
Twisted==19.10.0
urllib3==1.25.6
xmltodict==0.12.0
zope.interface==4.7.1

I've tested an I can import toml directly into python manually.

I've also tried installing toml direclty:

git clone https://github.com/uiri/toml.git 
cd toml
python setup.py install

I'm running python 2.7.16 on a Raspberry Pi Debian.

SolaX X3 9.0T Issue - I'd like to have a '--debug' switch....

Hi,
I try to use it with my X3 9.0T and don't know where to start; this is my config so far (/dev/ttyUSB0 is my RS485 USB Dongle. A/B is connected to the Meter RS485 Interface on the X3-9.0T

# Enable this section to scrape Modbus/RTU (RS485, "meter" connection in the manual) for Solax X3 inverters

[SolaxX3RS485]
poll_period = 10 # seconds
timeout = 1 # seconds
baud = 9600
parity = 'N'
stopbits = 1
ports = ["/dev/ttyUSB0"]

[influx]
influx_url = "http://192.168.64.126:8086"
influx_database = "telegraf"
influx_measurement = "SolaX-X3-No1"
influx_user = "telegraf"
influx_pass = "12345"
influx_retention_policy = 'autogen'

When I start, I cannot really see whats happening, despite the fact that the InfluxDB part is not really working, despite configuring it correctly and tha database "telegraf" is also existent....

When starting (as root, so there are no right issues with /dev/ttyUSB0 and other things) this is happening...:

./power_scraper.py 
WARNING:pymodbus.client.asynchronous:Importing deprecated clients. Dependency Twisted is Installed
Setting up Influx
Setting up SolaxX3RS485
ERROR:influxdb_client.client.write_api:The batch item wasn't processed successfully because: (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'Content-Type': 'text/plain; charset=utf-8', 'X-Content-Type-Options': 'nosniff', 'X-Influxdb-Build': 'OSS', 'X-Influxdb-Version': '1.7.10', 'Date': 'Sat, 18 Jun 2022 13:51:05 GMT', 'Content-Length': '19'})
HTTP response body: 404 page not found


ERROR:influxdb_client.client.write_api:The batch item wasn't processed successfully because: (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'Content-Type': 'text/plain; charset=utf-8', 'X-Content-Type-Options': 'nosniff', 'X-Influxdb-Build': 'OSS', 'X-Influxdb-Version': '1.7.10', 'Date': 'Sat, 18 Jun 2022 13:51:15 GMT', 'Content-Length': '19'})
HTTP response body: 404 page not found


So two issues; I don't know if some 'valid' data is polled out of the X3 and the influxdb connection is strangely not working, despite the fact I do not even need a username and password for my influxdb.....

Any hints? Is there a debug Switch where I can check the communication between /dev/ttyUSB0 and the X3 fist?

Thanks a lot!

Cheers

4920441

Battery 10%

When the battery is discharged to 10% the inverter switches off, the battery recovers back to 11% so it starts up again. this can happen 3-4 times before it stable at 10%. is they away to discharge to 10% and then set the cut off at 11% to stop this.

TL5000C?

As anyone tested this to read data from a TL5000C inverter? And a Triple-power HV10045 battery?

Getting data in emoncms

Looks like everything is working (no errors ๐Ÿ‘ ), but I don't see any data in emoncms.
How can I resolve this??

Mapping Register Values

I have managed to take your register values from Inputs/SolaxModbus.py and convert them into decimal values to use in Home Assistant as package configuration.

https://github.com/wills106/homeassistant-config/blob/master/packages/solax.yaml

I have worked out some of the values for Run Mode (0x09)
The following are decimal results I have worked out.

0 - Waiting
1 - Checking
2 - Normal Mode
9 - Idle Mode

Have you managed to figure out any values for the following?
Battery Energy Charged (0x1D)
Battery Energy Discharged (0x20)
Battery State of Health (0x23)
Solar Energy Total (0x70)

Solar Energy Total in particular has stayed at 0 for the whole time.

Thanks

Complete modbus map

Hi Guys,

congratulation for your work! I have installed in my house a Solax hybrid x1 T5 inverterter with a triple power battery. Now I can monitorize and control it with my home assistant.
I am looking for the entire modbus map of solax inverter to try to improve and share my project taking access to other registers. Where can I find it?

thanks in advance!

PowerScraper on Solax X1

Hello. I would like to know if this would work on the 485 modbus port othe Solax X1 inverter.

Thank you and great work!!!

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.