Unavailable modbus device locks homeassistant

I can read-out my solarpanel inverter through modbus/RS485
i’ve connected a USB modbus stick to my raspberry pi 3B (not 3B+) with home assistant OS
every day when the sun goes down and my inverter shuts down, the modbus device becomes unavailable.
in a previous release, I think until the first release this year, the word “unavailable” was shown on my display for each sensor.
recently it shows the last status just before shutdown and after a few hours my rpi becomes unresponsive.
when i unplug the usb-stick my rpi becomes responsive again.
I don’t get any errors in any log.
with just 1 register to read, I don’t get this behaviour

part of the configuration file:

modbus:
  name: hub1
  type: serial
  method: rtu
  port: /dev/ttyUSB0
  baudrate: 9600
  stopbits: 1
  bytesize: 8
  parity: N
  sensors:
    - name: Huidige productie
      slave: 1
      address: 3005
      unit_of_measurement: W
      count: 1
      device_class: power
      data_type: uint
      input_type: input
      
    - name: Totale productie
      slave: 1
      address: 3009
      device_class: energy
      data_type: uint
      unit_of_measurement: kWh
      input_type: input
      count: 1
    - name: Maand productie
      slave: 1
      address: 3011
      device_class: energy
      data_type: uint
      precision: 2
      unit_of_measurement: kWh
      input_type: input

any idea’s how to prevent this?

1 Like