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:
|
||||||
|
# V0.4 2026-07-14 Removed MIPI display test after setup watchdog boot loop; retained backlight-only test
|
||||||
# V0.3 2026-07-14 Added backlight control and first MIPI display text test
|
# V0.3 2026-07-14 Added backlight control and first MIPI display text test
|
||||||
# V0.2 2026-07-14 Added ESP32 hosted WiFi via ESP32-C6 co-processor
|
# V0.2 2026-07-14 Added ESP32 hosted WiFi via ESP32-C6 co-processor
|
||||||
# V0.1 2026-07-14 Initial ESPHome bring-up for Guition JC1060P470C_I_W_Y ESP32-P4 panel
|
# V0.1 2026-07-14 Initial ESPHome bring-up for Guition JC1060P470C_I_W_Y ESP32-P4 panel
|
||||||
@@ -27,16 +28,17 @@
|
|||||||
#:########################################################################################:#
|
#:########################################################################################:#
|
||||||
# OPERATION NOTES:
|
# OPERATION NOTES:
|
||||||
# - Flash this to the ESP32-P4 side of the board.
|
# - Flash this to the ESP32-P4 side of the board.
|
||||||
# - This version is intended to confirm:
|
# - This version tests only:
|
||||||
# - ESPHome compile
|
# - ESPHome boot
|
||||||
# - USB/OTA flashing
|
# - Hosted WiFi through the ESP32-C6
|
||||||
# - Serial logging
|
# - Home Assistant API
|
||||||
# - WiFi connection via ESP32-C6 hosted co-processor
|
# - GPIO23 backlight PWM
|
||||||
# - Home Assistant API connection
|
# - Backlight light entity in Home Assistant
|
||||||
# - Backlight entity appears in Home Assistant
|
# - The MIPI display component has been temporarily removed because V0.3
|
||||||
# - Display lights and shows simple test text
|
# triggered a watchdog reset during setup.
|
||||||
# - This version intentionally does not yet configure:
|
# - This version intentionally does not configure:
|
||||||
# - Ethernet
|
# - Ethernet
|
||||||
|
# - Display image generation
|
||||||
# - Touchscreen
|
# - Touchscreen
|
||||||
# - LVGL
|
# - LVGL
|
||||||
# - Ambient light sensor
|
# - Ambient light sensor
|
||||||
@@ -44,10 +46,9 @@
|
|||||||
# - Camera
|
# - Camera
|
||||||
#:########################################################################################:#
|
#:########################################################################################:#
|
||||||
# OFFLINE NOTES:
|
# OFFLINE NOTES:
|
||||||
# - This version has no local control logic yet.
|
# - Backlight control is exposed locally by ESPHome and through Home Assistant.
|
||||||
# - This version does not require Home Assistant to boot.
|
# - The panel should remain connected even though no image is drawn.
|
||||||
# - Display test should run locally once the device boots.
|
# - The physical panel may remain blank while the backlight is tested.
|
||||||
# - Home Assistant API will connect only once hosted WiFi is working.
|
|
||||||
#:########################################################################################:#
|
#:########################################################################################:#
|
||||||
|
|
||||||
#:########################################################################################:#
|
#:########################################################################################:#
|
||||||
@@ -59,12 +60,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 7 inch bedside control panel. Backlight and display test. (Layout V1.1)"
|
description_comment: "Guition JC1060P470C_I_W_Y ESP32-P4 7 inch bedside control panel. Backlight-only test following MIPI setup watchdog. (Layout V1.1)"
|
||||||
device_area: "Bedroom" # Allows ESP device to be automatically linked to an 'Area' in Home Assistant.
|
device_area: "Bedroom" # Allows ESP device to be automatically linked to an 'Area' in Home Assistant.
|
||||||
|
|
||||||
# Project Naming
|
# Project Naming
|
||||||
project_name: "Guition.JC1060P470C_I_W_Y" # Project Details
|
project_name: "Guition.JC1060P470C_I_W_Y" # Project Details
|
||||||
project_version: "v0.3" # Project V denotes release of yaml file, allowing checking of deployed vs latest version
|
project_version: "v0.4" # Project V denotes release of yaml file, allowing checking of deployed vs latest version
|
||||||
|
|
||||||
# Passwords & Secrets
|
# Passwords & Secrets
|
||||||
api_key: !secret esp-api_key # unfortunately you can't use substitutions inside secrets names
|
api_key: !secret esp-api_key # unfortunately you can't use substitutions inside secrets names
|
||||||
@@ -74,10 +75,9 @@ substitutions:
|
|||||||
log_level: "INFO" # Define logging level: NONE, ERROR, WARN, INFO, DEBUG (Default), VERBOSE, VERY_VERBOSE
|
log_level: "INFO" # Define logging level: NONE, ERROR, WARN, INFO, DEBUG (Default), VERBOSE, VERY_VERBOSE
|
||||||
update_interval: "60s" # update time for general sensors etc
|
update_interval: "60s" # update time for general sensors etc
|
||||||
|
|
||||||
# Display Settings
|
# Backlight Settings
|
||||||
display_width: "1024"
|
backlight_pin: "23"
|
||||||
display_height: "600"
|
backlight_frequency: "1220Hz"
|
||||||
display_rotation: "90"
|
|
||||||
|
|
||||||
#:########################################################################################:#
|
#:########################################################################################:#
|
||||||
# PACKAGES:
|
# PACKAGES:
|
||||||
@@ -86,7 +86,6 @@ substitutions:
|
|||||||
#:########################################################################################:#
|
#:########################################################################################:#
|
||||||
packages:
|
packages:
|
||||||
#### WIFI, Network DHCP, Fallback AP, Safemode ####
|
#### WIFI, Network DHCP, Fallback AP, Safemode ####
|
||||||
# NOTE:
|
|
||||||
# This board does not have native WiFi in the ESP32-P4 itself.
|
# This board does not have native WiFi in the ESP32-P4 itself.
|
||||||
# The esp32_hosted section below exposes the ESP32-C6 co-processor as WiFi.
|
# The esp32_hosted section below exposes the ESP32-C6 co-processor as WiFi.
|
||||||
common_wifi: !include
|
common_wifi: !include
|
||||||
@@ -103,26 +102,18 @@ packages:
|
|||||||
local_api_key: "${api_key}"
|
local_api_key: "${api_key}"
|
||||||
|
|
||||||
#### MQTT ####
|
#### MQTT ####
|
||||||
# NOTE:
|
|
||||||
# Leave MQTT disabled for initial bring-up. Add later if needed.
|
|
||||||
#common_mqtt: !include
|
#common_mqtt: !include
|
||||||
# file: common/mqtt_common.yaml
|
# file: common/mqtt_common.yaml
|
||||||
# vars:
|
# vars:
|
||||||
# local_device_name: "${device_name}"
|
# local_device_name: "${device_name}"
|
||||||
|
|
||||||
#### WEB PORTAL ####
|
#### WEB PORTAL ####
|
||||||
# NOTE:
|
|
||||||
# Leave disabled until WiFi/API/display are confirmed.
|
|
||||||
#common_webportal: !include common/webportal_common_nopass.yaml
|
#common_webportal: !include common/webportal_common_nopass.yaml
|
||||||
|
|
||||||
#### SNTP (Only use if you want/need accurate timeclocks) ####
|
#### SNTP (Only use if you want/need accurate timeclocks) ####
|
||||||
# NOTE:
|
|
||||||
# For the clock page later, we will probably use Home Assistant time first.
|
|
||||||
#common_sntp: !include common/sntp_common.yaml
|
#common_sntp: !include common/sntp_common.yaml
|
||||||
|
|
||||||
#### DIAGNOSTICS Sensors ####
|
#### DIAGNOSTICS Sensors ####
|
||||||
# NOTE:
|
|
||||||
# Keep common diagnostic packages disabled until first display test is confirmed.
|
|
||||||
#diag_basic: !include common/include_basic_diag_sensors.yaml
|
#diag_basic: !include common/include_basic_diag_sensors.yaml
|
||||||
#diag_more: !include common/include_more_diag_sensors.yaml
|
#diag_more: !include common/include_more_diag_sensors.yaml
|
||||||
#diag_debug: !include common/include_debug_diag_sensors.yaml
|
#diag_debug: !include common/include_debug_diag_sensors.yaml
|
||||||
@@ -135,7 +126,7 @@ packages:
|
|||||||
esphome:
|
esphome:
|
||||||
name: "${device_name}"
|
name: "${device_name}"
|
||||||
friendly_name: "${friendly_name}"
|
friendly_name: "${friendly_name}"
|
||||||
comment: "${description_comment}" # Appears on the esphome page in HA
|
comment: "${description_comment}" # Appears on the ESPHome page in HA
|
||||||
area: "${device_area}"
|
area: "${device_area}"
|
||||||
project:
|
project:
|
||||||
name: "${project_name}"
|
name: "${project_name}"
|
||||||
@@ -153,7 +144,7 @@ esp32:
|
|||||||
framework:
|
framework:
|
||||||
type: esp-idf
|
type: esp-idf
|
||||||
advanced:
|
advanced:
|
||||||
enable_idf_experimental_features: yes
|
enable_idf_experimental_features: true
|
||||||
sdkconfig_options:
|
sdkconfig_options:
|
||||||
CONFIG_SPIRAM_XIP_FROM_PSRAM: "y"
|
CONFIG_SPIRAM_XIP_FROM_PSRAM: "y"
|
||||||
|
|
||||||
@@ -235,9 +226,9 @@ time:
|
|||||||
#:########################################################################################:#
|
#:########################################################################################:#
|
||||||
output:
|
output:
|
||||||
- platform: ledc
|
- platform: ledc
|
||||||
pin: 23
|
pin: ${backlight_pin}
|
||||||
id: backlight_output
|
id: backlight_output
|
||||||
frequency: 1220Hz
|
frequency: "${backlight_frequency}"
|
||||||
|
|
||||||
#:########################################################################################:#
|
#:########################################################################################:#
|
||||||
# LIGHT:
|
# LIGHT:
|
||||||
@@ -246,43 +237,12 @@ output:
|
|||||||
light:
|
light:
|
||||||
- platform: monochromatic
|
- platform: monochromatic
|
||||||
output: backlight_output
|
output: backlight_output
|
||||||
name: "${friendly_name} Backlight"
|
name: "Backlight"
|
||||||
id: display_backlight
|
id: display_backlight
|
||||||
restore_mode: ALWAYS_ON
|
icon: "mdi:brightness-6"
|
||||||
|
restore_mode: RESTORE_DEFAULT_ON
|
||||||
default_transition_length: 0s
|
default_transition_length: 0s
|
||||||
|
|
||||||
#:########################################################################################:#
|
|
||||||
# DISPLAY:
|
|
||||||
# https://esphome.io/components/display/mipi_dsi.html
|
|
||||||
#:########################################################################################:#
|
|
||||||
display:
|
|
||||||
- platform: mipi_dsi
|
|
||||||
model: JC1060P470
|
|
||||||
id: main_display
|
|
||||||
rotation: ${display_rotation}
|
|
||||||
dimensions:
|
|
||||||
width: ${display_width}
|
|
||||||
height: ${display_height}
|
|
||||||
update_interval: 1s
|
|
||||||
lambda: |-
|
|
||||||
it.fill(Color::BLACK);
|
|
||||||
it.printf(300, 210, id(font_large), Color::WHITE, "ESPHome OK");
|
|
||||||
it.printf(300, 280, id(font_small), Color::WHITE, "JC1060P470C_I_W_Y");
|
|
||||||
it.printf(300, 330, id(font_small), Color::WHITE, "WiFi + Display Test");
|
|
||||||
|
|
||||||
#:########################################################################################:#
|
|
||||||
# FONTS:
|
|
||||||
# https://esphome.io/components/font.html
|
|
||||||
#:########################################################################################:#
|
|
||||||
font:
|
|
||||||
- file: "gfonts://Roboto"
|
|
||||||
id: font_large
|
|
||||||
size: 48
|
|
||||||
|
|
||||||
- file: "gfonts://Roboto"
|
|
||||||
id: font_small
|
|
||||||
size: 28
|
|
||||||
|
|
||||||
#:########################################################################################:#
|
#:########################################################################################:#
|
||||||
# SENSORS:
|
# SENSORS:
|
||||||
# https://esphome.io/components/sensor/
|
# https://esphome.io/components/sensor/
|
||||||
|
|||||||
Reference in New Issue
Block a user