mirror of
https://github.com/esphome/esphome.git
synced 2026-09-28 15:30:21 +00:00
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@home-assistant.io>
32 lines
701 B
YAML
32 lines
701 B
YAML
audio_dac:
|
|
- platform: tas2780
|
|
id: tas2780_amp
|
|
address: 0x38
|
|
i2c_id: i2c_bus
|
|
amp_level: 8
|
|
power_mode: 2
|
|
vol_range_min: 0.3
|
|
vol_range_max: 1.0
|
|
channel: mono
|
|
|
|
esphome:
|
|
on_boot:
|
|
- tas2780.activate:
|
|
id: tas2780_amp
|
|
- tas2780.activate:
|
|
id: tas2780_amp
|
|
power_mode: 1
|
|
- tas2780.activate:
|
|
id: tas2780_amp
|
|
power_mode: !lambda "return id(tas2780_amp).volume() > 0.5f ? 3 : 1;"
|
|
- tas2780.update_config:
|
|
id: tas2780_amp
|
|
amp_level: 10
|
|
vol_range_min: 0.2
|
|
vol_range_max: 0.9
|
|
channel: left
|
|
- tas2780.deactivate:
|
|
id: tas2780_amp
|
|
- tas2780.reset:
|
|
id: tas2780_amp
|