From 241f4363f5ba7d78272936b0242b1e7666e09d14 Mon Sep 17 00:00:00 2001 From: Guido Schreuder Date: Mon, 19 Feb 2024 13:06:49 +0100 Subject: [PATCH] add test --- tests/components/ebus/test.esp32.yaml | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 tests/components/ebus/test.esp32.yaml diff --git a/tests/components/ebus/test.esp32.yaml b/tests/components/ebus/test.esp32.yaml new file mode 100644 index 0000000000..df49269859 --- /dev/null +++ b/tests/components/ebus/test.esp32.yaml @@ -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