Modbus Integration does not appear at entities tab

Hi,
Sorry for that question from a newbie at HA
System: Raspi5, HA-OS
If I try to integrate Modbus, it will not be displayed at entities, and if I will add it at entities or devices, I got the message: do it at yaml

My Config.yaml (shows green)

’’’
/# 2025.12.15 Add RS485/Modbus
modbusa:

  • name: “modbusa”
    type: serial
    method: rtu
    port: /dev/ttyUSB0 # /dev/serial/by-id/usb-FTDI_USB_Serial_Converter_FTB6SPL3-if00-port0
    baudrate: 9600
    stopbits: 1
    bytesize: 8
    parity: N
    delay: 4

    /# Digital Input Cards
    digital_in:

    • name: “di_48_1”
      slave_id: 1 # 48 Port Digital Input<<-- Slave ID of your device
      device_address: 1 # ident to slave_id
      scan_interval: 5 # 5 sekunden’
      address: 192
      data_type: int16
      input_type: coil #holding # discrete_input, coil, holding or input (dchi)
      ’’’

→ Config restart, raspi restart, power off/ on,… nothing appears
Used USB stick: FT232 to RS485, board: Eletechsup 24DIB32 with addresse 1:
Test with laptop and commix.exe:
01 03 00 C0 00 03 05 F7 → 01 03 06 24 00 00 00 00 00 27 91
01 02 00 00 00 08 79 CC → 01 02 01 00 A1 88

Same stick and board is working at Raspi 3B with raspian and FHEM.

(One time I saw a message modbus_1 not found, so I changed to modbusa, but no messages again)

What can I do (and how)? testing, debugging, to get more information at logs,…

Thank you for your input and help
Best regards, Herbert

hello,

when you share code please use the preformatted text in order to have it correctly formatted.

your config should look like:

modbus:
  - name: modbusa
    your setup follows........

you have:

modbusa:

it won’t work.

furthermore

/# Digital Input Cards
digital_in:  

name: “di_48_1”
slave_id: 1 # 48 Port Digital Input<<-- Slave ID of your device
device_address: 1 # ident to slave_id
scan_interval: 5 # 5 sekunden’
address: 192

what is digital_in? is it a binary sensor?
slave_id does not exists, slave exists. Slave and device_address are the same thing.
Start with the examples in the docs are very effective in my experience.
Modbus - Home Assistant.

when you have finished editing your config.yaml save and go to developper tools and click check config, it will return errors and clues about the configuration if any error is present.

Hello
thank you for that information, in most cases are the basics that makes the problems. in my case nameing (so I planed 2 different USB sticks and named with modbusa :-), …) and syntax. Now connection is working.

Best regards, Herbert

1 Like