I would like my panels to not respond to touch under certain circumstances. I currently have them pause LVGL and turn off the backlight when no PIR signal is detected, but they still register touch, activating buttons that are not visible.
Is there a good way to ignore touch and truly “lock” the screen? I think that LVGL is resuming with the touch, even though the backlight is not coming on.
My only LVGL “resumes” are gated with conditions that are not met when this is occurring:
touchscreen:
- platform: gt911
id: !extend main_touchscreen
on_release:
then:
- if:
condition:
and:
- lvgl.is_paused
- lambda: 'return id(ha_cpls_responsive).state == "on";'
- lambda: 'return id(ha_house_alarm_cpl).state == "disarmed";'
then:
- logger.log: "LVGL resuming due to touch."
- lvgl.resume:
- lvgl.widget.redraw:
- light.turn_on: backlight
Thanks for your input.