2024-11-07 16:00:48.556 ERROR (MainThread) [homeassistant.config] Invalid config for 'modbus' at configuration.yaml, line 43: required key 'baudrate' not provided, please check the docs at https://www.home-assistant.io/integrations/modbus
Invalid config for 'modbus' at configuration.yaml, line 43: required key 'bytesize' not provided, please check the docs at https://www.home-assistant.io/integrations/modbus
Invalid config for 'modbus' at configuration.yaml, line 43: required key 'method' not provided, please check the docs at https://www.home-assistant.io/integrations/modbus
Invalid config for 'modbus' at configuration.yaml, line 43: required key 'parity' not provided, please check the docs at https://www.home-assistant.io/integrations/modbus
Invalid config for 'modbus' at configuration.yaml, line 43: required key 'stopbits' not provided, please check the docs at https://www.home-assistant.io/integrations/modbus
Invalid config for 'modbus' at configuration.yaml, line 44: not a valid value for dictionary value 'modbus->0->type', got 'rtuovertcp', please check the docs at https://www.home-assistant.io/integrations/modbus
Invalid config for 'modbus' at configuration.yaml, line 45: 'host' is an invalid option for 'modbus', check: modbus->0->host, please check the docs at https://www.home-assistant.io/integrations/modbus
Invalid config for 'modbus' at configuration.yaml, line 49: 'retries' is an invalid option for 'modbus', check: modbus->0->retries, please check the docs at https://www.home-assistant.io/integrations/modbus
2024-11-07 16:00:48.556 ERROR (MainThread) [homeassistant.setup] Setup failed for 'modbus': Invalid config.
here is why this matters
when i cannot read the battery-charge state the inverter does not turn off draining the battery
i dont see what is wrong with the config suddenly? i did not change it.compairing it to the documentation… it looks fine… i read the last few update-notes, but could not find, whats wrong…
So it seems the Documentation is under construction… maybe some parameters changed?
Configuring a TCP-RTU connection
type: rtuovertcp is required. Used for devices providing a TCP/IP interface directly.
This is typically used, when communicating with a modbus-forwarder, a device that has a TCP/IP connection upwards, and one or more serial connections downwards*lets also write more here, to see if the error moves.*
That is what we’re here for I participated in the beta release but I do not use modbus myself, so I did not experioence this problem and I can’t confirm or deny.
a similar problem killed my lead acid battery in 2022. that was my reason to go from raspy to two raspis… one pnly being a lab/staging-installation, and later to a server-solution and to do updates on a staging server first…
Depricating an option and not ignoring or removing it from a config or pointing to the depricated option as the problem, but at stuff that does not matter… is a bug!
I wrote SMTP-Servercode that had do parse customers configurations and also be backward-compatible.
No one in his right mind would let an option - even a faulty one - create an error, that points to other options as faulty if they are still valid…
BUG!
I would in general propose to check the config against a Config-Schema like you would with a XML-Schema…
If an Option is mis-configured or invalid, this check can point at the misconfiguration or ask for the removal of depricated options.
I understand Homeassistant to be thought to serve any person setting up home automation. How many of those can be expected to read the Release-Notes in all detail?
It did point to it for months in your logs. Now that it’s removed, the warning is gone. Sorry, it’s not a bug.
How HA works, during deprecation periods a repair or warning will appear in your logs telling you to remove the yaml option. If you ignore that warning, when the option is finally removed after the 6 (or more) month grace period, you will get errors. This is what’s happening to you now. The only bug that could be argued is that the error should say “retries is an invalid option for modbus type rtuovertcp”
Dont take me too serious. I am happy it works now and since i am using a staging system anyways since another Modbus-Problem in 2022 killed a 5KWH Battery, nothing serious happened…
i just have to manually change a few “customers” configs also… which is why i still think homeassitant should - if it does not delete the option - after that grace-period gracefully comment it out…
@Nukular : Hast du eine eigene modbus.yaml - Datei?
Dann darf dort kein modbus: am anfang stehen.
Hast du in deiner modbus-Konfiguration einen Parameter retries stehen, dann mußt du den löschen,. da es ihn nicht mehr gibt und der die Konfiguration stört.
dont worry, dont flag this.
Its german and just says:
Do you have a dedicated modbus.yaml-file?
Make sure there is no modbus: at the start
Make sure your modbus-config does not include a retries-parameter.
If so, remove it. It disturbes the config.
Nukulars is not that proficiant in englisch, so he wrote in german.
Not everybody uses translation-tools or gpt yet.