After upgrading to ESPHome 2023.11.3, the Yaml for the ulanzi was no longer correct and I received the following error when compiling:
[text] is an invalid option for [variables]
I found out that "text" is conflicting with a new function name in ESPHome. After changing text to texts in parts of the yaml, it went through validation and install.
The parts I changed:
api:
services:
- service: alarm
variables:
icon_name: string
texts: string <== text to texts
then:
lambda: |-
id(rgb8x32)->add_screen(icon_name,texts,7,30,true); <== text to texts
id(rgb8x32)->force_screen(icon_name); <== text to texts
- service: screen
variables:
icon_name: string
texts: string
then:
- ehmtx.add.screen:
id: rgb8x32
text: !lambda return texts; <== text to texts (only the 2nd one)
icon_name: !lambda return icon_name;
alarm: false
replacing text with message will also be fine,
But in EspHoMaTriXv2 2023.9.1 there is an alert_screen that shows a message with an icon and is immediately forced.
After upgrading to ESPHome 2023.11.3, the Yaml for the ulanzi was no longer correct and I received the following error when compiling:
[text] is an invalid option for [variables]
I found out that "text" is conflicting with a new function name in ESPHome. After changing text to texts in parts of the yaml, it went through validation and install.
The parts I changed:
Hope this helps others!