HASwitchPlate / openHASP

HomeAutomation Switchplate based on lvgl for ESP32
https://www.openhasp.com
MIT License
674 stars 172 forks source link

Any chance we can it work for another esp32-s3 GT911 touch display (ESP32-4848S040) #603

Closed mswaleh closed 5 months ago

mswaleh commented 7 months ago

I found this cheap display at Aliexpress (https://www.aliexpress.us/item/1005006334976806.html) which appears to be new(er) in the market.

Board: ESP32-S3-N16R8 Display: ST7701, Touch: GT911

This is very close to "GS-T3E v2.3" in specs, which is one from the nightly list (https://nightly.openhasp.com/).

I am able to install it, it even connect to WiFi AP and then to my WiFi via the webUI. I can also see screenshot in the web UI but nothing comes on screen. I was trying to look at the source code but quite new to all this. Anybody can point me right direction or help with this, would be greatly appreciated.

kipwittchen commented 5 months ago

@kipwittchen #666 I2C #664 Port 1

Hope this isn't a dumb question, are these sensors actually on the board or did you wire them yourself to the board?

RealDeco commented 5 months ago

Find it here, but be careful, I'll lower the frequency. Will cause abnormal noise in the MOS tube. Similar to electric current sound. This is inevitable to reduce frequency.

ok i had hoped for a more userfriendly place, i'm not a developer so i'll just sit quiet and pray that someone hopefully fix that in the future :))

thanks for the answer anyway

fvanroie commented 5 months ago

No need to sit back and wait, try out the latest build from Actions and test that. If it works fine please report and I'll update the nightly installer.

RealDeco commented 5 months ago

No need to sit back and wait, try out the latest build from Actions and test that. If it works fine please report and I'll update the nightly installer.

wow nice! that fixed the backlight, but the "short idle" in config settings sets it to 10% where it's not visible, 50% would be better, is there a place to edit that?

thanks for quick reply 👍

edit: it works i can now change brightness smooth, but under 35 it's like off.

xiasi0 commented 5 months ago

\

No need to sit back and wait, try out the latest build from Actions and test that. If it works fine please report and I'll update the nightly installer.

No need to sit back and wait, try out the latest build from Actions and test that. If it works fine please report and I'll update the nightly installer.

The GPIO40 setting relay is not available. May I ask how to cancel compilation for useless entities

kipwittchen commented 5 months ago

No need to sit back and wait, try out the latest build from Actions and test that. If it works fine please report and I'll update the nightly installer.

wow nice! that fixed the backlight, but the "short idle" in config settings sets it to 10% where it's not visible, 50% would be better, is there a place to edit that?

thanks for quick reply 👍

edit: it works i can now change brightness smooth, but under 35 it's like off.

Are you using the home assistant integration? It the backlight % at idle can be adjusted under settings there.

RealDeco commented 5 months ago

Are you using the home assistant integration? It the backlight % at idle can be adjusted under settings there.

yeah, it's from home assistant i can see that under 35% the display is like off, so the "short idle" settings at 10% is same as off, but i can now adjust backlight more smoothly, before it was like on/off at 85%

RealDeco commented 5 months ago

i just noticed something i didn't notice before, when backlight is anything ELSE than 100% the display makes a constant ringing tone, but not when at 100%, could it be the freq at 2000 causing this?

RealDeco commented 5 months ago

hello, does anyone have a bin file available with some background image

you can make one here: https://lvgl.io/tools/imageconverter

RealDeco commented 5 months ago

I tested and the problem will be in esphome code

i think the support for this display is still experimental on exphome (last time i checked), but isn't this the wrong place to ask?, this is about OpenHASP which actually works quite well

xiasi0 commented 5 months ago

i just noticed something i didn't notice before, when backlight is anything ELSE than 100% the display makes a constant ringing tone, but not when at 100%, could it be the freq at 2000 causing this?

Yes, a frequency of 2000 is a sound that can be heard by the ears. Adjust the frequency to 20000, and if the frequency is not within the range of ear hearing, you will not be able to hear.

Tall-Paul commented 5 months ago

Hi, I'm new to openHasp so please excuse me if I'm being stupid.... should I just be able to install from the nightly builds, using the 'Guition ESP32-S3-4848S040' option and have it work now?

Because I get the wifi setup, reboot and see an IP address on screeen but then don't get anything else other than the image shown.

Uploading a jsonl from the home assistant integration also doesn't seem to work (I can connect to the devices CLI from the build installer webpage and set the mqtt details to integrate with home assistant) PXL_20240314_105649215

