refactor for better support with ch341 and other unreliable rs232 adapters

This commit is contained in:
David
2019-07-27 22:34:34 +10:00
parent c9ba895410
commit ccb999b8dc
28 changed files with 800 additions and 774 deletions
+7 -4
View File
@@ -1,8 +1,11 @@
#This is the settings file, all comment lines should start with a hash mark.
# Basic configuration options for the actual inverter polling process...
# The device to read from...
# Use: /dev/ttyS0 if you have a serial device or /dev/hidraw0 if you're connecting via USB.
device=/dev/ttyS0
# Use: /dev/ttyS0 if you have a serial device,
# /dev/ttyUSB0 if a USB<>Serial,
# /dev/hidraw0 if you're connecting via the USB port on the inverter.
device=/dev/ttyUSB0
# How many times per hour is the program going to run...
# This is used to calculate the PV & Load Watt Hours between runs...
@@ -11,7 +14,7 @@ device=/dev/ttyS0
# (120 = every 30 seconds)...
run_interval=120
# This allos you to modify the amperage in case the inverter is giving an incorrect
# This allows you to modify the amperage in case the inverter is giving an incorrect
# reading compared to measurement tools. Normally this will remain '1'
amperage_factor=1.0
+1 -1
View File
@@ -1,5 +1,5 @@
{
"server": "10.16.10.5",
"server": "10.16.10.4",
"port": "1883",
"topic": "homeassistant",
"devicename": "voltronic"