mirror of
https://github.com/esphome/esphome.git
synced 2026-09-29 16:00:23 +00:00
[voice_assistant] Use register_apply_condition for is_running and connected (#19703)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
button:
|
||||
- platform: template
|
||||
name: Voice assistant state
|
||||
on_press:
|
||||
- if:
|
||||
condition:
|
||||
voice_assistant.is_running:
|
||||
then:
|
||||
- logger.log: Running
|
||||
- if:
|
||||
condition:
|
||||
voice_assistant.connected:
|
||||
then:
|
||||
- logger.log: Connected
|
||||
@@ -0,0 +1,9 @@
|
||||
substitutions:
|
||||
i2s_din_pin: GPIO34
|
||||
i2s_din_pin2: GPIO35
|
||||
i2s_dout_pin: GPIO32
|
||||
|
||||
packages:
|
||||
i2s_audio: !include ../../test_build_components/common/i2s_audio/esp32-idf.yaml
|
||||
voice_assistant: !include common-idf.yaml
|
||||
actions: !include common-actions.yaml
|
||||
Reference in New Issue
Block a user