Files
esphome/tests/components/esphome/common.yaml

47 lines
1.1 KiB
YAML

esphome:
debug_scheduler: true
platformio_options:
board_build.flash_mode: dio
environment_variables:
TEST_ENV_VAR: "test_value"
BUILD_NUMBER: "12345"
area:
id: testing_area
name: Testing Area
on_boot:
logger.log: on_boot
on_shutdown:
logger.log: on_shutdown
on_loop:
if:
condition:
component.is_idle: binary_sensor_id
then:
logger.log: on_loop - sensor idle
compile_process_limit: 1
min_version: "2025.1"
name_add_mac_suffix: true
project:
name: esphome.test
version: "1.1"
on_update:
logger.log: on_update
areas:
- id: another_area
name: Another area
devices:
- id: other_device
name: Another device
area_id: another_area
- id: test_device
name: Test device in main area
area_id: testing_area # Reference the main area (not in areas)
- id: no_area_device
name: Device without area # This device has no area_id
binary_sensor:
- platform: template
id: binary_sensor_id
name: Other device sensor
device_id: other_device