I am trying to define user_characters for a 2 line LCD display.
In 2022.4 release this feature was added and using the example from the documentation generates the error “[user_characters] is an invalid option for [display.lcd_pcf8574]. Please check the indentation.”
Does anyone have an idea of what I have done wrong?
esphome:
name: test
esp32:
board: esp32dev
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: 192.168.1.154
gateway: 192.168.1.1
subnet: 255.255.255.0
i2c:
sda: GPIO21
scl: GPIO22
display:
- platform: lcd_pcf8574
id: mydisplay
# ...
user_characters:
- position: 0
data:
- 0b00000
- 0b01010
- 0b00000
- 0b00100
- 0b00100
- 0b10001
- 0b01110
- 0b00000
- position: 7
data:
- 0b00000
- 0b01010
- 0b00000
- 0b00100
- 0b00100
- 0b00000
- 0b01110
- 0b10001
lambda: |-
it.print("Hello, world \x08 \x07!");