What do you see when you monitor the mqtt topic? Does the .val get send?
I suppose none of the values match and it defaults to p6b4.val=0. Maybe change the {% else -%} value to -1 or some other marker so you know nothing was matched… for troubleshooting.
Hi, I am very new to the hardware side of things, but always eager to try new things. Is it appropriate to ask questions here regarding the hardware side if the setup? I am struggling a bit with getting the screen working with the esp32. I am quite sure I do not know what I am doing. I have the app up and running on a LOLIN D32 Pro V2.0.0. I was able to configure the wifi and I can get to the web admin panel of it via a browser. I am attempting to use the Lolin tft 2.4 for the touch screen. I soldered header pins onto the D32 and thats about as far as I can get. I played around with aligning the inner rows and I can get the backlight to come on, but thats it. I see in the instructions it says To use PWM dimming on the Lolin TFT 2.4" you must connect the TFT-LED pin to either D1, D2 or D4. D1 is recommended for backlight control and configured by default. I see that picture and it highlights an area in red, how are you supposed to “connect” that? All new to me. Would love pics on how to line up the D32 to the screen and how to connect the led to the D1. Thanks for any help.
Hi, for the Lolin D32 Pro you can actually use the special TFT connector in the center of the board and attach it to the same TFT connector on the side of the LCD. It will connect all the necessary pins using a single cable. The solder pads are only needed for boards that plug directly onto the pin-header on the backside of the LCD…
Now, you could also connect everything using jumper cables to these GPIOs:
Thanks for the reply! I am using the incorrect firmware for starters :). I will give that a shot. I have a kit on the way to make a cable for the TFT connector. Thank you for the help. I will check out the GitHub discussion.
I added pin 32 in the display config as the backlight and i now see this in the log, however the panel just locks up. Is there anything physically I need to do to the board to enable the backlight on 32?
I have added the firmware lolin-d32-pro_ili9341_full_16MB_v0.6.2.bin to the pre-compiled binaries of the v0.6.2 release. If you upload this firmware to your device the screen should work out of the box.
I am trying to use the messagebox object.
Can someone share their integration of messagebox with home assistant.
I had integrated lights and sensors successfully, still struggling with the mesaagebox.
Purpose of using message box:
Scenario 1: need to have a confirmation message displayed when i press a certain button on the screen.
When confirm button is pressed it fires an action to home assistant. Maybe turns on a switch.
Scenario2: when an alram is triggered in Home assistant, message box appears on the screen as a warning, confirmation button needs to be pressed to initiate clear alarm action.
I think you’ll need to use the HA custom integration, and do the automations in HA. You could create the msgbox via a jsonl command over mqtt, then set it to hidden to make it disappear. Or switch to a page that has the msgbox, then back again after you click disable.
Any chance that a SSD1963 based screens will work? I do see some reference in the lvgl source, but nothing definitive.
As long as there’s a driver for it, it should work. Both TFT_eSPI and LovyanGFX seem to have configuration options for SSD1963 panels. But to have a definitive answer you would have to test it proper.
I’m quite bad at HA integrations myself, but you will need to check the {{ val }} or {{ text }} that is sent in the up event. Similar to this button matrix example:
- obj: "p1b24"
event:
"up":
- service: >
{% if val == 0 %} # First button pressed
climate.turn_on
{%-elif val == 1 %} # Second button pressed
climate.turn_off
{%-elif val == -1 %} # Msgbox contents pressed
# ignored
{% endif %}
target:
entity_id: "climate.thermostat_1"
I have not tested this to confirm, but I think that should point you in the right direction.
I believe these letters belong to the Vietnamese character set, which we currently don’t support in full.
I’ve added a reply in Github discussions on how the go forward with adding support for Vietnamese.
First a big thanks for this project - I had 4 spare FreeTouchDeck circuit boards and matching screens sitting around and was wondering about how I could integrate them into my HA setup.
I seem to be missing something with the file editor though. I can delete files, create files, upload and download files but for the life of me how do you EDIT files??? I can make changes to a file chosen in the editor, but how do I save those changes?