Has anyone setup a Modbus conenction using RTU (serial port to USB) and been able to read the sensors? I have seen sucess using the WiFi01 module, but I wanted the hardwired solution. I am using Proxmox and have mapped the USB port (as I have for my Zigbee), but I am getting 2 errors:
Pymodbus: Solar: Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 2 bytes (0 received)
and the error which may just be because of the first one is:
* EPEver_power_charge_month with int is not valid, trying to convert
Etc
My Config
modbus:
- name: Solar
delay: 5
close_comm_on_error: true
retry_on_empty: true
retries: 10
type: serial
baudrate: 115200
bytesize: 8
method: rtu
parity: N
port: /dev/ttyACM1
stopbits: 1
sensors:
- name: EPEver_Solar_Voltage #3100
scan_interval: 30
unit_of_measurement: V
slave: 1
address: 12544
input_type: input
scale: 0.01
precision: 2
continued with other sensors...
tried pymodbus debug; doesn‘t enlight anything; hardware is a stiebel eltron heatpump with modbus interface; all wired; i do get sensor values via modbus, just getting this ha warnings. tnx
Logger: homeassistant.components.modbus.validators
Source: components/modbus/validators.py:97
Integration: Modbus (documentation, issues)
First occurred: 6:23:54 PM (4 occurrences)
Last logged: 6:23:54 PM
Solar Battery Remaining Capacity with uint is not valid, trying to convert
Solar Battery Status with uint is not valid, trying to convert
Then this follows
Logger: homeassistant.components.modbus.modbus
Source: components/modbus/modbus.py:250
Integration: Modbus (documentation, issues)
First occurred: 6:32:24 PM (1 occurrences)
Last logged: 6:32:24 PM
Pymodbus: ew11: Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 8 bytes (0 received)
Thank. this solved the problem of Solar Battery Remaining Capacity with uint is not valid, trying to convert
But it seems the major issue now is that no response in received [pymodbus.transaction] Transaction failed. (Modbus Error: [Invalid Message] No response received
2021-09-29 17:01:44 DEBUG (SyncWorker_0) [pymodbus.client.sync] Connection to Modbus server established. Socket ('192.168.5.74', 43031)
2021-09-29 17:01:56 DEBUG (SyncWorker_1) [pymodbus.transaction] Current transaction state - IDLE
2021-09-29 17:01:56 DEBUG (SyncWorker_1) [pymodbus.transaction] Running transaction 1
2021-09-29 17:01:56 DEBUG (SyncWorker_1) [pymodbus.transaction] SEND: 0x1 0x4 0x31 0x1a 0x0 0x1 0x1e 0xf1
2021-09-29 17:01:56 DEBUG (SyncWorker_1) [pymodbus.client.sync] New Transaction state 'SENDING'
2021-09-29 17:01:56 DEBUG (SyncWorker_1) [pymodbus.transaction] Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2021-09-29 17:02:05 DEBUG (SyncWorker_1) [pymodbus.transaction] Transaction failed. (Modbus Error: [Invalid Message] No response received, expected at least 2 bytes (0 received))
2021-09-29 17:02:05 DEBUG (SyncWorker_1) [pymodbus.transaction] Retry on empty response - 10
2021-09-29 17:02:05 DEBUG (SyncWorker_1) [pymodbus.transaction] Changing transaction state from 'WAITING_FOR_REPLY' to 'RETRYING'
Not sure what solved it but it is working now. I unplugged the cable from the charge controller and plugged it again and it worked. Maybe some partial contact