I’m pretty new into packages and templates, i get some errors.
Need some help with this.
the code below is a snipe from my yaml file.
every page is split down in 2 or more sectione.
The page_template is the first section, the second is the page itself
i loaded these 2 sections in different yaml files, but when trying to compile i get error’s and can’t figure out how to solve.
the error is
INFO ESPHome 2025.4.2
INFO Reading configuration /config/esphome/display-woonkamer.yaml…
ERROR Error while reading config: Invalid YAML syntax:
mapping values are not allowed here
in “/config/esphome/display-woonkamer.yaml”, line 77, column 24
pages:
- id: boot_page
# on_swipe_right:
# - lvgl.page.previous:
# on_swipe_left:
# - lvgl.page.next:
# bg_color: black
<<: !include file: layouts/page_tenplate.yaml
<<: !include file: layouts/boot_page.yaml
# widgets:
# - button:
# id: allesuit
# x: 0
# y: -68
# align: CENTER
# width: 210
# height: 50
# widgets:
# - label:
# width: SIZE_CONTENT
# height: SIZE_CONTENT
# x: -4
# y: -1
# align: center
# text_font: montserrat_40
# text: "Alles uit"
# on_short_click:
# - homeassistant.action:
# action: homeassistant.turn_on
# data: { entity_id: scene.alles_uit }
# - label:
# id: wifi_connected
# x: 126
# y: 21
# text_font: icon_48
# text_color: red
# text: "\U000F16BC"
# - label:
# id: ha_connected
# x: 201
# y: 21
# text_font: icon_48
# text_color: red
# text: "\U000F07D0"