scr4
This commit is contained in:
+14
-5
@@ -1,3 +1,16 @@
|
|||||||
|
# Round 412x412 screen on the Waveshare ESP32-S3-Touch-LCD-1.46(B).
|
||||||
|
# Use together with board/ws146.yaml and services/voice.yaml.
|
||||||
|
#
|
||||||
|
# Shows the voice assistant state (coloured ring + status text) and the last
|
||||||
|
# command / reply. The screen stays dark until the wake word is heard, stays on
|
||||||
|
# while HA thinks and replies, and turns off 5 s after the conversation ends.
|
||||||
|
# The "Screen" switch enables or disables this; when off the screen never lights.
|
||||||
|
#
|
||||||
|
# The voice_assistant triggers below are APPENDED to the ones in
|
||||||
|
# services/voice.yaml (ESPHome concatenates lists when merging packages).
|
||||||
|
# Each trigger must use the same form as in voice.yaml: a plain action list,
|
||||||
|
# except on_tts_start, which uses "then:" there.
|
||||||
|
|
||||||
globals:
|
globals:
|
||||||
# 0 ready, 1 listening, 2 thinking, 3 speaking, 4 error, 5 offline
|
# 0 ready, 1 listening, 2 thinking, 3 speaking, 4 error, 5 offline
|
||||||
- id: screen_state
|
- id: screen_state
|
||||||
@@ -187,7 +200,6 @@ script:
|
|||||||
- id: screen_sleep
|
- id: screen_sleep
|
||||||
mode: restart
|
mode: restart
|
||||||
parameters:
|
parameters:
|
||||||
|
|
||||||
delay_ms: int
|
delay_ms: int
|
||||||
then:
|
then:
|
||||||
- delay: !lambda return delay_ms;
|
- delay: !lambda return delay_ms;
|
||||||
@@ -218,10 +230,7 @@ voice_assistant:
|
|||||||
- lambda: id(screen_state) = 3;
|
- lambda: id(screen_state) = 3;
|
||||||
- script.execute: screen_refresh
|
- script.execute: screen_refresh
|
||||||
- script.execute:
|
- script.execute:
|
||||||
id: screen_set_transc
|
id: screen_set_transcript
|
||||||
|
|
||||||
|
|
||||||
ript
|
|
||||||
text: !lambda return x;
|
text: !lambda return x;
|
||||||
on_end:
|
on_end:
|
||||||
- lambda: id(screen_state) = 0;
|
- lambda: id(screen_state) = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user