Files
Home-Assistant/esphome/panel-remote-common.yaml

82 lines
1.4 KiB
YAML

# Shared SC05_X / ZX2D80CE02S hardware for both room remotes.
# Keep this file beside the room YAML files in ESPHome.
esp32:
board: esp32-s3-devkitc-1
flash_size: 8MB
framework:
type: esp-idf
psram:
mode: quad
logger:
api:
encryption:
key: !secret api_encryption_key
ota:
- platform: esphome
encryption:
wifi:
ssid: !secret wifi_iot_ssid
password: !secret wifi_password
ap:
ssid: ${friendly_name} Setup
password: !secret fallback_password
captive_portal:
spi:
type: octal
id: lcd_bus
clk_pin: GPIO17
data_pins: [GPIO16, GPIO40, GPIO15, GPIO7, GPIO41, GPIO42, GPIO2, GPIO1]
display:
- platform: mipi_spi
id: panel_display
model: ST7789V
spi_id: lcd_bus
bus_mode: octal
dc_pin: GPIO18
reset_pin: GPIO3
dimensions: 240x320
data_rate: 8MHz
invert_colors: true
auto_clear_enabled: false
update_interval: never
output:
- platform: ledc
id: backlight_pwm
pin: GPIO47
light:
- platform: monochromatic
id: panel_backlight
name: Screen Backlight
output: backlight_pwm
restore_mode: ALWAYS_ON
default_transition_length: 0s
i2c:
id: touch_bus
sda: GPIO8
scl: GPIO9
scan: true
touchscreen:
- platform: ft5x06
id: panel_touch
i2c_id: touch_bus
address: 0x38
display: panel_display
interrupt_pin: GPIO48
on_touch:
- light.turn_on:
id: panel_backlight
brightness: 70%