Skip to content

Commit 544f90d

Browse files
ziotibia81fabaff
authored andcommitted
Modbus Sensor: Clarify how to use scan_interval (home-assistant#3578)
* Clarify how to use scan_interval Many forum posts and issues ask how to change the scan_interval for modbus sensor. This patch clarify the configuration parameters. * Fix typos and add example * There are more options
1 parent d3ba5fd commit 544f90d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

source/_components/sensor.modbus.markdown

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,27 @@ Configuration variables:
5656
- **offset** (*Optional*): Final offset (output = scale * value + offset), default 0
5757
- **precision** (*Optional*): Number of valid decimals, default 0
5858
- **data_type** (*Optional*): Response representation (int, float). If float selected, value will be converted to IEEE 754 floating point format. default int
59+
60+
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.
61+
62+
### {% linkable_title Full example %}
63+
64+
Example a tmeperature sensor with a 10 seconds scan interval:
65+
66+
```yaml
67+
sensor:
68+
- platform: modbus
69+
scan_interval: 5
70+
registers:
71+
- name: Room_1
72+
slave: 10
73+
register: 0
74+
register_type: holding
75+
update_interval: 2.5
76+
unit_of_measurement: °C
77+
count: 1
78+
scale: 0.1
79+
offset: 0
80+
precision: 1
81+
data_type: int
82+
```

0 commit comments

Comments
 (0)