[2024.4.2] "Modbus no entities"

Just tried upgrading from 2024.3.3 to 2024.4.2 and suddenly Modbus says that I have no entities and isn’t loading. It’s been working like charm for the past year or so.

Did something change with the Modbus configuration in 2024.4.X?

Logger: homeassistant.components.modbus.validators
Source: components/modbus/validators.py:394
integration: Modbus (documentation, issues)
First occurred: 21:19:59 (1 occurrences)
Last logged: 21:19:59

Modbus gen24 contain no entities, this will cause instability, please add at least one entity!

I use Sunspec, and don’t need any enteties. How do I add a “dummy entity”?

It changed in 2024.4 https://rc.home-assistant.io/changelogs/core-2024.4
This is the relavent pull request
https://github.com/home-assistant/core/pull/113516

I’m not sure, as it isn’t applicable to my config, but I imagine you could just enter a fake entity following the guide at https://home-assistant.io/integrations/modbus For example a switch with a random address - just make sure it won’t interfere with your actual device.

modbus:
  - type: tcp
    host: IP_ADDRESS
    port: PORT
    switches:
      - name: DummySwitch
        address: 13
        write_type: coil
1 Like