Remove tests for c3 and 8266 platforms, remove test doc_example

This commit is contained in:
Jos van Eijndhoven
2026-04-29 21:11:20 +02:00
parent 3b9d62a586
commit dd5d8133e4
14 changed files with 0 additions and 349 deletions
@@ -1,2 +0,0 @@
secrets.yaml
.esphome/
@@ -1,152 +0,0 @@
Hard resetting via RTS pin...
INFO Successfully uploaded program.
INFO Starting log output from /dev/ttyACM0 with baud rate 115200
[19:44:30][I][logger:171]: Log initialized
[19:44:30][C][safe_mode:079]: There have been 1 suspected unsuccessful boot attempts
[19:44:30][D][esp32.preferences:114]: Saving 1 preferences to flash...
[19:44:30][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[19:44:30][I][app:029]: Running through setup()...
[19:44:30][C][uart.arduino_esp32:077]: Setting up UART...
[19:44:30][D][esp32:117]: rtc: 1
[19:44:30][D][binary_sensor:034]: 'Hdmi TV Detect': Sending initial state OFF
[19:44:30][D][esp32:117]: rtc: 1
[19:44:30][ 205][E][HardwareSerial.cpp:525] setRxBufferSize(): RX Buffer can't be resized when Serial is already running.
[19:44:30]
[19:44:30][D][hdmi_cec:279]: Set uart configuration for CEC
[19:44:30][C][wifi:048]: Setting up WiFi...
[19:44:30][C][wifi:061]: Starting WiFi...
[19:44:30][C][wifi:062]: Local MAC: D8:3B:DA:46:F1:A8
[19:44:30][D][wifi:482]: Starting scan...
[19:44:30][W][component:167]: Component wifi set Warning flag: scanning for networks
[19:44:36][D][wifi:497]: Found networks:
...
[19:44:49][I][wifi:313]: WiFi Connecting to 'vaneijndhoven'...
[19:44:51][I][wifi:617]: WiFi Connected!
[19:44:51][C][wifi:428]: Local MAC: D8:3B:DA:46:F1:A8
[19:44:51][C][wifi:433]: SSID: 'vaneijndhoven'
[19:44:51][C][wifi:436]: IP Address: 192.168.178.120
[19:44:51][C][wifi:440]: BSSID: E4:FA:C4:B8:16:86
[19:44:51][C][wifi:441]: Hostname: 'test_cec_s3'
[19:44:51][C][wifi:443]: Signal strength: -60 dB ▂▄▆█
[19:44:51][C][wifi:447]: Channel: 2
[19:44:51][C][wifi:448]: Subnet: 255.255.255.0
[19:44:51][C][wifi:449]: Gateway: 192.168.178.1
[19:44:51][C][wifi:450]: DNS1: 192.168.123.1
[19:44:51][C][wifi:451]: DNS2: 192.168.178.1
[19:44:51][D][wifi:626]: Disabling AP...
[19:44:51][C][api:030]: Setting up Home Assistant API server...
[19:44:51][I][app:066]: setup() finished successfully!
[19:44:51][W][component:182]: Component wifi cleared Warning flag
[19:44:51][W][component:167]: Component api set Warning flag: unspecified
[19:44:51][I][app:115]: ESPHome version 2025.6.0-dev compiled on Jun 15 2025, 19:44:17
[19:44:51][C][wifi:600]: WiFi:
[19:44:51][C][wifi:428]: Local MAC: D8:3B:DA:46:F1:A8
[19:44:51][C][wifi:433]: SSID: 'vaneijndhoven'
[19:44:51][C][wifi:436]: IP Address: 192.168.178.120
[19:44:51][C][wifi:440]: BSSID: E4:FA:C4:B8:16:86
[19:44:51][C][wifi:441]: Hostname: 'test_cec_s3'
[19:44:51][C][wifi:443]: Signal strength: -60 dB ▂▄▆█
[19:44:51][C][wifi:447]: Channel: 2
[19:44:51][C][wifi:448]: Subnet: 255.255.255.0
[19:44:51][C][wifi:449]: Gateway: 192.168.178.1
[19:44:51][C][wifi:450]: DNS1: 192.168.123.1
[19:44:51][C][wifi:451]: DNS2: 192.168.178.1
[19:44:51][C][logger:224]: Logger:
[19:44:51][C][logger:225]: Max Level: DEBUG
[19:44:51][C][logger:226]: Initial Level: DEBUG
[19:44:51][C][logger:228]: Log Baud Rate: 115200
[19:44:51][C][logger:229]: Hardware UART: USB_CDC
[19:44:51][C][logger:233]: Task Log Buffer Size: 768
[19:44:51][C][uart.arduino_esp32:151]: UART Bus 0:
[19:44:51][C][uart.arduino_esp32:152]: TX Pin: GPIO7
[19:44:51][C][uart.arduino_esp32:157]: Baud Rate: 2083 baud
[19:44:51][C][uart.arduino_esp32:158]: Data Bits: 8
[19:44:51][C][uart.arduino_esp32:159]: Parity: NONE
[19:44:51][C][uart.arduino_esp32:160]: Stop bits: 1
[19:44:51][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Hdmi TV Detect'
[19:44:51][C][gpio.binary_sensor:016]: Pin: GPIO8
[19:44:51][C][hdmi_cec:089]: HDMI-CEC
[19:44:51][C][hdmi_cec:090]: address: 0xe
[19:44:51][C][hdmi_cec:091]: physical address: 0x2000
[19:44:51][C][hdmi_cec:287]: pin: GPIO9
[19:44:51][C][hdmi_cec:288]: has UART: yes
[19:44:51][C][hdmi_cec:593]: monitor mode: no
[19:44:51][C][hdmi_cec:594]: promiscuous mode: no
[19:44:51][C][captive_portal:089]: Captive Portal:
[19:44:51][C][mdns:120]: mDNS:
[19:44:51][C][mdns:121]: Hostname: test_cec_s3
[19:44:51][C][esphome.ota:073]: Over-The-Air updates:
[19:44:51][C][esphome.ota:074]: Address: test_cec_s3.local:3232
[19:44:51][C][esphome.ota:075]: Version: 2
[19:44:51][C][esphome.ota:078]: Password configured
[19:44:51][D][text_sensor:064]: 'TestCEC IP': Sending state '192.168.178.120'
[19:44:51][C][safe_mode:018]: Safe Mode:
[19:44:51][C][safe_mode:020]: Boot considered successful after 60 seconds
[19:44:51][C][safe_mode:021]: Invoke after 10 boot attempts
[19:44:51][C][safe_mode:023]: Remain in safe mode for 300 seconds
[19:44:51][C][api:170]: API Server:
[19:44:51][C][api:171]: Address: test_cec_s3.local:6053
[19:44:51][C][api:173]: Using noise encryption: YES
[19:44:51][C][wifi_info:010]: WifiInfo IPAddress 'TestCEC IP'
[19:44:51][C][wifi_info:010]: Icon: 'mdi:ip-network'
[19:44:51][D][UART:035]: UART is HW: yes
[19:44:51][D][hdmi_cec:382]: Send message from queue: EF:90:00 => SpecificUse to All: <Report Power Status>[On]
[19:44:52][D][hdmi_cec:346]: Send frame success in 1 attempt
[19:44:59][D][api:122]: Accepted 192.168.178.194
[19:44:59][W][component:182]: Component api cleared Warning flag
[19:44:59][D][api.connection:1533]: Home Assistant 2025.6.1 (192.168.178.194): Connected successfully
[19:45:30][I][safe_mode:041]: Boot seems successful; resetting boot loop counter
[19:45:30][D][esp32.preferences:114]: Saving 1 preferences to flash...
[19:45:30][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[19:45:59][D][binary_sensor:036]: 'Hdmi TV Detect': Sending state ON
[19:45:59][D][main:399]: HDMI Power Detect On
[19:46:01][D][hdmi_cec:127]: frame received: 0E:83 => TV to SpecificUse: <Give Physical Address>[]
[19:46:01][D][hdmi_cec:382]: Send message from queue: EF:84:20:00:04 => SpecificUse to All: <Report Physical Address>[2.0.0.0][Playback Device]
[19:46:02][D][hdmi_cec:346]: Send frame success in 1 attempt
[19:46:02][D][hdmi_cec:127]: frame received: 4F:84:40:00:04 => PlaybackDev1 to All: <Report Physical Address>[4.0.0.0][Playback Device]
[19:46:02][D][hdmi_cec:127]: frame received: 0E:46 => TV to SpecificUse: <Give OSD Name>[]
[19:46:02][D][hdmi_cec:382]: Send message from queue: E0:47:65:73:70:68:6F:6D:65 => SpecificUse to TV: <Set OSD Name>[esphome]
[19:46:02][D][hdmi_cec:346]: Send frame success in 1 attempt
[19:46:03][D][hdmi_cec:127]: frame received: 0E:8C => TV to SpecificUse: <Give Device Vendor ID>[]
[19:46:03][D][hdmi_cec:382]: Send message from queue: E0:00:8C:00 => SpecificUse to TV: <Feature Abort>[Give Device Vendor ID][Unrecognized opcode]
[19:46:03][D][hdmi_cec:346]: Send frame success in 1 attempt
[19:46:03][D][hdmi_cec:127]: frame received: 4F:87:08:00:46 => PlaybackDev1 to All: <Device Vendor ID>[Sony]
[19:46:37][D][hdmi_cec:127]: frame received: 0E:8F => TV to SpecificUse: <Give Device Power Status>[]
[19:46:37][D][hdmi_cec:382]: Send message from queue: E0:90:00 => SpecificUse to TV: <Report Power Status>[On]
[19:46:37][D][hdmi_cec:346]: Send frame success in 1 attempt
[19:46:56][D][button:010]: 'TV Volume Down' Pressed.
[19:46:56][D][hdmi_cec:382]: Send message from queue: E0:44:42 => SpecificUse to TV: <User Control Pressed>[Volume Down]
[19:46:56][D][hdmi_cec:346]: Send frame success in 1 attempt
[19:47:03][D][button:010]: 'TV Volume Up' Pressed.
[19:47:03][D][hdmi_cec:382]: Send message from queue: E0:44:41 => SpecificUse to TV: <User Control Pressed>[Volume Up]
[19:47:03][D][hdmi_cec:346]: Send frame success in 1 attempt
[19:47:09][D][button:010]: 'Standby All' Pressed.
[19:47:09][D][hdmi_cec:382]: Send message from queue: EF:36 => SpecificUse to All: <Standby>[]
[19:47:09][D][hdmi_cec:346]: Send frame success in 1 attempt
[19:47:10][D][hdmi_cec:127]: frame received: 0F:A0:08:00:46:00:09:00:01 => TV to All: <Vendor Command With ID>[Sony][.]
[19:47:21][D][button:010]: 'TV Power On' Pressed.
[19:47:21][D][hdmi_cec:382]: Send message from queue: E0:44:6D => SpecificUse to TV: <User Control Pressed>[Power On Function]
[19:47:21][D][hdmi_cec:346]: Send frame success in 1 attempt
[19:47:22][D][hdmi_cec:127]: frame received: 0F:84:00:00:00 => TV to All: <Report Physical Address>[0.0.0.0][TV]]
[19:47:22][D][hdmi_cec:127]: frame received: 0F:87:08:00:46 => TV to All: <Device Vendor ID>[Sony]
[19:47:22][D][hdmi_cec:127]: frame received: 0F:82:00:00 => TV to All: <Active Source>[0.0.0.0]
[19:47:23][D][hdmi_cec:127]: frame received: 0F:A0:08:00:46:00:13:00:10:00:90:01:00:00:00:00 => TV to All: <Vendor Command With ID>[Sony][.]
[19:47:24][D][hdmi_cec:127]: frame received: 0E:83 => TV to SpecificUse: <Give Physical Address>[]
[19:47:24][D][hdmi_cec:382]: Send message from queue: EF:84:20:00:04 => SpecificUse to All: <Report Physical Address>[2.0.0.0][Playback Device]
[19:47:25][D][hdmi_cec:346]: Send frame success in 1 attempt
[19:47:25][D][hdmi_cec:127]: frame received: 4F:84:40:00:04 => PlaybackDev1 to All: <Report Physical Address>[4.0.0.0][Playback Device]
[19:47:25][D][hdmi_cec:127]: frame received: 4F:84:40:00:04 => PlaybackDev1 to All: <Report Physical Address>[4.0.0.0][Playback Device]
[19:47:25][D][hdmi_cec:127]: frame received: 0E:46 => TV to SpecificUse: <Give OSD Name>[]
[19:47:25][D][hdmi_cec:382]: Send message from queue: E0:47:65:73:70:68:6F:6D:65 => SpecificUse to TV: <Set OSD Name>[esphome]
[19:47:25][D][hdmi_cec:346]: Send frame success in 1 attempt
[19:47:26][D][hdmi_cec:127]: frame received: 0E:8C => TV to SpecificUse: <Give Device Vendor ID>[]
[19:47:26][D][hdmi_cec:382]: Send message from queue: E0:00:8C:00 => SpecificUse to TV: <Feature Abort>[Give Device Vendor ID][Unrecognized opcode]
[19:47:26][D][hdmi_cec:346]: Send frame success in 1 attempt
[19:47:26][D][hdmi_cec:127]: frame received: 4F:87:08:00:46 => PlaybackDev1 to All: <Device Vendor ID>[Sony]
[19:47:26][D][hdmi_cec:127]: frame received: 0E:8F => TV to SpecificUse: <Give Device Power Status>[]
[19:47:26][D][hdmi_cec:382]: Send message from queue: E0:90:00 => SpecificUse to TV: <Report Power Status>[On]
[19:47:26][D][hdmi_cec:346]: Send frame success in 1 attempt
[19:47:27][D][hdmi_cec:127]: frame received: 0E:8F => TV to SpecificUse: <Give Device Power Status>[]
[19:47:27][D][hdmi_cec:382]: Send message from queue: E0:90:00 => SpecificUse to TV: <Report Power Status>[On]
[19:47:27][D][hdmi_cec:346]: Send frame success in 1 attempt
[19:47:43][D][binary_sensor:036]: 'Hdmi TV Detect': Sending state OFF
@@ -1,12 +0,0 @@
# test demo example on esp32c3
substitutions:
name: test_cec_c3
board: seeed_xiao_esp32c3
framework: esp-idf
cec_pin: GPIO10
hpd_pin: GPIO9
uart_pin: GPIO8
# GPIO8 and 9 are strapping pins on C3: at least the 'hpd' pull-down seems to NOT work
has_hw_uart: (!id(cec_uart)->is_failed())
<<: !include test_doc_uart_common.yaml
@@ -1,11 +0,0 @@
# test demo example on esp32s3
substitutions:
name: test_cec_s3
board: esp32-s3-devkitc-1
framework: arduino
cec_pin: GPIO9
hpd_pin: GPIO8
uart_pin: GPIO7
has_hw_uart: (!id(cec_uart)->is_failed())
<<: !include test_doc_uart_common.yaml
@@ -1,11 +0,0 @@
# test demo example on esp32s3
substitutions:
name: test_cec_s3
board: esp32-s3-devkitc-1
framework: esp-idf
cec_pin: GPIO9
hpd_pin: GPIO8
uart_pin: GPIO7
has_hw_uart: (!id(cec_uart)->is_failed())
<<: !include test_doc_uart_common.yaml
@@ -1,116 +0,0 @@
# Test hdmi_cec example as shown in the 'esphome doc' for this component
# This includes wifi and Home Assistant connections, which is not in the basic component tests
# Enable Home Assistant API
api:
id: api_id
encryption:
key: !secret api_key
ota:
- platform: esphome
password: !secret ota_pw
wifi:
reboot_timeout: 0s
networks:
- ssid: !secret wifi_home_ssid
password: !secret wifi_home_pw
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "TestCEC Fallback Hotspot"
password: "66FTMlSxkf38"
captive_portal:
esphome:
name: ${name}
on_boot:
priority: -100
then:
- lambda: !lambda |-
id(hdmi_hpd).setup();
- delay: 200ms
- lambda: !lambda |-
bool is_hw_uart = ${has_hw_uart};
ESP_LOGD("UART", "UART is OK: %s", (is_hw_uart ? "yes" : "NO!"));
// As example, not required: Check if hdmi is connected, then broadcast my presence
if (id(hdmi_hpd).state) {
// broadcast my physical address to announce my presence
const uint8_t opcode_report_pa = 0x84;
const uint8_t dev_type = id(cec).get_device_type();
const uint16_t phys_addr = id(cec).get_physical_address();
const std::vector<uint8_t> message = {opcode_report_pa, (uint8_t)(phys_addr >> 8),
(uint8_t)(phys_addr & 0xff), dev_type };
id(cec).send(0xf, message);
}
esp32:
board: ${board}
framework:
type: ${framework}
# Enable logging
logger:
level: DEBUG
uart:
id: cec_uart
tx_pin: ${uart_pin}
baud_rate: 115200
button:
- platform: template
name: "Standby All"
on_press:
- hdmi_cec.send:
# "source" can optionally be set, like if you want to spoof another device's address
destination: 0xF # broadcast to all hdmi devices
data: [0x36] # "Standby" opcode
- platform: template
name: "TV Power On"
on_press:
- hdmi_cec.send:
destination: 0x0 # to TV
data: [0x04] # "Image View On"
- platform: template
name: "TV Volume Up"
on_press:
- hdmi_cec.send:
destination: 0x0 # to TV
data: [0x44, 0x41] # UI command, "Volume Up"
- platform: template
name: "TV Volume Down"
on_press:
# as example, using the api: component.send( destination, {opcode, parameters..} )
- lambda: !lambda |-
id(cec).send(0x0, {0x44, 0x42}); // UI command, "Volume Down"
binary_sensor:
- platform: gpio
pin:
number: ${hpd_pin}
mode:
# hpd high denotes hdmi is plugged-in
input: true
pulldown: true
id: hdmi_hpd
name: "Hdmi TV Detect"
on_press:
then:
- logger.log: "HDMI Power Detect On"
text_sensor:
- platform: wifi_info
ip_address:
id: my_ip_address
name: "TestCEC IP"
icon: mdi:ip-network
hdmi_cec:
id: cec
pin: ${cec_pin} # to HDMI pin 13 (CEC), with HDMI pin 17 (DDC/CEC ground)
address: 0xE
physical_address: 0x2000
uart_id: cec_uart
@@ -1,4 +0,0 @@
substitutions:
cec_pin: GPIO12
<<: !include common_no_uart.yaml
@@ -1,5 +0,0 @@
# tested with Seeed Studio XIAO ESP32C3
substitutions:
cec_pin: GPIO10
<<: !include common_no_uart.yaml
@@ -1,5 +0,0 @@
# tested with Seeed Studio XIAO ESP32C3
substitutions:
cec_pin: GPIO10
<<: !include common_no_uart.yaml
@@ -1,5 +0,0 @@
# tested with LOLIN D1 mini which has an esp8266ex
substitutions:
cec_pin: GPIO14
<<: !include common_no_uart.yaml
@@ -1,5 +0,0 @@
substitutions:
uart_pin: GPIO10
cec_pin: GPIO12
<<: !include common_with_uart.yaml
@@ -1,6 +0,0 @@
# tested with Seeed Studio XIAO ESP32C3
substitutions:
uart_pin: GPIO2
cec_pin: GPIO10
<<: !include common_with_uart.yaml
@@ -1,6 +0,0 @@
# tested with Seeed Studio XIAO ESP32C3
substitutions:
uart_pin: GPIO2
cec_pin: GPIO10
<<: !include common_with_uart.yaml
@@ -1,9 +0,0 @@
# tested with LOLIN D1 mini which has an esp8266ex
substitutions:
uart_pin: GPIO2
cec_pin: GPIO14
# UART0 has Tx on GPIO1, and creates a print-message during boot
# UART1 has Tx on GPIO2, is a transmit-only uart, often used for logging
<<: !include common_with_uart.yaml