core: Modbus not working in 2023.2.0b4

The problem

Modbus stops working and HA cannot restart.

Removing modbus from configuration.yaml makes restart working.

What version of Home Assistant Core has the issue?

2023.2.0b4

What was the last working version of Home Assistant Core?

2023.1.x

What type of installation are you running?

Home Assistant OS

Integration causing the issue

modbus

Link to integration documentation on our website

https://www.home-assistant.io/integrations/modbus/

Diagnostics information

No response

Example YAML snippet

modbus:
  - name: "Nibe"
    type: tcp
    host: 192.168.1.93
    port: 502
    sensors:
      - name: "Til­lufts­fläkt hastighet 4"
        address: 1038
        slave: 1
        input_type: holding
        scan_interval: 303
        data_type: int16
      - name: "Til­lufts­fläkt hastighet 3"
        address: 1039
        slave: 1
        input_type: holding
        scan_interval: 303
        data_type: int16
      - name: "Til­lufts­fläkt hastighet 2"
        address: 1040
        slave: 1
        input_type: holding
        scan_interval: 303
        data_type: int16
      - name: "Til­lufts­fläkt hastighet 1"
        address: 1041
        slave: 1
        input_type: holding
        scan_interval: 303
        data_type: int16
      - name: "Til­lufts­fläkt hastighet Normal"
        address: 1042
        slave: 1
        input_type: holding
        scan_interval: 303
        data_type: int16
      - name: "ERS S10 - Ventilationsläge"
        address: 104
        slave: 1
        input_type: holding
        scan_interval: 16
        data_type: int16
      - name: "FranluftBT20"
        unit_of_measurement: °C
        address: 19
        count: 1
        precision: 1
        slave: 1
        input_type: input
        scale: 0.1
        scan_interval: 95
        data_type: int16
      - name: "AvluftBT21"
        unit_of_measurement: °C
        address: 20
        count: 1
        precision: 1
        slave: 1
        input_type: input
        scale: 0.1
        scan_interval: 95
        data_type: int16
      - name: "TilluftBT22"
        unit_of_measurement: °C
        address: 42
        count: 1
        precision: 1
        slave: 1
        input_type: input
        scale: 0.1
        scan_interval: 95
        data_type: int16

Anything in the logs that might be useful for us?

Component error: modbus - cannot import name 'ModbusBaseClient' from 'pymodbus.client' (/usr/local/lib/python3.10/site-packages/pymodbus/client/__init__.py)

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 23 (10 by maintainers)

Most upvoted comments

thanks for the explanation @johanschelin and the other option to use for solaredge . Just stumbled over the same problem after upgrading to the latest ha version.