add test w/o time.

This commit is contained in:
Your Name 2023-03-22 20:06:12 +01:00
parent 0956a94c38
commit 29386094cb
2 changed files with 38 additions and 0 deletions

View File

@ -26,6 +26,10 @@ jobs:
fail-fast: false
matrix:
include:
- id: test
file: tests/test.esp32_ard.notime.yaml
name: Test tests/test.esp32_ard.notime.yaml
pio_cache_key: test.esp32_ard.notime
- id: test
file: tests/test.esp32_ard.uart.yaml
name: Test tests/test.esp32_ard.uart.yaml

View File

@ -0,0 +1,34 @@
esphome:
name: "esp32-ard-notime"
external_components:
- source:
type: local
path: ../components
components: ["truma_inetbox", "uart"]
esp32:
board: esp32dev
framework:
type: arduino
uart: !include test.common.uart.yaml
truma_inetbox:
uart_id: lin_uart_bus
cs_pin: 5
fault_pin: 18
# Advanced users can use `on_heater_message` action. The heater data is in the `message` variable.
on_heater_message:
then:
- logger.log: "Message from CP Plus."
- if:
condition:
lambda: return message->operating_status == truma_inetbox::OperatingStatus::OPERATING_STATUS_OFF;
then:
- logger.log: "Heater is off."
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