Edit esp-bedside-panel.yaml
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
# https://home.fox.co.nz/gitea/zorruno/zorruno-homeassistant/src/branch/master/esphome/esp-bedside-panel.yaml
|
# https://home.fox.co.nz/gitea/zorruno/zorruno-homeassistant/src/branch/master/esphome/esp-bedside-panel.yaml
|
||||||
#:########################################################################################:#
|
#:########################################################################################:#
|
||||||
# VERSIONS:
|
# VERSIONS:
|
||||||
|
# V1.26 2026-07-18 Added Bedtime icon, snappier Security navigation and Atto text refinements
|
||||||
# V1.25 2026-07-18 Reduced Jobs button line spacing to a balanced gap
|
# V1.25 2026-07-18 Reduced Jobs button line spacing to a balanced gap
|
||||||
# V1.24 2026-07-18 Enlarged and separated Jobs button text
|
# V1.24 2026-07-18 Enlarged and separated Jobs button text
|
||||||
# V1.23 2026-07-18 Centred Jobs text and used direct Jobs Tracker completion script
|
# V1.23 2026-07-18 Centred Jobs text and used direct Jobs Tracker completion script
|
||||||
@@ -126,12 +127,12 @@ substitutions:
|
|||||||
# Device Naming
|
# Device Naming
|
||||||
device_name: "esp-bedside-panel"
|
device_name: "esp-bedside-panel"
|
||||||
friendly_name: "ESP Bedside Panel"
|
friendly_name: "ESP Bedside Panel"
|
||||||
description_comment: "Guition JC1060P470C_I_W_Y ESP32-P4 bedside control panel. Balanced Jobs label spacing with direct hold-to-complete controls. (Layout V1.1)"
|
description_comment: "Guition JC1060P470C_I_W_Y ESP32-P4 bedside control panel. Sleep icon, instant Security navigation and refined Atto labels. (Layout V1.1)"
|
||||||
device_area: "Bedroom"
|
device_area: "Bedroom"
|
||||||
|
|
||||||
# Project Naming
|
# Project Naming
|
||||||
project_name: "Guition.JC1060P470C_I_W_Y"
|
project_name: "Guition.JC1060P470C_I_W_Y"
|
||||||
project_version: "v1.25"
|
project_version: "v1.26"
|
||||||
|
|
||||||
# Passwords & Secrets
|
# Passwords & Secrets
|
||||||
api_key: !secret esp-api_key
|
api_key: !secret esp-api_key
|
||||||
@@ -627,6 +628,7 @@ font:
|
|||||||
- "\U000F07A8" # mdi-car-estate
|
- "\U000F07A8" # mdi-car-estate
|
||||||
- "\U000F050F" # mdi-thermometer
|
- "\U000F050F" # mdi-thermometer
|
||||||
- "\U000F068A" # mdi-shield-home
|
- "\U000F068A" # mdi-shield-home
|
||||||
|
- "\U000F04B2" # mdi-sleep
|
||||||
|
|
||||||
# Live 24-hour time shown in bottom-right clock buttons.
|
# Live 24-hour time shown in bottom-right clock buttons.
|
||||||
- file:
|
- file:
|
||||||
@@ -2596,17 +2598,17 @@ script:
|
|||||||
id: atto_lock_button_label
|
id: atto_lock_button_label
|
||||||
text: !lambda |-
|
text: !lambda |-
|
||||||
if (id(atto_lock_optimistic) == 1) {
|
if (id(atto_lock_optimistic) == 1) {
|
||||||
return std::string("Locked\n(Hold)");
|
return std::string("Locked");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (id(atto_lock_optimistic) == 0) {
|
if (id(atto_lock_optimistic) == 0) {
|
||||||
return std::string("Unlocked\n(Hold)");
|
return std::string("Unlocked");
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto state = id(ha_atto_lock_state).state;
|
const auto state = id(ha_atto_lock_state).state;
|
||||||
|
|
||||||
if (state == "locked") {
|
if (state == "locked") {
|
||||||
return std::string("Locked\n(Hold)");
|
return std::string("Locked");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state == "locking") {
|
if (state == "locking") {
|
||||||
@@ -2617,7 +2619,7 @@ script:
|
|||||||
return std::string("Unlocking...");
|
return std::string("Unlocking...");
|
||||||
}
|
}
|
||||||
|
|
||||||
return std::string("Unlocked\n(Hold)");
|
return std::string("Unlocked");
|
||||||
|
|
||||||
- lvgl.label.update:
|
- lvgl.label.update:
|
||||||
id: atto_lock_icon_label
|
id: atto_lock_icon_label
|
||||||
@@ -2667,8 +2669,8 @@ script:
|
|||||||
id: atto_schedule_state_label
|
id: atto_schedule_state_label
|
||||||
text: !lambda |-
|
text: !lambda |-
|
||||||
return id(ha_atto_schedule_enabled).state
|
return id(ha_atto_schedule_enabled).state
|
||||||
? std::string("ENABLED")
|
? std::string("Enabled")
|
||||||
: std::string("NOT ENABLED");
|
: std::string("Disabled");
|
||||||
|
|
||||||
- lvgl.widget.update:
|
- lvgl.widget.update:
|
||||||
id: atto_schedule_button
|
id: atto_schedule_button
|
||||||
@@ -4035,8 +4037,8 @@ lvgl:
|
|||||||
- label:
|
- label:
|
||||||
id: bedtime_button_label
|
id: bedtime_button_label
|
||||||
align: CENTER
|
align: CENTER
|
||||||
text: "Bedtime\n(Hold)"
|
text: "\U000F04B2"
|
||||||
text_font: font_small
|
text_font: font_mdi_navigation
|
||||||
text_align: CENTER
|
text_align: CENTER
|
||||||
text_color: 0xFFFFFF
|
text_color: 0xFFFFFF
|
||||||
|
|
||||||
@@ -4047,16 +4049,6 @@ lvgl:
|
|||||||
data:
|
data:
|
||||||
entity_id: "${bedtime_button_entity}"
|
entity_id: "${bedtime_button_entity}"
|
||||||
|
|
||||||
- lvgl.label.update:
|
|
||||||
id: bedtime_button_label
|
|
||||||
text: "Activated"
|
|
||||||
|
|
||||||
- delay: 2s
|
|
||||||
|
|
||||||
- lvgl.label.update:
|
|
||||||
id: bedtime_button_label
|
|
||||||
text: "Bedtime\n(Hold)"
|
|
||||||
|
|
||||||
# Divider between Bedtime and the compact status strip.
|
# Divider between Bedtime and the compact status strip.
|
||||||
- obj:
|
- obj:
|
||||||
x: 268
|
x: 268
|
||||||
@@ -4706,18 +4698,25 @@ lvgl:
|
|||||||
id(security_page_active) = true;
|
id(security_page_active) = true;
|
||||||
id(security_camera_selection) = 1;
|
id(security_camera_selection) = 1;
|
||||||
|
|
||||||
|
- lvgl.label.update:
|
||||||
|
id: security_camera_status_label
|
||||||
|
text: "Loading Doorbell..."
|
||||||
|
|
||||||
- lvgl.page.show:
|
- lvgl.page.show:
|
||||||
id: security_page
|
id: security_page
|
||||||
animation: MOVE_LEFT
|
animation: NONE
|
||||||
time: 220ms
|
time: 0ms
|
||||||
|
|
||||||
- light.turn_on:
|
- light.turn_on:
|
||||||
id: display_backlight
|
id: display_backlight
|
||||||
brightness: "${control_brightness}"
|
brightness: "${control_brightness}"
|
||||||
transition_length: 250ms
|
transition_length: 100ms
|
||||||
|
|
||||||
- script.execute: refresh_security_controls
|
- script.execute: refresh_security_controls
|
||||||
- script.execute: refresh_security_camera_buttons
|
- script.execute: refresh_security_camera_buttons
|
||||||
|
|
||||||
|
# Allow the Security page to draw before starting HTTP image work.
|
||||||
|
- delay: 75ms
|
||||||
- script.execute: refresh_security_camera
|
- script.execute: refresh_security_camera
|
||||||
|
|
||||||
- button:
|
- button:
|
||||||
@@ -5229,9 +5228,19 @@ lvgl:
|
|||||||
- label:
|
- label:
|
||||||
id: atto_lock_button_label
|
id: atto_lock_button_label
|
||||||
x: 44
|
x: 44
|
||||||
y: 19
|
y: 13
|
||||||
width: 166
|
width: 166
|
||||||
text: "Locked\n(Hold)"
|
text: "Locked"
|
||||||
|
text_font: font_vehicle_bold
|
||||||
|
text_align: CENTER
|
||||||
|
text_color: 0xFFFFFF
|
||||||
|
|
||||||
|
- label:
|
||||||
|
id: atto_lock_hold_label
|
||||||
|
x: 44
|
||||||
|
y: 57
|
||||||
|
width: 166
|
||||||
|
text: "(Hold)"
|
||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_align: CENTER
|
text_align: CENTER
|
||||||
text_color: 0xFFFFFF
|
text_color: 0xFFFFFF
|
||||||
@@ -5345,7 +5354,7 @@ lvgl:
|
|||||||
x: 44
|
x: 44
|
||||||
y: 43
|
y: 43
|
||||||
width: 166
|
width: 166
|
||||||
text: "NOT ENABLED"
|
text: "Disabled"
|
||||||
text_font: font_vehicle_bold
|
text_font: font_vehicle_bold
|
||||||
text_align: CENTER
|
text_align: CENTER
|
||||||
text_color: 0xFFFFFF
|
text_color: 0xFFFFFF
|
||||||
@@ -5382,7 +5391,7 @@ lvgl:
|
|||||||
x: 44
|
x: 44
|
||||||
y: 19
|
y: 19
|
||||||
width: 166
|
width: 166
|
||||||
text: "Driver Seat\n(Hold)"
|
text: "Driver\n(Hold)"
|
||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_align: CENTER
|
text_align: CENTER
|
||||||
text_color: 0xFFFFFF
|
text_color: 0xFFFFFF
|
||||||
@@ -5474,7 +5483,7 @@ lvgl:
|
|||||||
x: 329
|
x: 329
|
||||||
y: 31
|
y: 31
|
||||||
width: 145
|
width: 145
|
||||||
text: "Level"
|
text: "Battery"
|
||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_align: CENTER
|
text_align: CENTER
|
||||||
text_color: 0xAEB8C4
|
text_color: 0xAEB8C4
|
||||||
@@ -5542,7 +5551,7 @@ lvgl:
|
|||||||
x: 44
|
x: 44
|
||||||
y: 19
|
y: 19
|
||||||
width: 166
|
width: 166
|
||||||
text: "Passenger Seat\n(Hold)"
|
text: "Passenger\n(Hold)"
|
||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_align: CENTER
|
text_align: CENTER
|
||||||
text_color: 0xFFFFFF
|
text_color: 0xFFFFFF
|
||||||
@@ -6956,12 +6965,13 @@ lvgl:
|
|||||||
- lambda: |-
|
- lambda: |-
|
||||||
id(security_page_active) = false;
|
id(security_page_active) = false;
|
||||||
|
|
||||||
- online_image.release: security_camera_image
|
|
||||||
|
|
||||||
- lvgl.page.show:
|
- lvgl.page.show:
|
||||||
id: bedroom_page
|
id: bedroom_page
|
||||||
animation: MOVE_RIGHT
|
animation: NONE
|
||||||
time: 220ms
|
time: 0ms
|
||||||
|
|
||||||
|
- delay: 50ms
|
||||||
|
- online_image.release: security_camera_image
|
||||||
|
|
||||||
- button:
|
- button:
|
||||||
id: security_clock_button
|
id: security_clock_button
|
||||||
@@ -6987,17 +6997,18 @@ lvgl:
|
|||||||
- lambda: |-
|
- lambda: |-
|
||||||
id(security_page_active) = false;
|
id(security_page_active) = false;
|
||||||
|
|
||||||
- online_image.release: security_camera_image
|
|
||||||
|
|
||||||
- lvgl.page.show:
|
- lvgl.page.show:
|
||||||
id: clock_page
|
id: clock_page
|
||||||
animation: FADE_IN
|
animation: NONE
|
||||||
time: 250ms
|
time: 0ms
|
||||||
|
|
||||||
- light.turn_on:
|
- light.turn_on:
|
||||||
id: display_backlight
|
id: display_backlight
|
||||||
brightness: "${clock_brightness}"
|
brightness: "${clock_brightness}"
|
||||||
transition_length: 1500ms
|
transition_length: 250ms
|
||||||
|
|
||||||
|
- delay: 50ms
|
||||||
|
- online_image.release: security_camera_image
|
||||||
|
|
||||||
#:####################################################################################:#
|
#:####################################################################################:#
|
||||||
# CLOCK PAGE
|
# CLOCK PAGE
|
||||||
|
|||||||
Reference in New Issue
Block a user