From 9a719479bcf883bea60ae24edeb9e88baecf8312 Mon Sep 17 00:00:00 2001 From: mjallen18 Date: Tue, 14 Apr 2026 17:15:13 -0500 Subject: [PATCH] cyd --- .../services/esphome/cyd-base-hw.yaml | 10 +++++++--- .../services/esphome/cyd-base-ui.yaml | 16 ++++++++-------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/modules/nixos/homeassistant/services/esphome/cyd-base-hw.yaml b/modules/nixos/homeassistant/services/esphome/cyd-base-hw.yaml index bdff714..2c2125c 100644 --- a/modules/nixos/homeassistant/services/esphome/cyd-base-hw.yaml +++ b/modules/nixos/homeassistant/services/esphome/cyd-base-hw.yaml @@ -90,6 +90,11 @@ font: - "${TILE5_ICON}" - "${TILE6_ICON}" +image: + - file: "images/home-background.png" + id: bg_home + type: RGB565 + sensor: - platform: wifi_signal name: "Wifi Signal" @@ -283,16 +288,15 @@ touchscreen: y_min: 340 y_max: 3860 transform: - swap_xy: false + swap_xy: true mirror_x: true - mirror_y: false + mirror_y: true display: - platform: ili9xxx id: my_display spi_id: lcd model: ILI9341 - data_rate: 20MHz cs_pin: 15 dc_pin: 2 invert_colors: false diff --git a/modules/nixos/homeassistant/services/esphome/cyd-base-ui.yaml b/modules/nixos/homeassistant/services/esphome/cyd-base-ui.yaml index 9c10f77..bf12953 100644 --- a/modules/nixos/homeassistant/services/esphome/cyd-base-ui.yaml +++ b/modules/nixos/homeassistant/services/esphome/cyd-base-ui.yaml @@ -91,6 +91,12 @@ lvgl: scrollable: false scrollbar_mode: 'OFF' widgets: + - image: + id: bg + src: bg_home + x: 0 + y: 0 + - label: id: lbl_room x: 11 @@ -597,18 +603,12 @@ lvgl: pad_bottom: 0 border_width: 0 widgets: - - obj: + - image: id: brightness_overlay_bg + src: bg_home x: 0 y: 0 - width: 320 - height: 240 - bg_color: 0x1a1a2e - bg_opa: COVER - border_width: 0 - radius: 0 clickable: true - scrollable: false on_click: - lvgl.widget.hide: brightness_overlay - obj: