mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 21:36:52 +00:00
Add support of modbus input registers query (#2423)
* Add support of modbus input registers query Documentation updated according pull request. Add support of modbus input registers query * Update sensor.modbus.markdown Removed some extra space. * Update according main PR change config option name was changed.
This commit is contained in:
parent
af0537278a
commit
5e6235d80e
@ -35,6 +35,8 @@ sensor:
|
||||
unit_of_measurement: °C
|
||||
slave: 1
|
||||
register: 120
|
||||
register_type: input
|
||||
data_type: float
|
||||
scale: 0.01
|
||||
offset: -273.16
|
||||
precision: 2
|
||||
@ -46,8 +48,10 @@ Configuration variables:
|
||||
- **name** (*Required*): Name of the sensor.
|
||||
- **slave** (*Required*): The number of the slave (Optional for tcp and upd Modbus).
|
||||
- **register** (*Required*): Register number.
|
||||
- **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.
|
||||
- **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
|
||||
|
Loading…
x
Reference in New Issue
Block a user