mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-08 01:46:50 +00:00
Update full example for modbus binary_sensor (#13717)
Someone did a bit of a drive by on the doc discord yesterday pointing out that the _full_ example with `scan_interval` hadn't been updated to reflect changes from home-assistant/core#30004. The first example was updated but not this one. I've also tweaked it to more closely match the top example The user haven't been back since to see they could of made the change, so here it is.
This commit is contained in:
parent
77250a3a5e
commit
a531c6a520
@ -74,13 +74,14 @@ Example a sensor with a 10 seconds scan interval:
|
||||
binary_sensor:
|
||||
- platform: modbus
|
||||
scan_interval: 10
|
||||
coils:
|
||||
inputs:
|
||||
- name: Sensor1
|
||||
hub: hub1
|
||||
slave: 1
|
||||
coil: 100
|
||||
address: 100
|
||||
- name: Sensor2
|
||||
hub: hub1
|
||||
slave: 1
|
||||
coil: 110
|
||||
address: 110
|
||||
input_type: discrete_input
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user