diff --git a/services/screen.yaml b/services/screen.yaml index 396b48e..ae86b6a 100644 --- a/services/screen.yaml +++ b/services/screen.yaml @@ -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: # 0 ready, 1 listening, 2 thinking, 3 speaking, 4 error, 5 offline - id: screen_state @@ -187,7 +200,6 @@ script: - id: screen_sleep mode: restart parameters: - delay_ms: int then: - delay: !lambda return delay_ms; @@ -218,10 +230,7 @@ voice_assistant: - lambda: id(screen_state) = 3; - script.execute: screen_refresh - script.execute: - id: screen_set_transc - - - ript + id: screen_set_transcript text: !lambda return x; on_end: - lambda: id(screen_state) = 0;