-
Notifications
You must be signed in to change notification settings - Fork 46
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
Test Inverter compatibility #41
Comments
This is running the Lycan 5000 using the InverterClient. Is this the output that you want to see? python3 example.py |
Thanks! Are these values correct? May be there is a scaling issue so solar_voltage=93.9, load_current=0.2A etc? |
This is the actual output. I've fixed some of the scaling issues in the LycanClient in my fork. And battery_current is wacky and I do not understand it. Here is the output from LycanClient: |
I've merged a basic support to master, but still not fully tested as I don't have a device. |
Here is the output: INFO:root:Init InverterClient: BT-TH-F26D8F08 => F0:F8:F2:6D:8F:08 |
I have a R-INVT-PCL1-30111S-US, and I'm curious how you are expecting to connect to it. It is my understanding that it netiher has bluetooth, nor is its RJ45 port connected to anything internal. The RJ11 is connected for two status LEDs (power and error) and remote power switch. I'd be thrilled to hear that I could get some data out of it. |
Yes, looks like R-INVT-PCL1 series don't support it. |
I can confirm this is working for my RIV4835CSH1S:
The secret sauce for me was the "32" as byte[0], which I'm assuming is the modbus address. I have a BT2 with both the RIV4835CSH1S and a RBT50LFP48S "Smart" battery plugged into it, using MODBUS. Also, what's the config file format to read both devices with a single script? A second [device] block? |
Each device needs a separate config file. May be you can create a new script file for reading the two devices back to back. python3 ./example.py config1.ini
python3 ./example.py config2.ini |
I have the Renogy Inverter RIV4835CSH1S and everything seems to work and present the proper data except for the battery info. I'm using non-Renogy Lithium batteries, and it IDs them as "None". I don't really care if it IDs them properly, but would it be possible to pull the battery metrics from the inverter? I'd love to be able to log Battery Charging Watts, Volts, Charging Amps, and Discharging Amps. For reference, this is what I get running it against my inverter: EDIT: The "Temperature" in the results below is the battery voltage! python3 ./example.py config.ini |
Can you try reading the values as CONTROLLER and let me know the values? |
The value "CONTROLLER" responds with: brian@nas:~/renogy-bt-bleak $ python3 ./example.py config2.ini The value "RNG_CTRL" responds with the following and freezes the BT-2 module. I have to unplug it and plug it back in to get it to respond to anything.: brian@nas:~/renogy-bt-bleak $ python3 ./example.py config2.ini |
I see, thats a first. Its actually possible to read battery data from inverter, I'lll work with you sometime next week to test a new branch. |
I haven't been able to get that one to run cleanly. A bunch of errors that were solved by items not in the dependency list, but now this is what I get when I run it: brian@nas:~/renogy-bt-inverter-battery $ python ./example.py config.ini |
How come it worked before? There is no change in any dependency |
I'm using the bleak port: #66 |
Main branch is now updated with better inverter support, with more fields from official documentation. |
Test compatibility with Renogy inverter models:
R-INVT-PCL1-XX seriesThe
InverterClient
is experimental and may be incomplete/ incompatible with some models.The text was updated successfully, but these errors were encountered: