prepare for when UART PR#4465 is merged.

This commit is contained in:
Your Name
2023-03-20 14:38:33 +01:00
parent 9ce5eb1f38
commit b95c246c20
9 changed files with 163 additions and 4 deletions

5
tests/.gitignore vendored Normal file
View File

@@ -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

View File

@@ -0,0 +1,41 @@
esphome:
name: "esp32-ard-uart"
on_boot:
then:
# read time from external source (connected via I2C)
- ds1307.read_time
external_components:
# https://github.com/esphome/esphome/pull/4465
- source: github://pr#4465
components: [uart]
- source:
type: local
path: ../components
components: [truma_inetbox]
esp32:
board: esp32dev
framework:
type: arduino
i2c:
sda: 14
scl: 27
scan: false
id: i2c_bus_a
time:
- platform: ds1307
update_interval: never
id: esptime
uart: !include test.common.uart.yaml
truma_inetbox: !include test.common.truma_inetbox.yaml
binary_sensor: !include test.common.binary_sensor.yaml
button: !include test.common.button.yaml
climate: !include test.common.climate.yaml
number: !include test.common.number.yaml
sensor: !include test.common.sensor.yaml
switch: !include test.common.switch.yaml

View File

@@ -0,0 +1,41 @@
esphome:
name: "esp32-idf-uart"
on_boot:
then:
# read time from external source (connected via I2C)
- ds1307.read_time
external_components:
# https://github.com/esphome/esphome/pull/4465
- source: github://pr#4465
components: [uart]
- source:
type: local
path: ../components
components: [truma_inetbox]
esp32:
board: esp32dev
framework:
type: esp-idf
i2c:
sda: 14
scl: 27
scan: false
id: i2c_bus_a
time:
- platform: ds1307
update_interval: never
id: esptime
uart: !include test.common.uart.yaml
truma_inetbox: !include test.common.truma_inetbox.yaml
binary_sensor: !include test.common.binary_sensor.yaml
button: !include test.common.button.yaml
climate: !include test.common.climate.yaml
number: !include test.common.number.yaml
sensor: !include test.common.sensor.yaml
switch: !include test.common.switch.yaml

View File

@@ -0,0 +1,41 @@
esphome:
name: "rp2040-uart"
on_boot:
then:
# read time from external source (connected via I2C)
- ds1307.read_time
external_components:
# https://github.com/esphome/esphome/pull/4465
- source: github://pr#4465
components: [uart]
- source:
type: local
path: ../components
components: [truma_inetbox]
rp2040:
board: rpipicow
framework:
platform_version: https://github.com/maxgerhardt/platform-raspberrypi.git
i2c:
sda: 14
scl: 27
scan: false
id: i2c_bus_a
time:
- platform: ds1307
update_interval: never
id: esptime
uart: !include test.common.uart.yaml
truma_inetbox: !include test.common.truma_inetbox.yaml
binary_sensor: !include test.common.binary_sensor.yaml
button: !include test.common.button.yaml
climate: !include test.common.climate.yaml
number: !include test.common.number.yaml
sensor: !include test.common.sensor.yaml
switch: !include test.common.switch.yaml