I have an Epever 4210AN with an original epever rs485 to usb cable: CC-USB-RS485-150U
I have Home assistant installed in Proxmox on a minicPC.
I connected the USB cable to a port in the MiniPC, and i made a pass-through to the VM.
I can see the USB connection in Home assistant as /dev/ttyACM0
I tried your config but not working, any idea what to do next?
this is my config:
modbus:
- name: epever
port: /dev/ttyACM0
delay: 5
close_comm_on_error: true
retry_on_empty: true
retries: 10
type: serial
baudrate: 115200
bytesize: 8
method: rtu
parity: N
stopbits: 1
sensors:
- name: "Battery Array Capacity 1"
unit_of_measurement: "%"
slave: 1
device_class: battery
address: 12570
input_type: input
scan_interval: 5
- name: "Solar Power Watts 1" # 3102 and 3103 https://community.home-assistant.io/t/epever-modbus-rs-485-config/214397
unit_of_measurement: W
device_class: power
slave: 1
address: 12546
input_type: input
data_type: int32
scale: 0.01
count: 2
precision: 2
swap: word
scan_interval: 5
- name: "Solar Voltage 1" #3100
unit_of_measurement: V
slave: 1
device_class: voltage
address: 12544
input_type: input
scan_interval: 5
scale: 0.01
precision: 2
Epever is tricky with Home Assistant because you have to compile the XRUSB driver for it to work. Your easiest option would be to buy an Epever eBox Wifi unit. They are really easy to setup.
After reading a lot of posts, I understand that the driver for the original cable is very hard to install in linux, I ordered a TTL USB module and I will go via ESPHOME path.
Thanks for replying.
I installed on an RPI a fresh Raspian, installed the drivers after that I installed the HASS core in docker. Now your config works like a charm. Thanks @Brynn
Hi
I have an Epever with Wifi Box and it is connected to my home network. Unfortunately, the configuration does not work. The entity is only displayed in light gray.
This entity (âsensor.epever_battery_currentâ) does not have a unique ID, so the settings cannot be managed from the UI. Check the documentation for more details.
Hi, i have a Wifi Box 01, and i have change it to STA mode and added to my local network. ( not LSD ).
I have acess to the wifi box inside my network but i cant acess the data.
I have tryed several virtual port software and nothing work to get data to the epever software.
Also i have insered the latest modbus settings on homeassistant and still no data. I have tried TCP, rtuovertcp and i always get this error:
Pymodbus: hub1: Modbus Error: [Input/Output] No Response received from the remote unit/Unable to decode response
The charger is a Tracer AN 50A, i can use the wifi box with the app, and since i put it inside my network i can acess the config menu in my local network.
Damn. Color me impressed. Iâve been using a Pi with a Python script to send the data over MQTT to my OpenHAB box. This would simplify it and free up a Pi for some other task.
Hello,
Thank you very much for this post which helped me a lot!
Then I have a functional configuration, which I transmit to you below.
To begin I have an EPEVER XTRA3210N-XDS2.
I have then a machine for modbus with the software âmbusbâ.
With a chinese cable and the âCH343â chip I have installed the driver:
I have configured as follows MBUSB
root@modbus:/etc/mbusd# cat mbusd-ttyCH343USB0.conf
#############################################
# #
# Sample configuration file for mbusd #
# #
#############################################
########## Serial port settings #############
# Serial port device name
device = /dev/ttyCH343USB0
# Serial port speed
speed = 115200
# Serial port mode
mode = 8n1
# RS-485 data direction control type (addc, rts, sysfs_0, sysfs_1)
trx_control = addc
# Sysfs file to use to control data direction
# trx_sysfile =
############# TCP port settings #############
# TCP server address to bind
address = 0.0.0.0
# TCP server port number
port = 502
# Maximum number of simultaneous TCP connections
maxconn = 32
# Connection timeout value in seconds
timeout = 60
######### Request/response settings #########
# Maximum number of request retries
retries = 3
# Pause between requests in milliseconds
pause = 100
# Response wait time in milliseconds
wait = 500
# Reply on Broadcast
replyonbroadcast = no