mirror of
https://github.com/esphome/esphome.git
synced 2026-09-29 16:00:23 +00:00
[audio_dac] Use register_apply_action for the mute_off, mute_on and set_volume actions (#19546)
This commit is contained in:
@@ -5,7 +5,10 @@ esphome:
|
||||
- audio_dac.mute_on:
|
||||
- audio_dac.set_volume:
|
||||
volume: 50%
|
||||
- audio_dac.set_volume:
|
||||
volume: !lambda return id(aic3204_dac).volume() * 0.5f;
|
||||
|
||||
audio_dac:
|
||||
- platform: aic3204
|
||||
id: aic3204_dac
|
||||
i2c_id: i2c_bus
|
||||
|
||||
Reference in New Issue
Block a user