Skip to content

Commit 05139ff

Browse files
committed
Add initial readthedocs files
1 parent e6628ab commit 05139ff

24 files changed

+1299
-0
lines changed

.readthedocs.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.12"
12+
13+
mkdocs:
14+
configuration: mkdocs.yml
15+
16+
# Optionally declare the Python requirements required to build your docs
17+
python:
18+
install:
19+
- requirements: docs/requirements.txt
20+
21+
formats: all

docs/automation-examples.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Automation - Hints and Examples
2+
3+
This page will host some example automations and hints related to creating automations.
4+
The authors are not responsible for the correctness of the sample code and the applicability on a particular system
5+
## Hint 1: Be carefull with frequent modifications
6+
Automations may modify certain parameters frequently. According to the Solax documentation, most of the parameters that are modified are written to EEPROM. As you may know, EEPROM life is limited by a number of write cycles which is often no more than 100000 write operations.
7+
So if you want your inverter to survive 10 years, you should not make more than 27 modifications a day. To be on the safe side, I would recommend to use 10 modified parameters a day as a safe value.
8+
It is unclear if modifying a parameter from e.g. 10 to the same value 10 would issue a real EEPROM write. Future versions of our integration could ignore such changes, but currently the code does not compare with previous value.
9+
10+
## Example 1: TBD

docs/baudrates.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Serial Baud Rates
2+
3+
### Sofar Solar
4+
5+
Default is meant to be 9600. Some support up to 57600 or 115200
6+
Check the LCD to ensure the Inverter is matched to the RS485 device.
7+
8+
### SolaX X3 MIC / MIC Pro:
9+
10+
9600 **Do not set polling below 5s**
11+
12+
### SolaX Gen3 - Inverters missing built in Ethernet (X1-AC etc):
13+
14+
115200
15+
16+
### SolaX Gen4:
17+
18+
19200
19+
20+
### SolaX J1:
21+
22+
19200

docs/compatible-adaptors.md

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Compatible RS485 Adaptors
2+
3+
This page does not use affiliate links, please only use these links as a guide. Shop around for the best prices!
4+
5+
## RS485 - USB
6+
7+
### Generic RS485 - USB
8+
9+
![Image of Generic RS485 - USB](https://user-images.githubusercontent.com/18155231/161318880-9aade4a6-ab45-4be8-822d-404e831f42d8.png)
10+
11+
[Amazon UK Link1](https://www.amazon.co.uk/dp/B07K3V381Z),
12+
[Berrybase Link1](https://www.berrybase.de/raspberry-pi/raspberry-pi-computer/usb-geraete/usb-rs485-konverter)
13+
14+
## RS485 - Ethernet
15+
16+
Whatever adapter you buy, make sure it supports Modbus transmission. Transparent adapters that do not look into the Modbus protocol cannot send the packages to the correct Modbus slave.
17+
18+
### [USR-N510 RS232/RS485/RS422 to Ethernet](https://www.pusr.com/products/1-serial-port-etherne-device-servers-usr-n510.html)
19+
20+
Older version of the USR-N510 with DB9 connector supporting RS232/RS485/RS422
21+
22+
### [USR-W610 RS232/RS485 to Wifi & Ethernet](https://www.pusr.com/products/rs232/rs485-to-wifi-converters-usr-w610.html)
23+
24+
Only Ethernet mode tested so far.
25+
26+
[Amazon UK Link1](https://www.amazon.co.uk/dp/B07DNWM62H)
27+
28+
### [Waveshare RS485 to RJ45 Ethernet DIN Rail Mount - RS485 TO ETH (B) / RS485 TO POE ETH (B)](https://www.waveshare.com/wiki/RS485_TO_ETH_(B))
29+
30+
![Image of Waveshare RS485 to RJ45 Ethernet DIN Rail Mount](https://user-images.githubusercontent.com/18155231/161314257-2bb50255-f1f6-44c2-889f-aea5db528306.png)
31+
32+
[Amazon UK Link1](https://www.amazon.co.uk/dp/B09MQTP16W) , [Amazon UK Link2](https://www.amazon.co.uk/dp/B09LQMH2S1) , [Amazon UK Link3](https://www.amazon.co.uk/dp/B09QMNWYLQ)
33+
34+
### [ZLAN5843A 8-port RS232/485 serial port to Ethernet](http://www.zlmcu.com/en/products_ZLAN5843A.htm)
35+
36+
![Image of ZLAN5843A](https://user-images.githubusercontent.com/18155231/161318289-7582aea1-2fc1-49f8-90a1-c2e7d34de50e.png)
37+
38+
[AliExpress](https://www.aliexpress.com/item/32888961582.html)
39+
40+
## Untested but should work according to the specs...
41+
42+
### [USR-N510 RS485 to Ethernet](https://www.pusr.com/products/1-rs485-serial-port-etherne-device-servers-usr-n510.html)
43+
44+
Newer version of the USR-N510 without DB9 connector supporting RS485 (Specs mention RS232/RS485/RS422 Optional)
45+
46+
Should perform the same as the older version, although untested!
47+
48+
### [USR-TCP232-410S RS232 / RS485 Serial to Ethernet Adapter](https://www.pusr.com/products/modbus-serial-to-ethernet-converters-usr-tcp232-410s.html)
49+
50+
![Image of Usr-Tcp232-410S RS232 / RS485 Serial to Ethernet Adapter](https://user-images.githubusercontent.com/18155231/161313612-ebab3228-8bcd-4d41-9045-36c7bb258900.png)
51+
52+
[Amazon UK Link 1](https://www.amazon.co.uk/dp/B07C1TC165)
53+
54+
## Might work but potentially more hassle...
55+
56+
### [USR-TCP232-304 only supports a Virtual Com Port?](https://www.pusr.com/products/1-port-rs485-to-ethernet-converters-usr-tcp232-304.html)
57+
58+
![Image of USR-TCP232-304](https://user-images.githubusercontent.com/18155231/161317686-cc3d05d4-d5fa-441c-af42-ea3ad62f2026.png)
59+
60+
As this Model appears to only gives you a Virtual Com Port it might prove difficult to pass into Home Assistant running in a VM or Home Assistant OS?
61+
62+
[Amazon UK Link1](https://www.amazon.co.uk/dp/B07BC77L8K)
63+
64+
## Non Working / Troublesome RS485 Adaptors
65+
66+
### [Waveshare RS485 to WIFI/ETH](https://www.waveshare.com/wiki/RS485_TO_WIFI/ETH)
67+
68+
This RS485 adaptor is very problematic:
69+
- There seems to be delayed communications,
70+
- Struggles to read more than 7 registers at a time,
71+
- Modbus Error: [Input/Output] Unable to decode request,
72+
- No ability to set "Auto query storage type" for Sofar Inverters.
73+
74+
### [Waveshare RS485 to ETH](https://www.waveshare.com/wiki/RS485_TO_ETH)
75+
**Not to be confused with the DIN Rail mounted Waveshare RS485 TO ETH (B) mentioned above.**
76+
- This adaptor does not support "Modbus Transmission" it is a passive device.
77+
- You can't submit requests to the Inverter.
78+
- It does not work!

0 commit comments

Comments
 (0)