mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 03:16:37 +00:00
test: Create zwave_proxy_tap
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
# Gitignore settings for ESPHome
|
||||
# This is an example and may include too much for your use-case.
|
||||
# You can modify this file to suit your needs.
|
||||
/.esphome/
|
||||
/secrets.yaml
|
||||
@@ -0,0 +1,16 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
power_save_mode: none
|
||||
|
||||
api:
|
||||
|
||||
# The port owns the UART and carries every byte; zwave_proxy_tap only taps it
|
||||
serial_proxy:
|
||||
- id: zwave_serial
|
||||
uart_id: uart_bus
|
||||
name: Z-Wave
|
||||
port_type: TTL
|
||||
|
||||
zwave_proxy_tap:
|
||||
serial_proxy_id: zwave_serial
|
||||
@@ -0,0 +1,27 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
power_save_mode: none
|
||||
|
||||
api:
|
||||
|
||||
usb_host:
|
||||
|
||||
# port_type is omitted deliberately: a port on a USB UART channel derives USB_SERIAL
|
||||
usb_uart:
|
||||
- type: CDC_ACM
|
||||
vid: 0x0658
|
||||
pid: 0x0200
|
||||
channels:
|
||||
- id: zwave_usb_channel
|
||||
baud_rate: 115200
|
||||
|
||||
# The tapped port may be a USB CDC ACM channel just as well as a hardware UART:
|
||||
# zwave_proxy_tap never touches the UART itself, so it does not care which it is.
|
||||
serial_proxy:
|
||||
- id: zwave_usb_serial
|
||||
uart_id: zwave_usb_channel
|
||||
name: Z-Wave
|
||||
|
||||
zwave_proxy_tap:
|
||||
serial_proxy_id: zwave_usb_serial
|
||||
@@ -0,0 +1,3 @@
|
||||
packages:
|
||||
uart: !include ../../test_build_components/common/uart/esp32-idf.yaml
|
||||
zwave_proxy_tap: !include common.yaml
|
||||
@@ -0,0 +1,3 @@
|
||||
packages:
|
||||
uart: !include ../../test_build_components/common/uart/esp8266-ard.yaml
|
||||
zwave_proxy_tap: !include common.yaml
|
||||
@@ -0,0 +1,3 @@
|
||||
packages:
|
||||
uart: !include ../../test_build_components/common/uart/rp2040-ard.yaml
|
||||
zwave_proxy_tap: !include common.yaml
|
||||
Reference in New Issue
Block a user