Closed oscfor closed 1 month ago
Hey there @janiversen, mind taking a look at this issue as it has been labeled with an integration (modbus
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
modbus documentation modbus source (message by IssueLinks)
hmmm that seems like a bug, I will investigate.
Just checked the code, and it looks ok.
You have an invalid entry (as the log says) retry_on_empty, that might be the cause.
This is documented as a breaking change in the release notes. It is recommended to read the release notes before upgrading, it can help avoid problems.
Closing since it is not a bug.
I've the some error, but after remove:
#close_comm_on_error: true
its work.
My config:
- type: rtuovertcp
name: hub1
host: 192.168.1.8
port: 503
#close_comm_on_error: true
delay: 0
message_wait_milliseconds: 30
#retries: 3
timeout: 5
Just read the release notes it's all in there.
The problem
After updating to 2024.4.0 I get the following error:
Configuration warnings Invalid config for 'modbus' at modbus/ctc.yaml, line 1: not a valid value for dictionary value 'modbus->0->type', got 'tcp' Invalid config for 'modbus' at modbus/ctc.yaml, line 1: required key 'baudrate' not provided Invalid config for 'modbus' at modbus/ctc.yaml, line 1: required key 'bytesize' not provided Invalid config for 'modbus' at modbus/ctc.yaml, line 1: required key 'method' not provided Invalid config for 'modbus' at modbus/ctc.yaml, line 1: required key 'parity' not provided Invalid config for 'modbus' at modbus/ctc.yaml, line 1: required key 'stopbits' not provided Invalid config for 'modbus' at modbus/ctc.yaml, line 3: 'host' is an invalid option for 'modbus', check: modbus->0->host Invalid config for 'modbus' at modbus/ctc.yaml, line 6: 'retry_on_empty' is an invalid option for 'modbus', check: modbus->0->retry_on_empty
What version of Home Assistant Core has the issue?
core-2024.4.0
What was the last working version of Home Assistant Core?
2024.3.3
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
Anything in the logs that might be useful for us?
Additional information
It looks like it doesn't understand tcp any more, only serial connection.