Compare commits

...
6 Commits
Author SHA1 Message Date
randy 0e7dc6591f stackchan: voice_assistant fix from the fork branch instead of a local path
CI / ESPHome config validation (push) Successful in 1m14s
CI / YAML lint (push) Successful in 7s
2026-10-27 22:10:03 +01:00
randy ab45a776fa stackchan, tracker: github:// shorthand without the components path, dev rejects trailing text now 2026-10-27 22:02:47 +01:00
randy a07bce90f9 stm32-*" initial stm32 (zephyr) devices 2026-10-27 21:17:53 +01:00
randy cf49f238ca stackchan: fix mic issues 2026-10-27 21:16:41 +01:00
randy 6389bbdcef lvgl trainer: add display idle 2026-10-27 21:16:06 +01:00
randy 5e7e4f065e pow washer: move to ipv6 only network 2026-10-27 21:14:46 +01:00
6 changed files with 186 additions and 13 deletions

No files matched your search

+27 -8
View File
@@ -109,14 +109,7 @@ touchscreen:
# no calibration/transform: the driver defaults to the native 320x480 panel and # no calibration/transform: the driver defaults to the native 320x480 panel and
# LVGL applies its own rotation to touch points # LVGL applies its own rotation to touch points
on_release: on_release:
- if: - script.execute: display_idle
condition: lvgl.is_paused
then:
- lvgl.resume:
- lvgl.widget.redraw:
- light.turn_on:
id: display_backlight
transition_length: 300ms
uart: uart:
- id: ext_uart - id: ext_uart
@@ -136,6 +129,7 @@ binary_sensor:
id: basement_light_btn id: basement_light_btn
state: state:
checked: !lambda return x; checked: !lambda return x;
- script.execute: display_idle
- platform: homeassistant - platform: homeassistant
id: workbench_light id: workbench_light
entity_id: ${light_workbench} entity_id: ${light_workbench}
@@ -145,6 +139,7 @@ binary_sensor:
id: workbench_light_btn id: workbench_light_btn
state: state:
checked: !lambda return x; checked: !lambda return x;
- script.execute: display_idle
- platform: homeassistant - platform: homeassistant
id: exercise_light id: exercise_light
entity_id: ${light_exercise} entity_id: ${light_exercise}
@@ -154,6 +149,7 @@ binary_sensor:
id: exercise_light_btn id: exercise_light_btn
state: state:
checked: !lambda return x; checked: !lambda return x;
- script.execute: display_idle
# brightness and color temperature only make sense while the light is on # brightness and color temperature only make sense while the light is on
- if: - if:
condition: condition:
@@ -218,6 +214,29 @@ text_sensor:
- script.execute: update_training_status - script.execute: update_training_status
script: script:
# wakes the display, then turns it off once all basement lights stay off for 5 min;
# restarted by every light change and touch
- id: display_idle
mode: restart
then:
- if:
condition: lvgl.is_paused
then:
- lvgl.resume:
- lvgl.widget.redraw:
- light.turn_on:
id: display_backlight
transition_length: 300ms
- delay: 5min
- if:
condition:
lambda: return !id(basement_light).state && !id(workbench_light).state && !id(exercise_light).state;
then:
- light.turn_off:
id: display_backlight
transition_length: 1s
- delay: 1s
- lvgl.pause:
- id: update_fan_buttons - id: update_fan_buttons
then: then:
- lambda: |- - lambda: |-
+2 -1
View File
@@ -30,12 +30,13 @@ esp32:
framework: framework:
type: esp-idf type: esp-idf
advanced: advanced:
flash_chip: gd # same device as pow-dishwasher (not read from the device) flash_chip: gd
minimum_chip_revision: 3.1 minimum_chip_revision: 3.1
sram1_as_iram: true sram1_as_iram: true
packages: packages:
common: !include common/common.yaml common: !include common/common.yaml
ipv6_only: !include common/ipv6_only.yaml
uart: uart:
- id: cse7766_uart - id: cse7766_uart
+7 -3
View File
@@ -79,12 +79,15 @@ packages:
ipv6_only: !include common/ipv6_only.yaml ipv6_only: !include common/ipv6_only.yaml
external_components: external_components:
- source: github://m5stack/esphome-yaml/components - source: github://m5stack/esphome-yaml
components: [axp2101, aw88298, aw9523b, si12t, m5ioe1, ftservo, scs9009] components: [axp2101, aw88298, aw9523b, si12t, m5ioe1, ftservo, scs9009]
refresh: 0s refresh: 0s
- source: github://randybb/esphome-components - source: github://randybb/esphome-components
components: [audio_spectrum] components: [audio_spectrum]
refresh: 1h refresh: 1h
# stop the microphone before the response with streaming STT (HA Cloud), drop once upstream
- source: github://randybb/esphome@va-stop-mic-streaming-stt
components: [voice_assistant]
globals: globals:
- id: in_love - id: in_love
@@ -244,7 +247,7 @@ audio_adc:
i2c_id: i2c_bsp i2c_id: i2c_bsp
bits_per_sample: 16bit bits_per_sample: 16bit
sample_rate: 16000 sample_rate: 16000
mic_gain: 36 mic_gain: 24
audio_dac: audio_dac:
- platform: aw88298 - platform: aw88298
@@ -330,7 +333,8 @@ voice_assistant:
media_player: media_out media_player: media_out
micro_wake_word: mww micro_wake_word: mww
noise_suppression_level: 2 noise_suppression_level: 2
auto_gain: 31dBFS # no extra gain: a raised noise floor keeps the HA VAD from hearing the end of speech
auto_gain: 0dBFS
on_client_connected: on_client_connected:
- micro_wake_word.start: - micro_wake_word.start:
- delay: 2s - delay: 2s
+79
View File
@@ -0,0 +1,79 @@
---
# Hardware: WeAct Black Pill STM32F401CCU6 (256K flash, no radio)
# Pinout:
# PA11/PA12 USB-C -> logger (USB CDC), flashing via ROM DFU (hold BOOT0, tap NRST)
# PC13 blue LED (active low) -> LED (light binary)
# PA0 KEY (active low) -> Button (binary_sensor gpio)
esphome:
name: mcu-stm32-blackpill
friendly_name: STM32 Black Pill
# needs the esphomeplatformzephyr fork (esphome-zephyr), upstream has no zephyr: platform yet
zephyr:
variant: STM32F4
board: blackpill_f401cc
framework:
type: zephyr
advanced:
runner: dfu-util
# no network, so no OTA: one image slot, MCUboot only verifies and boots it
single_slot: true
# NVS sector = flash page; needs >= 2 of them, so storage takes the two 16K pages (sectors 2-3)
kconfig_options:
SETTINGS_NVS_SECTOR_COUNT: 2
# the stock table puts slot1 at 0x40000, past the end of the 256K flash;
# MCUboot in sectors 0-1, storage in 2-3, the app in 4-5.
# MCUboot needs the same table; the fork appends its own code-partition = &boot_partition after it
overlays:
app: &partitions |
&flash0 {
/delete-node/ partitions;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 DT_SIZE_K(32)>;
read-only;
};
storage_partition: partition@8000 {
label = "storage";
reg = <0x00008000 DT_SIZE_K(32)>;
};
slot0_partition: partition@10000 {
label = "image-0";
reg = <0x00010000 DT_SIZE_K(192)>;
};
};
};
/ { chosen { zephyr,code-partition = &slot0_partition; }; };
mcuboot: *partitions
logger:
hardware_uart: USB_CDC
output:
- platform: gpio
id: led_out
pin:
number: PC13
inverted: true
light:
- platform: binary
name: LED
id: led
output: led_out
binary_sensor:
- platform: gpio
name: Button
pin:
number: PA0
inverted: true
mode:
input: true
pullup: true
on_press:
light.toggle: led
+70
View File
@@ -0,0 +1,70 @@
---
# Hardware: ST NUCLEO-F411RE (STM32F411RE, 512K flash, no radio)
# Pinout:
# PA2/PA3 USART2 TX/RX -> ST-LINK virtual COM port (logger)
# PA5 LD2 green (active high) -> LED (light binary)
# PC13 B1 user (active low) -> Button (binary_sensor gpio)
esphome:
name: mcu-stm32-nucleo
friendly_name: STM32 Nucleo
# needs the esphomeplatformzephyr fork (esphome-zephyr), upstream has no zephyr: platform yet
zephyr:
variant: STM32F4
board: nucleo_f411re
framework:
type: zephyr
# no network, so no OTA: one image slot, MCUboot only verifies and boots it
single_slot: true
# NVS sector = flash page; needs >= 2 of them, so storage takes the two 16K pages (sectors 2-3)
kconfig_options:
SETTINGS_NVS_SECTOR_COUNT: 2
# nucleo_f411re ships no partitions at all: MCUboot in sectors 0-1, storage in 2-3, the app in 4-7.
# MCUboot needs the same table; the fork appends its own code-partition = &boot_partition after it
overlays:
app: &partitions |
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 DT_SIZE_K(32)>;
read-only;
};
storage_partition: partition@8000 {
label = "storage";
reg = <0x00008000 DT_SIZE_K(32)>;
};
slot0_partition: partition@10000 {
label = "image-0";
reg = <0x00010000 DT_SIZE_K(448)>;
};
};
};
/ { chosen { zephyr,code-partition = &slot0_partition; }; };
mcuboot: *partitions
logger:
output:
- platform: gpio
id: led_out
pin: PA5
light:
- platform: binary
name: LED
id: led
output: led_out
# B1 has an external pull-up on the board
binary_sensor:
- platform: gpio
name: Button
pin:
number: PC13
inverted: true
on_press:
light.toggle: led
+1 -1
View File
@@ -74,7 +74,7 @@ esp32:
# ipv6_only: !include common/ipv6_only.yaml # ipv6_only: !include common/ipv6_only.yaml
external_components: external_components:
- source: github://m5stack/esphome-yaml/components - source: github://m5stack/esphome-yaml
components: [axp192] components: [axp192]
refresh: 1h refresh: 1h