Do not see register addresses, it is usually in HEX format, it might be even in DEC.
You should see register value either in INT (no decimal point) if reading the whole register value or in BIN ( i.e. 1/0) if you need to read particular bit(s) of the register.
I use AVReporterModbus Communication Tester to verify if the given registry addresses are correct and as well as their format.
You have to set up Hassio modbus i.a.w. Connection Parameters (as displayed in AVReporter…)
See here how to set up serial connection.
After that config sensors for required registers.
Something like this:
sensor:
- platform: modbus
scan_interval: 120 # in seconds
registers:
- name: hours
hub: dietrich_boiler
slave: 10
register: 4
register_type: holding
data_type: uint # or int
- name: minutes
hub: dietrich_boiler
slave: 10
register: 5
register_type: holding
data_type: uint # or int
*type can be, based on the documentation, tcp or serial, serial method can be ascii or rtu
You have to try various settings combinations or change converter’s setting or converter itself.
Furthermore, based on USR-TCP232-304 user guide there should be used port 1 (?) while connected via ethernet. Some settings might be adjusted via USR-TCP323-304 webUI
Try to use any port scanner to find the active port on your USR-TCP323-304.
Hi,
I think you are not using the correct setup. Your USR-TCP232-304 should give you the capability to create a serial port on your server so that the modbus traffic will be forwarded threw your network to you remote serial connexion (USR-VCOM).
Your setup would be correct with this kind of equipments: [Moxa Mgate] which I use in my professional environment. I don’t know if RTU protocol will work with your setup.
So your conf file should be:
modbus:
name: hub1
type: serial
method: rtu
port: <your remote serial port defined on the server>
baudrate: 9600
stopbits: 1
bytesize: 8
parity: N
I am currently migrating my modbus de dietrich connexion from Domoticz to Home assistant from a direct serial connection. Reading is working fine. Now i am about to test the writing.