1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 11:22:24 +01:00

[CI] Consolidate some tests (E) (#8191)

This commit is contained in:
Keith Burzinski
2025-02-04 17:05:24 -06:00
committed by GitHub
parent 693d813c4b
commit 06f9764f51
62 changed files with 473 additions and 1160 deletions

View File

@@ -1,45 +1,5 @@
esphome:
on_boot:
then:
- canbus.send:
# Extended ID explicit
use_extended_id: true
can_id: 0x100
data: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]
- canbus.send:
# Standard ID by default
can_id: 0x100
data: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]
substitutions:
tx_pin: GPIO7
rx_pin: GPIO8
canbus:
- platform: esp32_can
id: esp32_internal_can
rx_pin: 4
tx_pin: 5
can_id: 4
bit_rate: 50kbps
on_frame:
- can_id: 500
then:
- lambda: |-
std::string b(x.begin(), x.end());
ESP_LOGD("canid 500", "%s", b.c_str() );
- can_id: 0b00000000000000000000001000000
can_id_mask: 0b11111000000000011111111000000
use_extended_id: true
then:
- lambda: |-
auto pdo_id = can_id >> 14;
switch (pdo_id)
{
case 117:
ESP_LOGD("canbus", "exhaust_fan_duty");
break;
case 118:
ESP_LOGD("canbus", "supply_fan_duty");
break;
case 119:
ESP_LOGD("canbus", "supply_fan_flow");
break;
// to be continued...
}
<<: !include common.yaml