substitutions: device_name: "esp32p4tablet" friendly_name: "ESP32 P4 tablet" comment: "esp32-P4" api_password: !secret display_api ota_password: !secret wifi_password wifi_ssid: !secret wifi_ssid wifi_password: !secret wifi_password #espHosted_pins pin_esph_reset: GPIO54 pin_esph_cmd: GPIO19 pin_esph_clk: GPIO18 pin_esph_d0: GPIO14 pin_esph_d1: GPIO15 pin_esph_d2: GPIO16 pin_esph_d3: GPIO17 #lcd_pins pin_lcd_reset: GPIO27 pin_lcd_bl: GPIO23 pin_touch_sda: GPIO7 pin_touch_scl: GPIO8 pin_touch_rst: GPIO22 pin_touch_irq: GPIO21 packages: board: !include boards/esp32-P4.yaml common: !include common/common.yaml wifi: !include common/wifi_P4.yaml lcd: !include display/guitionJC8012P4A1.yaml #lvgl widgets home: !include widgets/home/home.yaml lights_config: !include widgets/light/lights_config.yaml devices: !include widgets/devices.yaml settings: !include widgets/settings.yaml menu_controls_main: !include widgets/menu_controls_main.yaml loading_page: !include widgets/loading_page.yaml #add includes for lvgl widgets esphome: includes: - - logger: hardware_uart: USB_SERIAL_JTAG level: DEBUG logs: lvgl: INFO display: INFO app: DEBUG http_request: verify_ssl: false ota: - platform: esphome on_begin: then: - logger.log: "OTA gestart, LVGL pauzeren" - lvgl.pause: on_end: then: - logger.log: "OTA klaar, LVGL hervatten" - lvgl.resume: external_components: - source: github://pr#9972 components: [mapping] refresh: 1h - source: github://willumpie82/esphome@dev components: [mipi_dsi] - source: github://kvj/esphome@jd9365_gsl3680 refresh: 0s components: [gsl3680] - source: github://esphome/esphome@2025.7.1 components: [i2c] - source: github://youkorr/sd_image@main components: [storage] refresh: 1min - source: github://youkorr/webdavbox3@main components: [sd_mmc_card] refresh: 10s image: !include widgets/image.yaml font: !include widgets/fonts.yaml color: !include widgets/colors.yaml # ------------------------------- # LVGL Display # ------------------------------- lvgl: buffer_size: 100% byte_order: little_endian displays: my_display touchscreens: - touchscreen_id: touchscreen_ long_press_time: 5000ms long_press_repeat_time: 400ms page_wrap: false sd_mmc_card: id: sd_card clk_pin: GPIO43 cmd_pin: GPIO44 data0_pin: GPIO39 data1_pin: GPIO40 data2_pin: GPIO41 data3_pin: GPIO42 mode_1bit: false slot: 0