This commit is contained in:
Norbert
2024-03-01 09:13:14 +01:00
parent 8d2d50a0ee
commit a2006baf04
14 changed files with 1654 additions and 600 deletions

3
debug.py Normal file → Executable file
View File

@@ -1,3 +1,4 @@
#!/usr/bin/env python3
from solaxx3.rs485 import SolaxX3
solax_items=[
"power_dc1",
@@ -65,7 +66,7 @@ openhab_items=[
]
# adjust the serial port and baud rate as necessary
s = SolaxX3(port="/dev/ttySOLAX", baudrate=19200)
s = SolaxX3(port="/dev/ttyUSB0", baudrate=19200)
data =[]
if s.connect():
s.read_all_registers()