Skip to content

Commit 9a404b9

Browse files
ziotibia81MartinHjelmare
authored andcommitted
Modbus sensor types (home-assistant#3980)
* Typo * Added more sensor options * Style fix
1 parent 17c0072 commit 9a404b9

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

source/_components/sensor.modbus.markdown

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,15 @@ Configuration variables:
4949
- **name** (*Required*): Name of the sensor.
5050
- **slave** (*Required*): The number of the slave (Optional for tcp and upd Modbus).
5151
- **register** (*Required*): Register number.
52-
- **register_type** (*Optional*): Modbus register type (holding, input), default holding
52+
- **register_type** (*Optional*): Modbus register type (holding, input), default holding.
5353
- **unit_of_measurement** (*Optional*): Unit to attach to value.
5454
- **count** (*Optional*): Number of registers to read.
55-
- **scale** (*Optional*): Scale factor (output = scale * value + offset), default 1
56-
- **offset** (*Optional*): Final offset (output = scale * value + offset), default 0
57-
- **precision** (*Optional*): Number of valid decimals, default 0
58-
- **data_type** (*Optional*): Response representation (int, float). If float selected, value will be converted to IEEE 754 floating point format. default int
55+
- **reverse_order** (*Optional*): Reverse the order of registers when count >1, default False.
56+
- **scale** (*Optional*): Scale factor (output = scale * value + offset), default 1.
57+
- **offset** (*Optional*): Final offset (output = scale * value + offset), default 0.
58+
- **precision** (*Optional*): Number of valid decimals, default 0.
59+
- **data_type** (*Optional*): Response representation (int, uint, float, custom). If float selected, value will be converted to IEEE 754 floating point format. Default int.
60+
- **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".
5961
6062
It's possible to change the default 30 seconds scan interval for the sensor updates as shown in the [Platform options](/docs/configuration/platform_options/#scan-interval) documentation.
6163
@@ -72,7 +74,6 @@ sensor:
7274
slave: 10
7375
register: 0
7476
register_type: holding
75-
update_interval: 2.5
7677
unit_of_measurement: °C
7778
count: 1
7879
scale: 0.1

0 commit comments

Comments
 (0)