Derham
(Derham)
March 5, 2025, 10:21am
22
Morning Aaron,
That’s all working fine you just need to turn on the backlight which is off by default. Add this…
# Home Assistant API with encryption and renamed ID
api:
id: ha_api
encryption:
key: !secret api_encryption_key
on_client_connected:
- if:
condition:
lambda: 'return (0 == client_info.find("Home Assistant "));'
then:
- switch.turn_on: lcdbacklight
################################################################################
# Switch
################################################################################
switch:
- platform: gpio
id: lcdbacklight
name: lcdbacklight
pin:
ch422g: ch422g_hub
number: 2
mode:
output: true
inverted: false
restore_mode: ALWAYS_ON
lol thanks. That fixed it lol. I also added a wire so I can control the backlight brightness.
I am using UART2 (GPIO 43 and 44) and have set the toggle switch to UART2. However, even after disabling the log component output or turning off the ESP Console, the sensor still does not work on the UART2 interface. Has anyone been able to get the sensor working on UART2?
I made my own HMI design for this device.
It’s currently mounted on the wall in my garage.
All the code is shared.
Lots of info in the github repo (link in the thread).
For the past couple of weeks, I’ve been cooking up a HMI for my garage. The motivator was to cover the area that was previously occupied by a very old alarm keypad I removed the panel a couple weeks ago. And you know, provide cool features to my home automation setup while doing so!
First attempt at using ESPHome’s LVGL component.
Quick video of it in action:
[ESPHome HMI on Waveshare ESP32-S3-Touch-LCD-7]
So far it’s working OK. A couple of bugs and glitches I hope to get fixed i…
2 Likes