From 87ca332b2d2add258011e268715c8c683bdb9c78 Mon Sep 17 00:00:00 2001 From: Carlo Costanzo Date: Mon, 28 Sep 2026 17:13:56 -0400 Subject: [PATCH] Recover Kitchen Show after HA startup --- config/packages/README.md | 2 ++ config/packages/kiosk_tablet.yaml | 15 ++++++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/config/packages/README.md b/config/packages/README.md index b08e0b2b..13f3e89a 100755 --- a/config/packages/README.md +++ b/config/packages/README.md @@ -39,6 +39,8 @@ Live collection of plug-and-play Home Assistant packages. Each YAML file in this Kitchen Show note: `kiosk_tablet.yaml` uses Kiosk Satellite's native ESPHome entity set for display control, health, screenshots, and updates. The policy keeps the panel reachable and corrects master volume to 13% at 08:00 and after Home Assistant or kiosk startup; while `group.bed` is on or the family is away, the Dim screensaver goes dark instead of using unreliable true panel-off. A Frigate Driveway alert wakes both kiosks and holds the live Driveway feed until occupancy clears or the ten-minute safety limit expires, below Garage and Front Door in camera priority. +After Home Assistant starts, Kitchen Show waits three minutes for the initial state burst to settle, reloads its dashboard page once if the device is reachable, then captures a fresh screenshot. Periodic screenshot refreshes do not reload the page. + ### Featured packages (live today) | Package | What it unlocks | Notable entities / services | | --- | --- | --- | diff --git a/config/packages/kiosk_tablet.yaml b/config/packages/kiosk_tablet.yaml index f2da8edd..e79b48d4 100644 --- a/config/packages/kiosk_tablet.yaml +++ b/config/packages/kiosk_tablet.yaml @@ -19,9 +19,9 @@ # Notes: Kitchen Show volume is corrected to 13% at 08:00 and after HA or kiosk startup; manual changes otherwise persist. # Notes: Garage and Front Door retain priority; a Driveway alert takes over both kiosks until occupancy clears or ten minutes elapse. # Notes: At 07:00, Home Assistant stages a pending Kiosk Satellite release, then dispatches Joanna daily until installation is verified. -# Notes: Wake events only restore brightness/focus; URL reloads require page drift. +# Notes: Bedroom wake events only restore brightness/focus; URL reloads require page drift. # Notes: Fully auto-reload on screen-on/screensaver-stop is disabled to avoid motion wake reload loops. -# Notes: Startup recovery waits for HA's initial websocket state burst to settle. +# Notes: Startup recovery waits for HA's initial websocket state burst, then reloads the Kitchen page once. # Notes: Brightness recovery only runs when both SleepIQ in-bed sensors are off. # Notes: Fully availability/page/app/power plus Kitchen connectivity, current-page/screenshot freshness, and update state feed Systems telemetry. # Notes: Kitchen updates are advisory telemetry and do not raise kiosk or Systems fault rollups. @@ -318,7 +318,7 @@ automation: - alias: "Kitchen Kiosk Satellite - Refresh Systems Snapshot" id: e920cab1-59d3-4d45-8aad-67170127504f - description: "Reconcile an active startup storm, then refresh the Systems dashboard screenshot." + description: "Recover the Kitchen page after HA startup and refresh the Systems screenshot." mode: single max_exceeded: silent trigger: @@ -344,6 +344,15 @@ automation: value_template: >- {% set last_seen = as_timestamp(states('sensor.kitchen_show_last_seen_2'), 0) %} {{ last_seen > 0 and (as_timestamp(now()) - last_seen) < 300 }} + - choose: + - conditions: + - condition: trigger + id: startup + sequence: + - service: button.press + target: + entity_id: button.kitchen_show_reload_page_2 + - delay: "00:00:25" - service: button.press target: entity_id: button.kitchen_show_take_screenshot_2