Edit esp-bedside-panel.yaml

This commit is contained in:
ESPHome Device Builder
2026-07-18 00:11:51 +12:00
parent 97669cb664
commit d324ec568b
+5 -36
View File
@@ -6,6 +6,7 @@
# https://home.fox.co.nz/gitea/zorruno/zorruno-homeassistant/src/branch/master/esphome/esp-bedside-panel.yaml
#:########################################################################################:#
# VERSIONS:
# V1.16 2026-07-17 Removed garage-door influence from Garage Lights button state
# V1.15 2026-07-17 Changed Garage Lights to an imported controllable HA switch
# 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
@@ -114,12 +115,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. Garage Lights controlled through an imported Home Assistant switch. (Layout V1.1)"
description_comment: "Guition JC1060P470C_I_W_Y ESP32-P4 bedside control panel. Garage Lights button follows only the garage-light switch state. (Layout V1.1)"
device_area: "Bedroom"
# Project Naming
project_name: "Guition.JC1060P470C_I_W_Y"
project_version: "v1.15"
project_version: "v1.16"
# Passwords & Secrets
api_key: !secret esp-api_key
@@ -170,7 +171,6 @@ substitutions:
bathroom_fan_entity: "switch.esp_mainbathfancombo_relay_1_extract_fan"
# Home Assistant Entities - Status
garage_door_entity: "binary_sensor.garage_roller_door_x18rs_contact"
quiet_time_entity: "input_boolean.quiet_time"
# Home Assistant Entities - Actions
@@ -847,23 +847,6 @@ binary_sensor:
? lv_color_hex(0xA87500)
: lv_color_hex(0x28313D);
- platform: homeassistant
id: ha_garage_door
entity_id: "${garage_door_entity}"
internal: true
on_state:
then:
- lvgl.widget.update:
id: garage_lights_button
bg_color: !lambda |-
if (x) {
return lv_color_hex(0xC25B13);
}
return id(ha_garage_lights).state
? lv_color_hex(0xB88918)
: lv_color_hex(0x28313D);
- platform: homeassistant
id: ha_bathroom_fan
entity_id: "${bathroom_fan_entity}"
@@ -1087,10 +1070,6 @@ script:
- lvgl.widget.update:
id: garage_lights_button
bg_color: !lambda |-
if (id(ha_garage_door).state) {
return lv_color_hex(0xC25B13);
}
return id(ha_garage_lights).state
? lv_color_hex(0xB88918)
: lv_color_hex(0x28313D);
@@ -1934,12 +1913,7 @@ switch:
- lvgl.widget.update:
id: garage_lights_button
bg_color: !lambda |-
if (id(ha_garage_door).state) {
return lv_color_hex(0xC25B13);
}
return lv_color_hex(0xB88918);
bg_color: 0xB88918
on_turn_off:
then:
@@ -1949,12 +1923,7 @@ switch:
- lvgl.widget.update:
id: garage_lights_button
bg_color: !lambda |-
if (id(ha_garage_door).state) {
return lv_color_hex(0xC25B13);
}
return lv_color_hex(0x28313D);
bg_color: 0x28313D
#:########################################################################################:#
# TEXT SENSOR COMPONENT: