Cleaned up duplicate pin usage.

This commit is contained in:
Marcus Scholz 2023-12-25 16:45:19 +01:00
parent c0ebd9188d
commit 395bf7bb9c
2 changed files with 4 additions and 18 deletions

View File

@ -56,7 +56,6 @@ microphone:
voice_assistant: voice_assistant:
microphone: echo_microphone microphone: echo_microphone
speaker: atom_echo_speaker
on_start: on_start:
- light.turn_on: - light.turn_on:
id: led id: led
@ -72,6 +71,7 @@ voice_assistant:
green: 100% green: 100%
effect: none effect: none
on_tts_end: on_tts_end:
- media_player.play_media: !lambda return x;
- light.turn_on: - light.turn_on:
id: led id: led
blue: 0% blue: 0%
@ -82,7 +82,7 @@ voice_assistant:
- delay: 1s - delay: 1s
- wait_until: - wait_until:
not: not:
speaker.is_playing: atom_echo_speaker media_player.is_playing: media_out
- light.turn_off: led - light.turn_off: led
on_error: on_error:
- light.turn_on: - light.turn_on:
@ -125,13 +125,6 @@ media_player:
i2s_dout_pin: GPIO22 i2s_dout_pin: GPIO22
mode: mono mode: mono
speaker:
- platform: i2s_audio
id: atom_echo_speaker
dac_type: external
i2s_dout_pin: GPIO22
mode: mono
light: light:
- platform: esp32_rmt_led_strip - platform: esp32_rmt_led_strip
id: led id: led
@ -145,4 +138,4 @@ light:
effects: effects:
- pulse: - pulse:
transition_length: 250ms transition_length: 250ms
update_interval: 250ms update_interval: 250ms

View File

@ -74,13 +74,6 @@ media_player:
number: GPIO21 number: GPIO21
inverted: true inverted: true
speaker:
- platform: i2s_audio
id: luxe_out_speaker
dac_type: external
i2s_dout_pin: GPIO26
mode: stereo
microphone: microphone:
- platform: i2s_audio - platform: i2s_audio
id: luxe_microphone id: luxe_microphone
@ -205,4 +198,4 @@ light:
effects: effects:
- pulse: - pulse:
transition_length: 250ms transition_length: 250ms
update_interval: 250ms update_interval: 250ms