-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Modbus sensor types #3980
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
Modbus sensor types #3980
Conversation
- **scale** (*Optional*): Scale factor (output = scale * value + offset), default 1 | ||
- **offset** (*Optional*): Final offset (output = scale * value + offset), default 0 | ||
- **precision** (*Optional*): Number of valid decimals, default 0 | ||
- **data_type** (*Optional*): Response representation (int, float). If float selected, value will be converted to IEEE 754 floating point format. default int | ||
- **data_type** (*Optional*): Response representation (int, uint, float, custom). If float selected, value will be converted to IEEE 754 floating point format. default int |
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.
"default int" the first word should be capitalized if starting a new sentence. Please end with period.
@@ -52,10 +52,12 @@ Configuration variables: | |||
- **register_type** (*Optional*): Modbus register type (holding, input), default holding | |||
- **unit_of_measurement** (*Optional*): Unit to attach to value. | |||
- **count** (*Optional*): Number of registers to read. | |||
- **reverse_order** (*Optional*): Reverse the order of registers when count >1, default False. | |||
- **scale** (*Optional*): Scale factor (output = scale * value + offset), default 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.
Same as above.
@@ -52,10 +52,12 @@ Configuration variables: | |||
- **register_type** (*Optional*): Modbus register type (holding, input), default holding | |||
- **unit_of_measurement** (*Optional*): Unit to attach to value. | |||
- **count** (*Optional*): Number of registers to read. | |||
- **reverse_order** (*Optional*): Reverse the order of registers when count >1, default False. | |||
- **scale** (*Optional*): Scale factor (output = scale * value + offset), default 1 | |||
- **offset** (*Optional*): Final offset (output = scale * value + offset), default 0 |
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.
Same as above.
@@ -52,10 +52,12 @@ Configuration variables: | |||
- **register_type** (*Optional*): Modbus register type (holding, input), default holding |
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.
This is old, but please end sentences consistently with period.
@@ -52,10 +52,12 @@ Configuration variables: | |||
- **register_type** (*Optional*): Modbus register type (holding, input), default holding | |||
- **unit_of_measurement** (*Optional*): Unit to attach to value. | |||
- **count** (*Optional*): Number of registers to read. | |||
- **reverse_order** (*Optional*): Reverse the order of registers when count >1, default False. | |||
- **scale** (*Optional*): Scale factor (output = scale * value + offset), default 1 | |||
- **offset** (*Optional*): Final offset (output = scale * value + offset), default 0 | |||
- **precision** (*Optional*): Number of valid decimals, default 0 |
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.
Same as above.
- **scale** (*Optional*): Scale factor (output = scale * value + offset), default 1 | ||
- **offset** (*Optional*): Final offset (output = scale * value + offset), default 0 | ||
- **precision** (*Optional*): Number of valid decimals, default 0 | ||
- **data_type** (*Optional*): Response representation (int, float). If float selected, value will be converted to IEEE 754 floating point format. default int | ||
- **data_type** (*Optional*): Response representation (int, uint, float, custom). If float selected, value will be converted to IEEE 754 floating point format. default int | ||
- **structure** (*Optional*): If data_type is custom specify here a double quoted python struct format string to unpack the value. See python documentation for details. Ex: ">i" |
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.
Please end with period.
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.
Thanks!
Description:
Pull request in home-assistant (if applicable): home-assistant/core#10409
Checklist:
current
. New documentation for platforms/components and features should go tonext
.