diff --git a/esphome/esp-bedside-panel.yaml b/esphome/esp-bedside-panel.yaml index 50aa641..43f6061 100644 --- a/esphome/esp-bedside-panel.yaml +++ b/esphome/esp-bedside-panel.yaml @@ -6,6 +6,7 @@ # https://home.fox.co.nz/gitea/zorruno/zorruno-homeassistant/src/branch/master/esphome/esp-bedside-panel.yaml #:########################################################################################:# # VERSIONS: +# V1.14 2026-07-17 Changed Garage Lights to a direct click-triggered HA toggle # V1.13 2026-07-17 Corrected Garage Lights switching and removed Atto value containers # V1.12 2026-07-17 Re-centred Atto tiles, swapped status rows and simplified value tiles # V1.11 2026-07-17 Refined Atto button centring and rearranged vehicle status tiles @@ -112,12 +113,12 @@ substitutions: # Device Naming device_name: "esp-bedside-panel" friendly_name: "ESP Bedside Panel" - description_comment: "Guition JC1060P470C_I_W_Y ESP32-P4 bedside control panel. Corrected Garage Lights control and borderless Atto values. (Layout V1.1)" + description_comment: "Guition JC1060P470C_I_W_Y ESP32-P4 bedside control panel. Direct Garage Lights click control and borderless Atto values. (Layout V1.1)" device_area: "Bedroom" # Project Naming project_name: "Guition.JC1060P470C_I_W_Y" - project_version: "v1.13" + project_version: "v1.14" # Passwords & Secrets api_key: !secret esp-api_key @@ -2552,23 +2553,15 @@ lvgl: radius: 18 pressed: bg_color: 0x425166 - on_press: - - if: - condition: - lambda: |- - return id(ha_garage_lights).state; + on_click: + - logger.log: + level: INFO + format: "Garage Lights button clicked; sending HA switch.toggle" - then: - - homeassistant.action: - action: switch.turn_off - data: - entity_id: "switch.esp_garagelights_garage_lights" - - else: - - homeassistant.action: - action: switch.turn_on - data: - entity_id: "switch.esp_garagelights_garage_lights" + - homeassistant.action: + action: switch.toggle + data: + entity_id: "switch.esp_garagelights_garage_lights" - button: id: bathroom_fan_button