Skip to content

Commit 4c5c637

Browse files
f18mCopilot
andcommitted
Run all window contact sync also after API connection
Co-authored-by: Copilot <copilot@github.com>
1 parent 04e3989 commit 4c5c637

4 files changed

Lines changed: 11 additions & 12 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ This repository contains an ESPHome-based Home Assistant interface panel for the
1010

1111
## Validate Changes
1212

13-
- Run `make test-local` for UI/layout work; it renders via ESPHome SDL without reflashing hardware.
14-
- Run `make test-validate` to validate the SDL configuration.
13+
- Run `make test-validate` to validate configuration changes. This command can take several seconds and minutes to execute. It should print several lines ending with "Configuration is valid!" when the config changes are valid.
1514
- Run `esphome config example-instance.yaml` when changing package inputs or installation-facing behavior, because CI builds that file in [build.yaml](./.github/workflows/build.yaml).
1615
- Use `make flash-main` or `make upload-main` only for actual device deployment. The default target assumes OTA; set `LOCALLY_ATTACHED=1` for USB flashing.
1716

include/api.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ api:
1616
condition:
1717
lambda: 'return (0 == client_info.find("Home Assistant "));'
1818
then:
19+
- logger.log:
20+
level: INFO
21+
format: "Home Assistant connected, syncing window contact UI"
22+
- script.execute: sync_all_window_contact_ui
1923
- lvgl.widget.show: lbl_wifi
2024
- lvgl.label.update:
2125
id: lbl_wifi

include/hw_waveshare-esp32-s3-touch-lcd-3.5b.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@ substitutions:
1717
screen_width: 320
1818

1919
esphome:
20-
name: waveshare-esp32-s3-touch
21-
friendly_name: WaveShare ESP32-S3 Touch LCD 3.5B
20+
name: "waveshare-esp32-s3-touch"
21+
friendly_name: "Waveshare ESP32-S3-Touch-LCD-3.5B"
22+
comment: "ESPHome HomeAssistant General Purpose Interface Panel"
23+
on_boot:
24+
then:
25+
- script.execute: on_boot_scripts
2226

2327
esp32:
2428
board: esp32-s3-devkitc-1

main.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,6 @@ wifi:
171171

172172
captive_portal:
173173

174-
esphome:
175-
name: "waveshare-esp32-s3-touch-v2"
176-
friendly_name: "Waveshare ESP32-S3-Touch-LCD-3.5B"
177-
comment: "ESPHome HomeAssistant General Purpose Interface Panel"
178-
on_boot:
179-
then:
180-
- script.execute: on_boot_scripts
181-
182174
# Webserver is exposed under regular use
183175
web_server:
184176
version: 3

0 commit comments

Comments
 (0)