diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 22eaef8..03bc6bd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/tests/test.esp32_ard.notime.yaml b/tests/test.esp32_ard.notime.yaml new file mode 100644 index 0000000..918b7f5 --- /dev/null +++ b/tests/test.esp32_ard.notime.yaml @@ -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 \ No newline at end of file