-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* - BROKEN: Adding optional ld2450 component - This optional component adds LD241050 support to the Sat1 (however, it is currently causing the wake word not to respond). * Add entities for ld2410 to config. Add example code for sensor tuning. * Removed docs-related YAML. Renamed some sensors for uniformity. Small fixes. * mute pcm5122 on startup * volume and mute support for tas2780 * introduce satellite1 dac_proxy component * enable usage of satellite1 dac proxy * set pcm5122 digital volume control to range from -50db to 0dB * fix: don't set new pcm5122-gpio value on i2c read error * dma and ring-buffer size alignment with 16/48kHz * bump ESPHome to 2024.12.1 * bump ESPHome to 2024.12.2 * tas2780 use stereo downmix * Introducing developer.yaml (#220) - adding optional developer.yaml - gives access to tools to UDP stream microphone for quality testing - optionally emit logs to MQTT server - moves optional packages to satellite1.base * Attempting another LD2450 implementation There are now two non-working implementations in ld2450.yaml file. * - BROKEN: Adding optional ld2450 component - This optional component adds LD241050 support to the Sat1 (however, it is currently causing the wake word not to respond). * Attempting another LD2450 implementation There are now two non-working implementations in ld2450.yaml file. * adjusted volume ranges for tas2780 and pcm5122 * further adjust tas2780 volume settings * fusb302b: move irq handler to core 1 * Confirming LD2450 Code Working - PR#222 allowed to confirm this ls2450 code is working. - Added optional ld2450.yaml file to satellite1.base that the customer can comment out. * Immediately check for update when toggling beta switch (#218) - Immediately check for update when toggling beta switch * Suppress error LEDs when two devices wake simultaneously (#217) Previously when two Sat1s hear the wake word and race to respond one of them would show red LEDs. We are now suppressing the error LEDs on the device that came in second place. This matches Nabus user experience. * fusb302b don't retry the cc detection after it has failed (#221) * adjust wifi settings and audio pipeline timings (#225) * dashboard: Import satellite1.yaml by enabling import_full_config (#227) * dashboard imports satellite1.yaml as it is * satellite1.yaml references components and configs externally (develop branch) --------- Co-authored-by: that1guy <[email protected]> --------- Co-authored-by: that1guy <[email protected]> Co-authored-by: root <root@vscode>
- Loading branch information
1 parent
bf97c1d
commit 2a83952
Showing
30 changed files
with
1,159 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
substitutions: | ||
ext_comp_repo_ref: develop | ||
|
||
external_components: | ||
- source: | ||
type: git | ||
url: https://github.com/FutureProofHomes/Satellite1-ESPHome | ||
ref: ${ext_comp_repo_ref} | ||
components: [ i2s_audio, satellite1, memory_flasher, tas2780, pcm5122, fusb302b ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# This is a developer configuration that enables the UDP stream component and adds switches to toggle between the ASR and Comm microphones. | ||
# You can read more about how to use this configuration here: https://github.com/FutureProofHomes/Satellite1-ESPHome/tree/develop/tests/mic_streaming | ||
|
||
external_components: | ||
- source: | ||
type: git | ||
url: https://github.com/FutureProofHomes/Satellite1-ESPHome | ||
ref: develop | ||
components: [ udp_stream ] | ||
|
||
|
||
# Separate UDP Stream configurations for each microphone | ||
udp_stream: | ||
id: udp_streamer | ||
microphone: asr_mic # Default microphone to prevent validation errors | ||
|
||
|
||
# Switches to toggle between ASR and Comm microphones | ||
switch: | ||
- platform: template | ||
name: "UDP Stream ASR Mic" | ||
entity_category: "diagnostic" | ||
id: use_asr_mic | ||
icon: mdi:microphone | ||
restore_mode: RESTORE_DEFAULT_OFF | ||
optimistic: true | ||
on_turn_on: | ||
- logger.log: "Switching to ASR Mic for UDP stream" | ||
- lambda: |- | ||
if (id(udp_streamer).is_running()) { | ||
id(udp_streamer).request_stop(); // Stop current stream | ||
delay(500); // Wait for stream to stop | ||
} | ||
id(udp_streamer).set_microphone(id(asr_mic)); // Set ASR mic | ||
id(udp_streamer).request_start(true); // Start stream with ASR mic | ||
- switch.turn_off: use_comm_mic # Turn off the other switch | ||
|
||
on_turn_off: | ||
- logger.log: "Turning off ASR Mic UDP stream" | ||
- lambda: |- | ||
if (id(udp_streamer).is_running()) { | ||
id(udp_streamer).request_stop(); // Stop the stream when ASR mic is turned off | ||
} | ||
- platform: template | ||
name: "UDP Stream Comm Mic" | ||
entity_category: "diagnostic" | ||
id: use_comm_mic | ||
icon: mdi:microphone | ||
restore_mode: RESTORE_DEFAULT_OFF | ||
optimistic: true | ||
on_turn_on: | ||
- logger.log: "Switching to Comm Mic for UDP stream" | ||
- micro_wake_word.stop: | ||
- delay: 500ms | ||
- lambda: |- | ||
if (id(udp_streamer).is_running()) { | ||
id(udp_streamer).request_stop(); // Stop current stream | ||
delay(500); // Wait for stream to stop | ||
} | ||
id(udp_streamer).set_microphone(id(comm_mic)); // Set Comm mic | ||
id(udp_streamer).request_start(true); // Start stream with Comm mic | ||
- switch.turn_off: use_asr_mic # Turn off the other switch | ||
|
||
on_turn_off: | ||
- logger.log: "Turning off Comm Mic UDP stream" | ||
- lambda: |- | ||
if (id(udp_streamer).is_running()) { | ||
id(udp_streamer).request_stop(); // Stop the stream when Comm mic is turned off | ||
} | ||
- delay: 500ms | ||
- micro_wake_word.start: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.