Modbus integration troubleshooting - I'm not getting right values?

Hello,

I’m HA begginer and I’m trying to get Modbus integration working with my home automation controllers… I’m getting wrong values - have verified my controllers’ modbus with qModMaster and they work.

Few begginer questions:

  • is it enough to just put modbus: section in configuration.yaml or should I put also something to add modbus integration (in Integration menu it says to add it manually) ?
  • which modbus addresses are written in config (real ones or with modbus offsets in standard)?
  • where do I specifiy Slave ID which is set to 1 on one, and to 2 on other device or is this parameter not necessary?
  • can i find modbus logs somewhere to see what is going on and what are replies?

Update:
I had to add -1 offset to modbus addresses (luckily some other light was responding with +1 address) and it seems that setting slave: 1 or 2 matters.

Is scan_interval minimal value 1? I’d like to catch button presses?

Thanks in advance,
regards.

# Cybro modbus TCP 
modbus: 
  - name: modbus_hub_glavni
    type: tcp 
    host: 192.168.0.240 
    port: 502 
    binary_sensors:
      - name: "Motion Living"
        unique_id: motion_living
        slave: 1
        address: 6415
        scan_interval: 1
        
      - name: "Door Shramba"
        unique_id: door_shramba
        slave: 1
        address: 6481
        scan_interval: 1
        
    sensors:
      - name: "Temperature Living"
        unique_id: temperature_living
#        precision: 0
#        scale: 0.1
        slave: 1
        address: 3554
        device_class: temperature
        state_class: measurement
        unit_of_measurement: °C
    lights: 
      - name: "Light Office" 
        unique_id: light_office
        slave: 1
        address: 6692
        write_type: coil 
        scan_interval: 1
        verify: 

  - name: modbus_hub_gsm
    type: tcp 
    host: 192.168.0.241 
    port: 502 
    binary_sensors:
      - name: "Motion Living1"
        unique_id: motion_living1
        slave: 1
        address: 6315
        scan_interval: 1
        
      - name: "Door Shramba1"
        unique_id: door_shramba1
        slave: 1
        address: 6348
        scan_interval: 1
        
    sensors:
      - name: "Temperature Living1"
        unique_id: temperature_living1
#        precision: 0
#        scale: 0.1
        slave: 1
        address: 3498
        device_class: temperature
        state_class: measurement
        unit_of_measurement: °C
    lights: 
      - name: "Light Office1" 
        unique_id: light_office1
        slave: 1
        address: 6653
        write_type: coil 
        scan_interval: 1
        verify: