diff --git a/tests/components/hdmi_cec/common_with_uart.yaml b/tests/components/hdmi_cec/common_with_uart.yaml index e38eb821f43..465d28c9781 100644 --- a/tests/components/hdmi_cec/common_with_uart.yaml +++ b/tests/components/hdmi_cec/common_with_uart.yaml @@ -17,12 +17,15 @@ hdmi_cec: promiscuous_mode: true monitor_mode: false on_message: - # Give Device Power Status - - opcode: 0x8F + - opcode: 0x8F # Give Device Power Status then: - - lambda: !lambda |- - id(cec).send(source, {0x90, 0x01}); - # Volume Up from TV remote - - data: [0x44, 0x41] + hdmi_cec.send: + destination: 0 # answer to TV + data: [0x90, 0x01] # power is 'standby' + - opcode: 0x8C # Give Device VendorID + then: + - lambda: |- + id(cec).send(0xf, {0x87, 0x00, 0x09, 0xb0}); // broadcast myself as Onkyo + - data: [0x44, 0x41] # Volume Up from TV remote then: - logger.log: "HDMI-CEC Volume Up" diff --git a/tests/components/hdmi_cec/test-no-uart.esp32-s3-ard.yaml b/tests/components/hdmi_cec/test-no-uart.esp32-s3-ard.yaml index 449ef5ebbab..6e51621aed9 100644 --- a/tests/components/hdmi_cec/test-no-uart.esp32-s3-ard.yaml +++ b/tests/components/hdmi_cec/test-no-uart.esp32-s3-ard.yaml @@ -1,5 +1,5 @@ # tested with Seeed Studio XIAO ESP32S3 substitutions: - cec_pin: GPIO12 + cec_pin: GPIO9 <<: !include common_no_uart.yaml diff --git a/tests/components/hdmi_cec/test-no-uart.esp32-s3-idf.yaml b/tests/components/hdmi_cec/test-no-uart.esp32-s3-idf.yaml new file mode 100644 index 00000000000..6e51621aed9 --- /dev/null +++ b/tests/components/hdmi_cec/test-no-uart.esp32-s3-idf.yaml @@ -0,0 +1,5 @@ +# tested with Seeed Studio XIAO ESP32S3 +substitutions: + cec_pin: GPIO9 + +<<: !include common_no_uart.yaml diff --git a/tests/components/hdmi_cec/test-with-uart.esp32-c3-idf.yaml b/tests/components/hdmi_cec/test-with-uart.esp32-c3-idf.yaml index 49817f7a32c..2398e25ac60 100644 --- a/tests/components/hdmi_cec/test-with-uart.esp32-c3-idf.yaml +++ b/tests/components/hdmi_cec/test-with-uart.esp32-c3-idf.yaml @@ -1,6 +1,6 @@ # tested with Seeed Studio XIAO ESP32C3 substitutions: - uart_pin: GPIO2 + uart_pin: GPIO21 cec_pin: GPIO10 <<: !include common_with_uart.yaml diff --git a/tests/components/hdmi_cec/test-with-uart.esp8266-ard.yaml b/tests/components/hdmi_cec/test-with-uart.esp8266-ard.yaml index 708a0108009..46e52553fe3 100644 --- a/tests/components/hdmi_cec/test-with-uart.esp8266-ard.yaml +++ b/tests/components/hdmi_cec/test-with-uart.esp8266-ard.yaml @@ -1,4 +1,3 @@ -# Note: this target relies on the missing '#define ESPHOME_THREAD_MULTI_ATOMICS' # tested with LOLIN D1 mini which has an esp8266ex substitutions: uart_pin: GPIO2