Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Revision Board #71

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions voice-kit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ esphome:
on_boot:
priority: 600
then:
# TODO: make it internal before launch
- switch.turn_on: internal_speaker_amp
# If the hardware switch is ON, force the software switch to be ON too. This covers the case where the Mute hardware switch is operated when the device is turned off
- if:
condition:
Expand Down Expand Up @@ -189,7 +191,12 @@ switch:
- script.execute: control_leds
- delay: 15min
- switch.turn_off: timer_ringing

# TODO: make it internal before launch
- platform: gpio
pin: GPIO47
id: internal_speaker_amp
name: "Internal speaker amp"
entity_category: config
binary_sensor:
# Center Button. Used for many things (See on_multi_click)
- platform: gpio
Expand Down Expand Up @@ -392,6 +399,13 @@ binary_sensor:
- switch.template.publish:
id: master_mute_switch
state: OFF
# TODO: make it internal before launch
- platform: gpio
id: jack_plugged
pin:
number: GPIO17
name: "Audio Jack Plugged In"
entity_category: diagnostic

light:
# Hardware LED ring. Not used because remapping needed
Expand Down Expand Up @@ -532,11 +546,7 @@ light:
static int8_t index = 0;
Color color(255, 0, 0);
for (int i = 0; i < 12; i++) {
if (i == 2) {
it[i] = color;
} else if (i == 3) {
it[i] = color;
} else if (i == 8) {
if (i == 3) {
it[i] = color;
} else if (i == 9) {
it[i] = color;
Expand Down