Modbus binary sensor scan_interval clarify. (#3585)
Alignment documentation along the same lines as modbus sensor.
This commit is contained in:
parent
92e9877c0e
commit
619a2c3a37
1 changed files with 19 additions and 0 deletions
|
@ -36,3 +36,22 @@ Configuration variables:
|
|||
- **name** (*Required*): Name of the sensor.
|
||||
- **slave** (*Required*): The number of the slave (Optional for TCP and UDP Modbus).
|
||||
- **coil** (*Required*): Coil number.
|
||||
|
||||
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.
|
||||
|
||||
### {% linkable_title Full example %}
|
||||
|
||||
Example a sensor with a 10 seconds scan interval:
|
||||
|
||||
```yaml
|
||||
binary_sensor:
|
||||
- platform: modbus
|
||||
scan_interval: 10
|
||||
coils:
|
||||
- name: Sensor1
|
||||
slave: 1
|
||||
coil: 100
|
||||
- name: Sensor2
|
||||
slave: 1
|
||||
coil: 110
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue