mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-03-03 07:14:10 +01:00
Extract shared M5ATOM vehicle code (esp32, on_loop, LED effects) into
common/vehicle_base.yaml, reducing each vehicle file from ~136 to 20
lines. Remove dead commented-out code from on_loop lambda.
Gate: fix on_multi_click and select indentation, change
esp32_ble_tracker id from ${name} to ${device} (lowercase),
remove unused commented-out gate_flash GPIO sensor.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
22 lines
477 B
YAML
22 lines
477 B
YAML
substitutions:
|
|
device: vehicle-suzuki-dl650
|
|
name: Vehicle Suzuki DL650
|
|
area: Outside
|
|
comment: "${area}, Beacon | Suzuki DL650"
|
|
|
|
esphome:
|
|
name: mcu-${device}
|
|
friendly_name: ${name}
|
|
area: ${area}
|
|
comment: ${comment}
|
|
|
|
packages:
|
|
base: !include common/vehicle_base.yaml
|
|
logger: !include common/logger.yaml
|
|
|
|
esp32_ble_beacon:
|
|
type: iBeacon
|
|
uuid: !secret ble_beacon_suzuki_uuid
|
|
major: !secret ble_beacon_suzuki_major
|
|
minor: !secret ble_beacon_suzuki_minor
|