-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation for modbus timeout PR #3570
Conversation
source/_components/modbus.markdown
Outdated
``` | ||
|
||
Configuration variables: | ||
|
||
- **type** (*Required*): Type of the connection to Modbus. | ||
- **host** (*Required*): The IP address of your Modbus device, eg. 192.168.1.1. | ||
- **port** (*Required*): The port for the communication. | ||
- **timeout** (*Optional*): Timeout for slave response in seconds. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And please add the default value.
source/_components/modbus.markdown
Outdated
@@ -46,6 +48,7 @@ modbus: | |||
stopbits: 1 | |||
bytesize: 8 | |||
parity: N | |||
timeout: 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dito
source/_components/modbus.markdown
Outdated
@@ -26,13 +26,15 @@ modbus: | |||
type: tcp | |||
host: IP_ADDRESS | |||
port: 2020 | |||
timeout: 0.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We try to keep all configuration samples minimal. Thus, no optional requirement in the default sample. This helps user to get started quickly by copy-&-paste the sample without worrying about optional parameters which they most likely not need. If required, insert a full configuration sample later that covers special setups or alike.
Description:
Pull request in home-assistant (if applicable): home-assistant/core#9780