mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
add test
This commit is contained in:
parent
2d4959d8c6
commit
241f4363f5
1 changed files with 37 additions and 0 deletions
37
tests/components/ebus/test.esp32.yaml
Normal file
37
tests/components/ebus/test.esp32.yaml
Normal file
|
@ -0,0 +1,37 @@
|
|||
ebus:
|
||||
primary_address: 0x00
|
||||
history_queue_size: 32
|
||||
command_queue_size: 16
|
||||
poll_interval: "15s"
|
||||
uart:
|
||||
num: 1
|
||||
tx_pin: 33
|
||||
rx_pin: 32
|
||||
|
||||
sensor:
|
||||
- platform: ebus
|
||||
sensors:
|
||||
- name: "Water Pressure"
|
||||
id: zebus_water_pressure
|
||||
telegram:
|
||||
destination: 0x03
|
||||
command: 0xb509
|
||||
payload: [0x0d, 0x02, 0x00]
|
||||
decode:
|
||||
position: 0
|
||||
bytes: 2
|
||||
divider: 1000.0
|
||||
device_class: "pressure"
|
||||
unit_of_measurement: bar
|
||||
state_class: "measurement"
|
||||
accuracy_decimals: 3
|
||||
internal: false
|
||||
filters:
|
||||
- clamp:
|
||||
min_value: 0
|
||||
max_value: 4
|
||||
ignore_out_of_range: true
|
||||
- median:
|
||||
window_size: 5
|
||||
send_every: 3
|
||||
send_first_at: 3
|
Loading…
Reference in a new issue