kipwittchen commented 5 months ago

Yes! I will say it's a bit strange to get used to the flow process at first, you can edit the plates file through the web interface file Editor or the home assistant interface (make sure you're putting the file in the correct place and you've given permission to HA to read that folder). The file used by the HA integration overwrites the one on the device once it's connect via mqtt.

Tall-Paul commented 5 months ago

There isn't a web interface! After connecting to wifi all I see is the blank screen with the hostname in the top left corner both before and after connecting to home assistant.

flexiti commented 5 months ago

@kipwittchen #666 I2C #664 Port 1

Hope this isn't a dumb question, are these sensors actually on the board or did you wire them yourself to the board?

zd3

kipwittchen commented 5 months ago

There isn't a web interface! After connecting to wifi all I see is the blank screen with the hostname in the top left corner both before and after connecting to home assistant.

Do you get an IP address that pops up when you first turn on the device? That's the address of the device and web interface

Tall-Paul commented 5 months ago

There isn't a web interface! After connecting to wifi all I see is the blank screen with the hostname in the top left corner both before and after connecting to home assistant.

Do you get an IP address that pops up when you first turn on the device? That's the address of the device and web interface

Oh my god, I'm an idiot.

Yes, there's an IP and yes I get the web interface when I connect to it. I'm an idiot, thank you!

RealDeco commented 5 months ago

i noticed this been closed as completed now?, i had hoped there was still a solution for the freq noise?

kipwittchen commented 5 months ago

i noticed this been closed as completed now?, i had hoped there was still a solution for the freq noise?

Someone needs to experiment with different frequencies probably?

fvanroie commented 5 months ago

This issue was for implementation of a hardware option for this device, which is now available. There was more and more discussions about other things, which can be moved to the discussions forum instead.

If someone wants to add a page for this device to the documentation that would be great.

Suschibomber commented 4 months ago

Hi guys, I find the project exciting and we have now bought a house and I would like to distribute a few of these displays in the rooms. I don't know if my question is right here, but I didn't know where else.

OpenHasp is completely new territory for me. HomeAssistant is running and I've already got an NSPanel Pro running with HomeAssistant.

Now I have two or three questions. How is the performance of the devices compared to the NSPanel Pro? How much effort does it take to integrate them into HomeAssistant? And would someone perhaps be willing to help me for a fee if I decide to buy some of them?

Best regards and many thanks in advance.

https://de.aliexpress.com/item/1005006348529558.html?spm=a2g0o.productlist.0.0.55432ysd2ysdtA&mp=1&gatewayAdapt=glo2deu

TNTLarsn commented 4 months ago

Hi guys, I find the project exciting and we have now bought a house and I would like to distribute a few of these displays in the rooms. I don't know if my question is right here, but I didn't know where else.

OpenHasp is completely new territory for me. HomeAssistant is running and I've already got an NSPanel Pro running with HomeAssistant.

Now I have two or three questions. How is the performance of the devices compared to the NSPanel Pro? How much effort does it take to integrate them into HomeAssistant? And would someone perhaps be willing to help me for a fee if I decide to buy some of them?

Best regards and many thanks in advance.

https://de.aliexpress.com/item/1005006348529558.html?spm=a2g0o.productlist.0.0.55432ysd2ysdtA&mp=1&gatewayAdapt=glo2deu

I managed to get this working with homeassistant. It is very responsive and I'm quite satisfied with the result. I implemented some custom jinja-Templates to generate a simple grid-System, so you don't have to count the pixels anymore. To get some help I suggest, opening a new topic in the HA user Forums because this here is related to the development of openhasp firmware. @Suschibomber You may send me the link to your HA-Forums-Topic and we continue there

screenshot screenshot-1 screenshot-2 screenshot-3 screenshot-4

Suschibomber commented 4 months ago

@TNTLarsn

Hey, that looks great. Great work and many thanks for your answer. I have posted it in a German forum. That would be the easiest place for me to continue writing :)

https://community.simon42.com/t/planung-und-einrichtung-esp32-s3-4848s040-480-480-ips-touchscreen/22943

Otherwise I have also opened a topic here.

https://community.home-assistant.io/t/planning-and-setup-esp32-s3-4848s040-480-480-ips-touchscreen/715781

If you are also on Discord, please feel free to add me: sushibomba

Suschibomber commented 4 months ago

Someone has the GPIO Pins for the 3 Relay Version for me?

smcgann99 commented 3 months ago

gpio 1 2 and 40

fvanroie commented 3 months ago

If someone wants to add a page for this device to the documentation that would be great.